LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-13-2019, 07:40 AM   #1
baumerang
LQ Newbie
 
Registered: Aug 2018
Location: Texas, US
Distribution: Slackware
Posts: 12

Rep: Reputation: Disabled
Nvidia-Driver broken on Stretch & Buster


Yesterday I tried installing the Debian packages of nvidia-driver on Buster from the non-free repositories and was given a warning that I held broken packages. Thinking maybe it was a Buster issue (a weird mid-freeze issue or something), I installed Stretch (9.9) and am having the same issue. What am I missing here?

After 'apt install nvidia-driver' as root:

Code:
# apt install nvidia-driver
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 : PreDepends: nvidia-installer-cleanup but it is not installable
                 PreDepends: nvidia-legacy-check (>= 343) but it is not going to be installed
                 Depends: nvidia-driver-libs (= 390.116-1) but it is not going to be installed or
                          nvidia-driver-libs-nonglvnd (= 390.116-1) but it is not going to be installed
                 Depends: nvidia-driver-bin (= 390.116-1) but it is not going to be installed
                 Depends: xserver-xorg-video-nvidia (= 390.116-1) but it is not going to be installed
                 Depends: nvidia-vdpau-driver (= 390.116-1) but it is not going to be installed
                 Depends: nvidia-alternative (= 390.116-1) but it is not going to be installed
                 Depends: nvidia-kernel-dkms (= 390.116-1) but it is not going to be installed or
                          nvidia-kernel-390.116
                 Depends: nvidia-support but it is not installable
                 Recommends: nvidia-settings (>= 390) but it is not installable
                 Recommends: libnvidia-cfg1 (= 390.116-1) 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.
This is the report from nvidia-detect:
Code:
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP104 [GeForce GTX 1080] [10de:1b80] (rev a1)

Checking card:  NVIDIA Corporation GP104 [GeForce GTX 1080] (rev a1)
Your card is supported by the default drivers.
It is recommended to install the
    nvidia-driver
package.
And here is my sources.list:
Code:
deb http://deb.debian.org/debian/ stretch main non-free
deb-src http://deb.debian.org/debian/ stretch main non-free

deb http://security.debian.org/debian-security stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free

# stretch-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stretch-updates main contrib non-free
EDIT:
The problem was in the apt/sources.list --> missing contrib in the main repo source.

Last edited by baumerang; 06-17-2019 at 04:52 PM.
 
Old 06-13-2019, 07:52 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

Quote:
Code:
E: Unable to correct problems, you have held broken packages.
I think that may be your problem. Have you put something on hold? You can check with:
Code:
dpkg --get-selections | grep -w hold
Or perhaps
Code:
dpkg l | grep '^h'
Evo2.
 
Old 06-15-2019, 03:51 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
baumerang, to clarify:
it is not your driver that is broken.
it is the package manager.
you need to fix that first.
afterwards, go to the debian wiki and install the proprietary nvidia driver the way debian recommends:
https://wiki.debian.org/NvidiaGraphicsDrivers
 
Old 06-17-2019, 04:35 PM   #4
baumerang
LQ Newbie
 
Registered: Aug 2018
Location: Texas, US
Distribution: Slackware
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,
I think that may be your problem. Have you put something on hold? You can check with:
Code:
dpkg --get-selections | grep -w hold
Or perhaps
Code:
dpkg l | grep '^h'
Unfortunately, no. No held packages (which would be odd, as I am on a fresh install). Also, following the wiki (which is out-of-date), it instructs you to install the headers for your kernel, which I have done. Still no help.
 
Old 06-17-2019, 04:51 PM   #5
baumerang
LQ Newbie
 
Registered: Aug 2018
Location: Texas, US
Distribution: Slackware
Posts: 12

Original Poster
Rep: Reputation: Disabled
The sources.list was missing 'contrib.'
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How To: Remastering Debian Stretch/Buster using Linux-live-debian-050419 into a Live CD/DVD/USB/HDD linus72 Debian 1 10-14-2019 01:25 PM
Deb.Buster: Configuring Nvidia GLX1070-maxQ(Laptop:GigaByte-Aero-15X) Capt. Kirk Debian 8 03-26-2019 04:04 AM
[SOLVED] Upgraded Stretch->Buster, lost network. How to set up simple DHCP connection? pepperslq Debian 7 02-26-2018 02:38 AM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
Gotta love those ٱٱٱٱٱٱٱ&# iLLuSionZ Linux - General 5 11-18-2003 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration