如何安装 nvidia 驱动程序版本 375?

如何安装 nvidia 驱动程序版本 375?

我有一个 GTX 1050 TI,需要驱动程序版本 375。我的sources.list 如下所示:

# deb http://ftp.us.debian.org/debian/ jessie main

deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

# jessie-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ jessie-updates main
deb-src http://ftp.us.debian.org/debian/ jessie-updates main
deb http://ftp.debian.org/debian experimental main contrib non-free

我已经运行 sudo apt-get update 。

当我执行 sudo apt-get -t Experimental install nvidia-driver 时,出现错误:

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 : Depends: nvidia-driver-libs (= 375.20-2) but it is not going to be installed
                 Depends: nvidia-driver-bin (= 375.20-2) but it is not going to be installed
                 Depends: xserver-xorg-video-nvidia (= 375.20-2) but it is not going to be installed
                 Depends: nvidia-vdpau-driver (= 375.20-2) but it is not going to be installed
                 Depends: nvidia-alternative (= 375.20-2) but it is not going to be installed
                 Depends: nvidia-kernel-dkms (= 375.20-2) but it is not going to be installed or
                          nvidia-kernel-375.20
                 Recommends: nvidia-settings (>= 375) but it is not going to be installed
                 Recommends: nvidia-persistenced but it is not installable
E: Unable to correct problems, you have held broken packages.

答案1

echo 'deb-src http://httpredir.debian.org/debian/ experimental main contrib non-free' >> /etc/apt/sources.list.d/experimental.list
apt-get source nvidia-driver=375.20-2
apt-get build-dep nvidia-driver
cd nvidia-graphics-drivers-375.20/
dpkg-buildpackage
cd ..
dpkg -i nvidia*.deb

相关内容