[SOLVED] Cannot Install NVIDIA Driver

Questions about hardware and drivers
Forum rules
Before you post please read how to get help
Post Reply
Titan91
Level 1
Level 1
Posts: 45
Joined: Mon May 23, 2016 8:30 am

[SOLVED] Cannot Install NVIDIA Driver

Post by Titan91 » Mon Aug 05, 2019 7:41 am

Being an intermediate Linux user and still heavily learning, I installed the NVIDIA 390 driver from the nonfree repo and this was working, but this version does not support Vulkan with my GTX 1050 Ti card. So I removed this package without issues and installed the version 430 .run file from NVIDIA's site. This worked with Vulkan, but I found out I was missing OpenGL 32-bit libraries needed to run one of my 32-bit Windows games in Wine using WineD3D.

So I enabled 32-bit architecture:

Code: Select all

sudo dpkg --add-architecture i386
sudo apt -get update
And tried to install the 32-bit libraries:

Code: Select all

sudo apt-get install nvidia-driver-libs-i386:i386
And received a message saying the existing driver and installation method were not compatible. I recall seeing an error when installing the NVIDIA .run file mentioning 32-bit libraries being disabled. I did some further research and found version 430 is not supported on Debian via any of its repositories and is not compatible with Debian packages. So I removed this package and purged all NVIDIA related packages. After this I added the Debian testing and backport repos to my Apt sources.list file and ran sudo apt-get update and sudo apt-get upgrade. What my file looks like:

Code: Select all

#/etc/apt/sources.list
deb https://dl.winehq.org/wine-builds/debian/ stretch main
deb http://httpredir.debian.org/debian/ stretch main contrib non-free

deb http://ftp.debian.org/debian stretch-backports main contrib non-free

deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free
I also updated /etc/apt/preferences.d/official-package-repositories.pref file as below to include the testing repo at a lower priority for safety:

Code: Select all

Package: *
Pin: origin live.linuxmint.com
Pin-Priority: 750

Package: *
Pin: release o=linuxmint,c=upstream
Pin-Priority: 700

Package: *
Pin: release a=testing
Pin-Priority: 650

Package: *
Pin: release o=Ubuntu
Pin-Priority: 500
However, when trying to install NVIDIA version 418 using the package name listed using apt-cache to check for available nvidia-driver versions, I am getting this and not sure what to do at this point:

Code: Select all

sudo apt-get install nvidia-driver=418.74-1~bpo9+1
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 : Depends: nvidia-driver-libs (= 418.74-1~bpo9+1) but it is not going to be installed or
                          nvidia-driver-libs-nonglvnd (= 418.74-1~bpo9+1) but it is not going to be installed
                 Depends: nvidia-driver-bin (= 418.74-1~bpo9+1) but 390.116-1 is to be installed
                 Depends: xserver-xorg-video-nvidia (= 418.74-1~bpo9+1) but 390.116-1 is to be installed
                 Depends: nvidia-vdpau-driver (= 418.74-1~bpo9+1) but 390.116-1 is to be installed
                 Depends: nvidia-alternative (= 418.74-1~bpo9+1)
                 Depends: nvidia-kernel-dkms (= 418.74-1~bpo9+1) or
                          nvidia-kernel-418.74
E: Unable to correct problems, you have held broken packages.
Last edited by Titan91 on Mon Aug 05, 2019 9:15 pm, edited 1 time in total.

DanielR
Level 4
Level 4
Posts: 241
Joined: Mon Sep 23, 2013 1:22 pm

Re: Cannot Install NVIDIA Driver

Post by DanielR » Mon Aug 05, 2019 4:09 pm

In order to install from backports you need to specify "stretch-backports" and the package name in the apt-get command. Please find the instructions for installing from backports in the following link: https://backports.debian.org/Instructions/

Titan91
Level 1
Level 1
Posts: 45
Joined: Mon May 23, 2016 8:30 am

Re: Cannot Install NVIDIA Driver

Post by Titan91 » Mon Aug 05, 2019 9:14 pm

DanielR wrote:
Mon Aug 05, 2019 4:09 pm
In order to install from backports you need to specify "stretch-backports" and the package name in the apt-get command. Please find the instructions for installing from backports in the following link: https://backports.debian.org/Instructions/
Thank you, I was not aware of this. I was then able to install version 418, although it appears I will need to wait for a newer version to become available for Vulkan support. Meanwhile I was also able to install nvidia-driver-libs-i386:i386 from the same backport repo and OpenGL i386 libraries are now working in Wine.

Post Reply

Return to “Hardware Support”