在内核为 6.0.0-rc7-amd64 的 Debian 上安装 NVIDIA 驱动程序 515.76 失败

在内核为 6.0.0-rc7-amd64 的 Debian 上安装 NVIDIA 驱动程序 515.76 失败

我的 NVIDIA 515.76 驱动程序安装失败,因为 dkms 无法构建模块。我在这里发布了 nvidia-make.log 和 nvidia-installer 日志的一部分,其中描述了错误以获取更多信息。这是 nvidia-make 日志:

ld:scripts/module.lds:61: syntax error
make[4]: *** [/usr/src/linux-headers-6.0.0-rc7-common/scripts/Makefile.modfinal:59: /var/lib/dkms/nvidia/515.76/build/nvidia-drm.ko] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [/usr/src/linux-headers-6.0.0-rc7-common/scripts/Makefile.modpost:134: __modpost] Error 2
make[2]: *** [/usr/src/linux-headers-6.0.0-rc7-common/Makefile:1766: modules] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-6.0.0-rc7-amd64'
make[1]: *** [Makefile:222: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.0.0-rc7-common'
make: *** [Makefile:82: modules] Error 2

这是来自安装程序日志的:

ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 515.76 -k 6.0.0-rc7-amd64`: Sign command: /usr/lib/linux-kbuild-6.0/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Binary update-secureboot-policy not found, modules won't be signed

Building module:
Cleaning build area...
'make' -j2 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=6.0.0-rc7-amd64 
 modules..............................................(bad exit status: 2)
 Error! Bad return status for module build on kernel: 6.0.0-rc7-amd64 (x86_64)
 Consult /var/lib/dkms/nvidia/515.76/build/make.log for more information.
 -> error.
 ERROR: Failed to install the kernel module through DKMS. No kernel module was 
 installed; please try installing again without DKMS, or check the DKMS logs for more 
 information.
 ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' 
 for details.  You may find suggestions on fixing installation problems in the README 
 available on the Linux driver download page at www.nvidia.com.

相关内容