我一直在 Debian 10 上为我的 GTX 1650s 显卡使用专有的 NVIDIA 驱动程序。我希望从 buster-backports 安装 nvidia 驱动程序,但遇到错误。
首先,我使用“sudo ./NVIDIA-Linux-x86_64-470.94.run --uninstall”删除了专有驱动程序。然后我没有重新启动到控制台,而是运行“sudo apt -t buster-backports install nvidia-driver”。在安装过程中,会打印一条通知,建议内核模块不匹配,在安装结束时,会打印以下内容:
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.
dpkg: error processing package nvidia-driver (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
nvidia-kernel-dkms
nvidia-driver
E: Sub-process /usr/bin/dpkg returned an error code (1)
有人可以帮忙吗?我的机器没有重新启动并且 X 仍在运行。
我是否应该重新启动进入安全模式,使用“sudo modprobe -r”删除模块 nvidia、nvidia_drm 和 nvidia_modeset,然后尝试再次安装?