Open rahulmool opened 2 years ago
Have you used make localmodconfig
?
Yes I did.
@rahulmool it seems you have already installed the Debian packages for kernel-5.6.9, and after that, you are reconfiguring and then trying to recompile the kernel.
And you are getting this error as it is not able to override the earlier compiled version ( orig directory 'LinuxKernel.orig' already exists, not overwriting, giving up; use -sA, -sK or -sP to override
).
So I would recommend first a make clean
. Then sudo apt-get --purge remove linux-headers-5.6.9
(also linux-image-5.6.9
and linux-image-5.6.9-dbg
)
After that try to reconfigure/recompile.
zerocool@zerocool-VirtualBox:~/Downloads/LinuxKernel$ make deb-pkg -j8 make clean sh ./scripts/package/mkdebian TAR linux-5.6.9.tar.gz origversion=$(dpkg-parsechangelog -SVersion |sed 's/-[^-]$//');\ mv linux-5.6.9.tar.gz ../linux-5.6.9_${origversion}.orig.tar.gz dpkg-buildpackage -r"fakeroot -u" -a$(cat debian/arch) -i.git -us -uc dpkg-buildpackage: info: source package linux-5.6.9 dpkg-buildpackage: info: source version 5.6.9-1 dpkg-buildpackage: info: source distribution jammy dpkg-buildpackage: info: source changed by zerocool zerocool@zerocool-VirtualBox dpkg-buildpackage: info: host architecture amd64 dpkg-source -i.git --before-build . fakeroot -u debian/rules clean rm -rf debian/tmp debian/files make clean dpkg-source -i.git -b . dpkg-source: info: using source format '1.0' dpkg-source: warning: source directory 'LinuxKernel' is not- 'linux-5.6.9-5.6.9'
dpkg-source: warning: .orig directory name LinuxKernel.orig is not - (wanted linux-5.6.9-5.6.9.orig)
dpkg-source: info: building linux-5.6.9 using existing linux-5.6.9_5.6.9.orig.tar.gz
dpkg-source: error: orig directory 'LinuxKernel.orig' already exists, not overwriting, giving up; use -sA, -sK or -sP to override
dpkg-buildpackage: error: dpkg-source -i.git -b . subprocess returned exit status 2
make[1]: [scripts/Makefile.package:77: deb-pkg] Error 2
make: [Makefile:1417: deb-pkg] Error 2