如何在 Vivid 上为 NVidia 驱动程序安装 DKMS(及其他)?

如何在 Vivid 上为 NVidia 驱动程序安装 DKMS(及其他)?

今天我再次尝试安装 Ubuntu(几周以来我都没有成功!)并且我需要我的 NVidia 驱动程序来驱动我的 GeForce GTX 970。

我遵循了能找到的最简单的指南:

$ sudo add-apt-repository ppa:xorg-edgers/ppa

$ sudo apt-get 更新

$ sudo apt-get 安装 nvidia-352 nvidia-settings

问题出现在后面的命令中,其输出如下所示:

The following packages have unmet dependencies:
nvidia-352 : Depends: dkms but it's not installable
             Depends: lib32gcc1 but it's not installable
             Depends: libc6-i386 but it's not installed (I have no idea why bc I'm running AMD)
             Recommends: nvidia-prine (>= 0.5) but it's not installable or
                         bumblebee but it's not installed
             Recommends: libcuda1-352 but it's not installed
             Recommends: nvidia-opencl-icd-352 but it's not installed
nvidia-settings : Depends: screen-resolution-extra (>= 0.12) but it's not installable
                  Depends: libjansson4  (>= 2.3) but it's not installable

E: Unable to correct problems, you have held broken packages.

我的 sources.list 如下所示:

deb security.ubuntu.com/ubuntu utopic-security main 
deb archive.ubuntu.com/ubuntu vivid univrse

我试过了sudo apt-get install dkms(没有安装候选项)。我根本没有任何图形驱动程序,所以我需要从 ( Ctrl + Alt + F1-F6) 终端执行所有操作。

我开始抓狂了,因为我看到每个人安装 Ubuntu 都只需按回车键就完成了,不用担心图形。

答案1

您需要创建一些正常的sources.list。运行

sudo nano /etc/apt/sources.list

并将其内容替换为

deb http://archive.ubuntu.com/ubuntu vivid main multiverse universe restricted
deb http://archive.ubuntu.com/ubuntu vivid-security main multiverse universe restricted

然后运行

sudo apt-get update
sudo apt-get install --reinstall nvidia-352
sudo add-apt-repository -r ppa:xorg-edgers/ppa

然后重启。这样你就可以正常启动了。

启动到 GUI 后,你可以使用这个答案重新创建正常sources.list

相关内容