无法安装 nvidia-driver-455(从 450 版本升级)

Lin*_*eak 1 software-installation nvidia troubleshooting linux-mint proprietary-drivers

我有一个基于 Linux Mint 20 Cinnamon Nvidia (GTX 1060) 的系统,当我注意到最新的 Nvidia 驱动程序已经过时,我想立即安装它们。

但是,我似乎无法安装它:

apt-get --dry-run install nvidia-driver-455
Run Code Online (Sandbox Code Playgroud)

抛出以下内容:

Reading package lists... Done
Building dependency tree       
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-455 : Depends: libnvidia-extra-455 (= 455.38-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: nvidia-compute-utils-455 (= 455.38-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-encode-455 (= 455.38-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: nvidia-utils-455 (= 455.38-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: xserver-xorg-video-nvidia-455 (= 455.38-0ubuntu0.20.04.1) but it is not going to be installed
                     Depends: libnvidia-ifr1-455 (= 455.38-0ubuntu0.20.04.1) but it is not going to be installed
                     Recommends: libnvidia-compute-455:i386 (= 455.38-0ubuntu0.20.04.1)
                     Recommends: libnvidia-decode-455:i386 (= 455.38-0ubuntu0.20.04.1)
                     Recommends: libnvidia-encode-455:i386 (= 455.38-0ubuntu0.20.04.1)
                     Recommends: libnvidia-ifr1-455:i386 (= 455.38-0ubuntu0.20.04.1)
                     Recommends: libnvidia-fbc1-455:i386 (= 455.38-0ubuntu0.20.04.1)
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

我没有任何保留的包裹,也没有任何残留的配置。


目前,我在内核 5.4.0-54-generic 上运行版本 450 没有任何问题。那么,我现在该怎么办?如何调查此事?

Lin*_*eak 5

问题已解决,由于某种原因,仍然安装了以前安装版本的元包:nvidia-driver-440. 已经在 3 台笔记本电脑上重现,有问题的软件包保持不变,并阻止 Nvidia 更新。


整体更新操作系统后,我重新启动,并发出:

apt-get purge nvidia-driver-440
Run Code Online (Sandbox Code Playgroud)

结果:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  nvidia-driver-440*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 19.5 kB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 438621 files and directories currently installed.)
Removing nvidia-driver-440 (450.80.02-0ubuntu0.20.04.2) ...
Run Code Online (Sandbox Code Playgroud)

现在上面的试运行似乎没问题。以 root 身份安装:

apt-get --install-recommends install nvidia-driver-455
Run Code Online (Sandbox Code Playgroud)

进展顺利,我的系统现在启动没有任何问题。


视觉证明(Mint 的驱动程序管理器):

视觉证明(Mint 的驱动程序管理器)