我有 rtx3090ti nvidia 驱动程序,并通过多种方式安装最新的 nvidia 驱动程序,例如从附加驱动程序应用程序或 apt install。这两种方法都不起作用,输出总是一样的。
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
现在我尝试使用以下命令安装推荐的版本:
sudo apt install nvidia-driver-525-open
返回:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nvidia-driver-525-open : Depends: libnvidia-gl-525 (= 525.78.01-0ubuntu0.22.04.1) but 525.60.13-0ubuntu1 is to be installed
Depends: nvidia-dkms-525-open (<= 525.78.01-1) but it is not going to be installed
Depends: nvidia-dkms-525-open (>= 525.78.01) but it is not going to be installed
Depends: nvidia-kernel-common-525 (>= 525.78.01) but 525.60.13-0ubuntu1 is to be installed
Depends: libnvidia-compute-525 (= 525.78.01-0ubuntu0.22.04.1) but 525.60.13-0ubuntu1 is to be installed
Depends: libnvidia-extra-525 (= 525.78.01-0ubuntu0.22.04.1) but 525.60.13-0ubuntu1 is to be installed
Depends: nvidia-compute-utils-525 (= 525.78.01-0ubuntu0.22.04.1) but 525.60.13-0ubuntu1 is to be installed
Depends: libnvidia-decode-525 (= 525.78.01-0ubuntu0.22.04.1) but 525.60.13-0ubuntu1 is to be installed
Depends: libnvidia-encode-525 (= 525.78.01-0ubuntu0.22.04.1) but 525.60.13-0ubuntu1 is to be installed
Depends: nvidia-utils-525 (= 525.78.01-0ubuntu0.22.04.1) but 525.60.13-0ubuntu1 is to be installed
Depends: xserver-xorg-video-nvidia-525 (= 525.78.01-0ubuntu0.22.04.1) but 525.60.13-0ubuntu1 is to be installed
Depends: libnvidia-cfg1-525 (= 525.78.01-0ubuntu0.22.04.1) but 525.60.13-0ubuntu1 is to be installed
Depends: libnvidia-fbc1-525 (= 525.78.01-0ubuntu0.22.04.1) but 525.60.13-0ubuntu1 is to be installed
Recommends: nvidia-settings but it is not going to be installed
Recommends: nvidia-prime (>= 0.8) but it is not going to be installed
Recommends: libnvidia-compute-525:i386 (= 525.78.01-0ubuntu0.22.04.1)
Recommends: libnvidia-decode-525:i386 (= 525.78.01-0ubuntu0.22.04.1)
Recommends: libnvidia-encode-525:i386 (= 525.78.01-0ubuntu0.22.04.1)
Recommends: libnvidia-fbc1-525:i386 (= 525.78.01-0ubuntu0.22.04.1)
Recommends: libnvidia-gl-525:i386 (= 525.78.01-0ubuntu0.22.04.1)
E: Unable to correct problems, you have held broken packages.
现在我已启用安全启动,否则计算机将无法启动并卡在 0x91 驱动程序安装步骤。我之前在启用安全启动的情况下安装了 nvidia 驱动程序,它工作正常。现在我不知道是什么原因导致了这个问题。
答案1
我尝试了以下方法并且对我有用:
sudo apt-get remove --purge nvidia-* -y
sudo apt autoremove
sudo ubuntu-drivers autoinstall
sudo reboot
答案2
问题在于系统无法通信,因为 BIOS 中未包含 nvidia 驱动程序。因此设置在 0x91 步骤停止。要解决该问题,MOK 管理器应允许 nvidia 驱动程序。
有关 MOK 管理器和 nvidia-driver 安装的详细信息,请参阅以下博客文章: Nvidia 驱动程序安装和 MOK