Trying to compile custom kernel however when compiling using make-kpkg the command is not found
Trying to compile custom kernel however when compiling using make-kpkg the command is not found
So I have to create a custom kernel for a class and I have followed the instructions, but once I arrived at the step to finally compile the kernel using these three lines:
sudo make-kpkg clean
export CONCURRENCY_LEVEL=2
sudo fakeroot make-kpkg --initrd kernel-image kernel_headers
To install I used the command:
sudo apt-get install kernel-package libncurses5-dev fakeroot wget bzip2
Then when I hit this problem the only advice on google was to reinstall so I just used:
sudo apt-get install kernel
However I am still getting the error that make-kpkg: command not found when trying to run sudo make-kpkg clean and not sure how else to proceed. I am using the Oracle VM VirtualBox Manager to run Ubuntu 16.04_AY2017-18_v1.2
I cannot figure out what else to try to get the kernel to compile any help would be great.
root
sudo su -
kernel-package
0
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Try running it under a plain
root
shell, after:sudo su -
. Also, listkernel-package
package contents to check where the binary is located. Looks like a PATH problem to me.– Luis Muñoz
Sep 6 '18 at 1:06