使用“ Sudo make install”安装重新编译的Linux内核时,出现以下错误
sh ./arch/x86/boot/install.sh 4.15.0 arch/x86/boot/bzImage \
System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.15.0 /boot/vmlinuz-4.15.0
run-parts: executing /etc/kernel/postinst.d/dkms 4.15.0 /boot/vmlinuz-4.15.0
ERROR (dkms apport): kernel package linux-headers-4.15.0 is not supported
Error! Bad return status for module build on kernel: 4.15.0 (x86_64)
Consult /var/lib/dkms/nvidia-410/410.48/build/make.log for more information.
Make.log
DKMS make.log for nvidia-410-410.48 for kernel 4.15.0 (x86_64)
Fri Oct 19 18:08:08 NZDT 2018
make[2]: warning: -jN forced in submake: disabling jobserver mode.
Makefile:19: /Kbuild: No such file or directory
make[2]: *** No rule to make target '/Kbuild'. Stop.
内核目录确实包含/ Kbuild
bill@dev:~$ cd /usr/src/linux-4.15
bill@dev:/usr/src/linux-4.15$ ls
arch drivers kernel net usr
block firmware lib README virt
built-in.o fs MAINTAINERS samples vmlinux
certs include Makefile scripts vmlinux-gdb.py
COPYING init mm security vmlinux.o
CREDITS ipc modules.builtin sound
crypto Kbuild modules.order System.map
Documentation Kconfig Module.symvers tools
bill@dev:/usr/src/linux-4.15$ sudo make install -j 4
sh ./arch/x86/boot/install.sh 4.15.0 arch/x86/boot/bzImage \
System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.15.0 /boot/vmlinuz-4.15.0
run-parts: executing /etc/kernel/postinst.d/dkms 4.15.0 /boot/vmlinuz-4.15.0
ERROR (dkms apport): kernel package linux-headers-4.15.0 is not supported
Error! Bad return status for module build on kernel: 4.15.0 (x86_64)
Consult /var/lib/dkms/nvidia-410/410.48/build/make.log for more information.