debian12升级内核时出现以下错误
INSTALL /boot
run-parts: executing /etc/kernel/postinst.d/dkms 6.8.4 /boot/vmlinuz-6.8.4
dkms: running auto installation service for kernel 6.8.4.
Sign command: /lib/modules/6.8.4/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Building module:
Cleaning build area…(bad exit status: 2)
env NV_VERBOSE=1 make -j16 modules KERNEL_UNAME=6.8.4…(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.8.4 (x86_64)
Consult /var/lib/dkms/nvidia-current/535.183.01/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.8.4 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
make[1]: *** [arch/x86/Makefile:295:install] 错误 1
make: *** [Makefile:240:__sub-make] 错误 2
然后/var/lib/dkms/nvidia-current/535.183.01/build/make.log中的内容是
DKMS make.log for nvidia-current-535.183.01 for kernel 6.8.4 (x86_64)
2024年 10月 08日 星期二 23:53:36 CST
make[2]: *** 没有规则可制作目标“modules”。 停止。
请问该怎么办
我安装的时候参考的是:https://www.daehub.com/archives/8584.html#google_vignette