ubuntu nvidia驱动安装失败

tea*_*aly 5 nvidia graphics drivers 22.04

我有 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.
Run Code Online (Sandbox Code Playgroud)

现在我尝试使用以下命令安装推荐版本:

sudo apt install nvidia-driver-525-open
Run Code Online (Sandbox Code Playgroud)

返回:

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.
Run Code Online (Sandbox Code Playgroud)

现在我已启用安全启动,否则计算机将无法启动并陷入 0x91 驱动程序安装步骤。我之前在启用安全启动的情况下安装了 nvidia 驱动程序,并且它有效。现在我不知道是什么原因导致了这个问题。

小智 5

我尝试了以下方法,它对我有用:

sudo apt-get remove --purge nvidia-* -y
sudo apt autoremove
sudo ubuntu-drivers autoinstall
sudo reboot
Run Code Online (Sandbox Code Playgroud)


tea*_*aly 0

问题是系统无法通信,因为 BIOS 中不包含 nvidia 驱动程序。因此设置在 0x91 步停止。要解决此问题,nvidia 驱动程序应获得 MOK 管理器的允许。

有关 MOK 管理器和 nvidia 驱动程序安装的详细信息,请参阅以下博客文章: Nvidia 驱动程序安装和 MOK