我正在运行 Debian 10,内核是我根据源代码构建的。当我尝试使用“sudo apt -t buster-backports install nvidia-driver”从 buster-backports 安装 nvidia-driver 时,它失败了,并显示:
Building initial module for 5.15.12s1avl2-lowlatency
Error! Bad return status for module build on kernel: 5.15.12s1avl2-lowlatency (x86_64)
Consult /var/lib/dkms/nvidia-current/460.73.01/build/make.log for more information.
dpkg: error processing package nvidia-kernel-dkms (--configure):
installed nvidia-kernel-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver:
nvidia-driver depends on nvidia-kernel-dkms (= 460.73.01-1~bpo10+1) | nvidia-kernel-460.73.01; however:
Package nvidia-kernel-dkms is not configured yet.
Package nvidia-kernel-460.73.01 is not installed.
Package nvidia-kernel-dkms which provides nvidia-kernel-460.73.01 is not configured yet.
当我查阅 make.log 时,它报告错误,但我不明白错误是什么。这是第一个错误的日志:
make[3]: *** [/home/iain/kernels/scarlett-gen2-5.15.12s1/scripts/Makefile.build:277: /var/lib/dkms/nvidia-current/460.73.01/build/nvidia/os-interface.o] Error 1
make[3]: *** Waiting for unfinished jobs....
./tools/objtool/objtool orc generate --module --no-fp --retpoline --uaccess /var/lib/dkms/nvidia-current/460.73.01/build/nvidia/os-mlock.o
./tools/objtool/objtool orc generate --module --no-fp --retpoline --uaccess /var/lib/dkms/nvidia-current/460.73.01/build/nvidia/os-pci.o
第二:
make[2]: *** [/home/iain/kernels/scarlett-gen2-5.15.12s1/Makefile:1868: /var/lib/dkms/nvidia-current/460.73.01/build] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.15.12s1avl2-lowlatency'
make[1]: *** [Makefile:219: __sub-make] Error 2
make[1]: Leaving directory '/home/iain/kernels/scarlett-gen2-5.15.12s1'
make: *** [Makefile:80: modules] Error 2
我已将整个日志上传至https://escuta.org/webtemp/make.log
有人可以帮忙吗?
更新:如果我尝试安装所需的 nvidia-kernel-460.73.01,安装会打印:
Note, selecting 'nvidia-kernel-dkms' instead of 'nvidia-kernel-460.73.01'
nvidia-kernel-dkms is already the newest version (460.73.01-1~bpo10+1).
nvidia-kernel-dkms set to manually installed.