![Debian 12.5 内核安装失败](https://linux22.com/image/229047/Debian%2012.5%20%E5%86%85%E6%A0%B8%E5%AE%89%E8%A3%85%E5%A4%B1%E8%B4%A5.png)
刚刚尝试升级到新的 Debian Bookworm point 版本 12.5 但是...
Building module:
Cleaning build area...
env NV_VERBOSE=1 make -j4 modules KERNEL_UNAME=6.1.0-18-amd64.............................(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-18-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-current/525.147.05/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.1.0-18-amd64 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.1.0-18-amd64 (--configure):
installed linux-image-6.1.0-18-amd64 package post-installation script subprocess returned error exit status 1
Setting up linux-headers-6.1.0-18-amd64 (6.1.76-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-18-amd64.
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
我怎样才能解决这个问题?
答案1
问题是内核。我查看了 make.log 并找到了这些。
Module.symvers -e 320s 错误:modpost:GPL 不兼容模块 nvidia.ko 使用仅 GPL 符号 '__rcu_read_unlock' 320s 错误:modpost:GPL 不兼容模块 nvidia.ko 使用仅 GPL 符号 '__rcu_read_lock' 320s make[4] :*** [/usr/src/linux-headers-6.6.15-common/scripts/Makefile.modpost:145:/var/lib/dkms/nvidia-tesla-470/470.223.02/build/Module.symvers ] 错误1
我认为我们需要等待这个补丁或其他即将推出的 Debianhttps://github.com/gentoo/gentoo/blob/c64caf53/x11-drivers/nvidia-drivers/files/nvidia-drivers-470.223.02-gpl-pfn_valid.patch