我已启用 Nvidia 图形驱动程序 ppa 并安装了 390 驱动程序。
我正在尝试升级到 396 驱动程序,但遇到了困难。
我安装 nvidia 图形驱动程序的常规方法是安装名为“nvidia-390”的软件包。我注意到的第一件事是没有一个名为“nvidia-396”的包。但是有一个名为“nvidia-driver-396”的包。当我尝试安装它时,我收到以下错误消息。
jamie@jamie-ncase:~$ sudo apt install nvidia-driver-396
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-396 : Depends: nvidia-dkms-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-decode-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-encode-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: nvidia-utils-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: xserver-xorg-video-nvidia-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-cfg1-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Depends: libnvidia-fbc1-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
Recommends: libnvidia-decode-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-encode-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-ifr1-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-fbc1-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
Recommends: libnvidia-gl-396:i386 (= 396.54-0ubuntu0~gpu18.04.1)
E: Unable to correct problems, you have held broken packages.
问题是我很确定我没有损坏的软件包,除非我尝试安装这个新驱动程序:我可以运行 'sudo apt update' 和 'sudo apt dist-upgrade' 没问题,两者都运行良好。
我的解决方案是
aptitude
. 有更好的逻辑来删除旧的,并为您安装新的。昨天也发生了同样的事情。我修复它的方法是先切换回 Nouveau,重新启动,然后安装最新的 NV 驱动程序,重新启动。
apt
我也和你一样尝试过各种其他的东西dpkg
,但这就是最终解决的问题。您可以对所有内容使用“附加驱动程序”程序。