无法在 Ubuntu 18.04 中从 ppa 安装 Nvidia-396

无法在 Ubuntu 18.04 中从 ppa 安装 Nvidia-396

我已经启用 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”没有问题,两者都运行良好。

答案1

我的解决方案是aptitude。有更好的逻辑来删除旧的,并为您安装新的。

sudo apt install aptitude
sudo aptitude install nvidia-driver-396

答案2

昨天也发生了同样的事情。我修复它的方法是先切换回 Nouveau,重启,然后安装最新的 NV 驱动程序,重启。我也尝试了各种其他方法,和aptdpkg一样,但最终还是解决了问题。

您可以使用“额外的司机“一切程序。

相关内容