无法在全新 ubuntu 安装中安装 nvidia 驱动程序

无法在全新 ubuntu 安装中安装 nvidia 驱动程序

nvidia 驱动程序包存在一些问题。在为此烦恼不已之后,我重新安装了 Ubuntu 18.04.2,安装了更新,然后运行:

   > sudo apt update
   > sudo apt upgrade
   > sudo add-apt-repository ppa:graphics-drivers/ppa
   > sudo apt update
   > sudo ubuntu-drivers devices
== /sys/devices/pci0000:40/0000:40:03.1/0000:43:00.0 ==
modalias : pci:v000010DEd0000128Bsv0000196Esd0000118Bbc03sc00i00
vendor   : NVIDIA Corporation
model    : GK208B [GeForce GT 710]
driver   : nvidia-driver-410 - third-party free
driver   : nvidia-driver-390 - third-party free
driver   : nvidia-driver-415 - third-party free recommended
driver   : nvidia-driver-396 - third-party free
driver   : xserver-xorg-video-nouveau - distro free builtin

   > sudo apt install nvidia-driver-415

我遇到了包装损坏的问题,如下所示:

   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 resolve the situation:

The following packages have unmet dependencies:
 nvidia-driver-415 : Depends: libnvidia-gl-415 (= 415.27-0ubuntu0~gpu18.04.2) but it is not going to be installed
                     Depends: nvidia-dkms-415 (= 415.27-0ubuntu0~gpu18.04.2) but it is not going to be installed
                     Depends: libnvidia-ifr1-415 (= 415.27-0ubuntu0~gpu18.04.2) but it is not going to be installed
                     Recommends: nvidia-settings but it is not going to be installed
                     Recommends: libnvidia-compute-415:i386 (= 415.27-0ubuntu0~gpu18.04.2)
                     Recommends: libnvidia-decode-415:i386 (= 415.27-0ubuntu0~gpu18.04.2)
                     Recommends: libnvidia-encode-415:i386 (= 415.27-0ubuntu0~gpu18.04.2)
                     Recommends: libnvidia-ifr1-415:i386 (= 415.27-0ubuntu0~gpu18.04.2)
                     Recommends: libnvidia-fbc1-415:i386 (= 415.27-0ubuntu0~gpu18.04.2)
                     Recommends: libnvidia-gl-415:i386 (= 415.27-0ubuntu0~gpu18.04.2)

无论我选择哪个驱动程序,总是会出现一些类似上述的冲突。

答案1

我确认我在全新安装 18.04.2 时遇到了完全相同的问题。解决方案这里帮助过我。

我的起始条件:

  • 全新安装后,我安装了标准 390 驱动程序
  • 然后我补充说第三方 PPA
  • 更新到任何更高版本的驱动程序都失败,并出现与您的相同的错误。

解决方案来自上述链接:

    sudo apt-get remove --purge nvidia-*
    sudo ubuntu-drivers autoinstall

该解决方案可实现最新 415.27 驱动程序的全功能自动安装。

答案2

嗯,我认为这些是使用第三方镜像导致的依赖性问题。尝试使用官方镜像。但我不确定它们是否还支持您的显卡。我认为,如果需要使用旧驱动程序,可能还会存在内核模块编译问题。

相关内容