Error when running `make -j$(nproc) deb-pkg`
Closed this issue · 1 comments
BolunDai0216 commented
Hi,
I was trying to compile the real time kernel. After following the steps here, I got an error when running make -j$(nproc) deb-pkg
:
make -j$(nproc) deb-pkg
scripts/kconfig/conf --syncconfig Kconfig
UPD include/config/kernel.release
make clean
sh ./scripts/package/mkdebian
TAR linux-5.9.1-rt20.tar.gz
origversion=$(dpkg-parsechangelog -SVersion |sed 's/-[^-]*$//');\
mv linux-5.9.1-rt20.tar.gz ../linux-5.9.1-rt20_${origversion}.orig.tar.gz
dpkg-buildpackage -r"fakeroot -u" -a$(cat debian/arch) -i.git -us -uc
dpkg-buildpackage: error: fakeroot not found, either install the fakeroot
package, specify a command with the -r option, or run this as root
make[1]: *** [scripts/Makefile.package:77: deb-pkg] Error 255
make: *** [Makefile:1523: deb-pkg] Error 2
Any idea how to fix this, should I run under sudo
?
Thanks in advance!
BolunDai0216 commented
Looks like the issue is I didn't install a package called fakeroot
, you can install it using
sudo apt install fakeroot
that solved my issue.