Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Installation] Installing latest Nvidia driver on Debian

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
ThreeDs
Posts: 16
Joined: 2023-05-28 13:10
Has thanked: 2 times

[Installation] Installing latest Nvidia driver on Debian

#1 Post by ThreeDs »

Hi, New to Linux.
I'm trying to install the latest Nvidia driver
I'm using a GeForce RTX 3080 and I'm trying to install the driver using

Code: Select all

sudo apt install nvidia-driver-525
What it returns is:

Code: Select all

Reading package lists... Done
Building dependency tree... Done
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:
 libnvidia-gl-525 : Depends: libnvidia-egl-wayland1 (>= 1:1.1.10) but it is not installable
 nvidia-dkms-525 : Depends: dkms but it is not installable
 nvidia-kernel-common-525 : Depends: libc6 (>= 2.34) but 2.31-13+deb11u6 is to be installed
E: Unable to correct problems, you have held broken packages.
By trying to install those dependencies the same error happens.

This is my /etc/apt/sources.list:

Code: Select all

# deb cdrom:[Debian GNU/Linux 11.7.0 _Bullseye_ - Official amd64 DVD Binary-1 2>

# deb cdrom:[Debian GNU/Linux 11.7.0 _Bullseye_ - Official amd64 DVD Binary-1 2>

# Line commented out by installer because it failed to verify:
deb http://security.debian.org/debian-security bullseye-security main contrib
# Line commented out by installer because it failed to verify:
deb-src http://security.debian.org/debian-security bullseye-security main contr>
deb http://deb.debian.org/debian/ bullseye non-free
I also upgraded and updated apt-get and about 32 packages were updated.

Now I'm stuck because nothing else I do seems to change anything. What am I missing?

If you need any info please let me know. I'm a rookie so I may be missing some. Thanks!

Random_Troll
Posts: 444
Joined: 2023-02-07 13:35
Been thanked: 105 times

Re: [Installation] Installing latest Nvidia driver on Debian

#2 Post by Random_Troll »

ThreeDs wrote: 2023-05-28 13:23What am I missing?
The main repository sources, which are quite important. The installler omits them if you neglect to select a mirror.

Here's a full list (use these instead of your current sources.list, not as well as):

Code: Select all

deb https://deb.debian.org/debian bullseye main contrib non-free
deb https://deb.debian.org/debian bullseye-updates main contrib non-free
deb https://deb.debian.org/debian-security bullseye-security main contrib non-free
And remember to `apt update` after saving the file modifications.
Jeder nach seinen Fähigkeiten, jedem nach seinen Bedürfnissen.

ThreeDs
Posts: 16
Joined: 2023-05-28 13:10
Has thanked: 2 times

Re: [Installation] Installing latest Nvidia driver on Debian

#3 Post by ThreeDs »

Thanks a lot mate. I'll try them later and reply with what happened. Essentially I can just wipe the whole /etc/apt/sources.list and just paste what you gave me?
Last edited by ThreeDs on 2023-05-28 14:28, edited 1 time in total.

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: [Installation] Installing latest Nvidia driver on Debian

#4 Post by 4D696B65 »

ThreeDs wrote: 2023-05-28 14:26 Essentially I can just wipe the whole /etc/apt/sources.list and just paste what you gave me?
Yes

ThreeDs
Posts: 16
Joined: 2023-05-28 13:10
Has thanked: 2 times

Re: [Installation] Installing latest Nvidia driver on Debian

#5 Post by ThreeDs »

Thank you guys I did everything.
Now after I try to install nvidia-driver-525 this is the message I receive

Code: Select all

The following packages have unmet dependencies:
 libnvidia-gl-525 : Depends: libnvidia-egl-wayland1 (>= 1:1.1.10) but 1:1.1.5-1 is to be installed
 nvidia-kernel-common-525 : Depends: libc6 (>= 2.34) but 2.31-13+deb11u6 is to be installed
Sorry if what I'm about to say is mumbo-jumbo, but from my understanding even after 'apt update' it seems that the cache only contains older versions of some dependencies I need. I tried to force a install of the most recent version by doing

Code: Select all

sudo apt install libnvidia-egl-wayland1=1:1.1.10
But in vain, of course...

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: [Installation] Installing latest Nvidia driver on Debian

#6 Post by 4D696B65 »

did you

Code: Select all

apt update
after changing your sources.list?

Random_Troll
Posts: 444
Joined: 2023-02-07 13:35
Been thanked: 105 times

Re: [Installation] Installing latest Nvidia driver on Debian

#7 Post by Random_Troll »

^ The OP claims so.

@OP: my apologies, I missed that nvidia-driver-525 package reference. That is not available from Debian. From where did you obtain it?

Code: Select all

apt policy nvidia-driver-525
Jeder nach seinen Fähigkeiten, jedem nach seinen Bedürfnissen.

ThreeDs
Posts: 16
Joined: 2023-05-28 13:10
Has thanked: 2 times

Re: [Installation] Installing latest Nvidia driver on Debian

#8 Post by ThreeDs »

4D696B65 wrote: 2023-05-28 21:57 after changing your sources.list?
Yes

ThreeDs
Posts: 16
Joined: 2023-05-28 13:10
Has thanked: 2 times

Re: [Installation] Installing latest Nvidia driver on Debian

#9 Post by ThreeDs »

@OP: my apologies, I missed that nvidia-driver-525 package reference. That is not available from Debian. From where did you obtain it?
I found it on the internet but I'm not sure if it is the right driver. I found a lot of sources all claiming different things
Last edited by ThreeDs on 2023-05-28 23:11, edited 1 time in total.

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: [Installation] Installing latest Nvidia driver on Debian

#10 Post by 4D696B65 »

The driver is called

Code: Select all

nvidia-driver
The version in bullseye is 470. If you must have 525, you will need to upgrade to bookworm
https://packages.debian.org/bookworm/nvidia-driver

ThreeDs
Posts: 16
Joined: 2023-05-28 13:10
Has thanked: 2 times

Re: [Installation] Installing latest Nvidia driver on Debian

#11 Post by ThreeDs »

4D696B65 wrote: 2023-05-29 00:59 The version in bullseye is 470. If you must have 525, you will need to upgrade to bookworm
Thanks. I think you may be right because just installing nvidia-driver changes nothing. Is there some command or configuration file to upgrade to bookworm? And will my wifi adapter driver keep working after the update or I will have to install it all over again with the pendrive?

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: [Installation] Installing latest Nvidia driver on Debian

#12 Post by 4D696B65 »

ThreeDs wrote: 2023-05-29 08:43
4D696B65 wrote: 2023-05-29 00:59 The version in bullseye is 470. If you must have 525, you will need to upgrade to bookworm
Thanks. I think you may be right because just installing nvidia-driver changes nothing. Is there some command or configuration file to upgrade to bookworm? And will my wifi adapter driver keep working after the update or I will have to install it all over again with the pendrive?
edit /etc/apt/sources.list and change all instances of bullseye to bookworm. save and apt update then apt upgrade.
read release notes too

ThreeDs
Posts: 16
Joined: 2023-05-28 13:10
Has thanked: 2 times

Re: [Installation] Installing latest Nvidia driver on Debian

#13 Post by ThreeDs »

I did that already and it cause a lot of graphical glitches which I'm trying to solve. I also opened a new discussion about it. I'm glad I did it right since I did exactly what you suggested. I'd be glad to have your opinion on the other issue. Then I'll probably be able to solve this one too

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: [Installation] Installing latest Nvidia driver on Debian

#14 Post by stevepusser »

Well, you can also try those same backported 525 drivers from the MX 21 repo (ahs-staging at the moment), since they've worked well enough for me with PRIME on this Optimus Dell notebook since I did them a couple weeks ago, even with a 6.3 kernel...but Bookworm is due to be released in a couple weeks, anyway, so maybe just stay with that.

Code: Select all

$ uname -a
Linux mx-dell-g15 6.3.3-1-liquorix-amd64 #1 ZEN SMP PREEMPT liquorix 6.3-2~mx21+1 (2023-05-19) x86_64 GNU/Linux

Graphics:  Device-1: NVIDIA GA107M [GeForce RTX 3050 Ti Mobile] vendor: Dell driver: nvidia v: 525.105.17 bus-ID: 01:00.0 
           Device-2: Advanced Micro Devices [AMD/ATI] Cezanne vendor: Dell driver: amdgpu v: kernel bus-ID: 05:00.0 
           Display: x11 server: X.Org 1.20.14 driver: loaded: amdgpu,nvidia resolution: 1920x1080~120Hz 
           OpenGL: renderer: NVIDIA GeForce RTX 3050 Ti Laptop GPU/PCIe/SSE2 v: 4.6.0 NVIDIA 525.105.17 direct render: Yes 
MX Linux packager and developer

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: [Installation] Installing latest Nvidia driver on Debian

#15 Post by stevepusser »

ThreeDs wrote: 2023-05-30 16:20 I did that already and it cause a lot of graphical glitches which I'm trying to solve. I also opened a new discussion about it. I'm glad I did it right since I did exactly what you suggested. I'd be glad to have your opinion on the other issue. Then I'll probably be able to solve this one too
Did you upgrade to the Bookworm kernel, too? Just those apt commands above may not do it.
MX Linux packager and developer

ThreeDs
Posts: 16
Joined: 2023-05-28 13:10
Has thanked: 2 times

Re: [Installation] Installing latest Nvidia driver on Debian

#16 Post by ThreeDs »

stevepusser wrote: 2023-05-30 21:52 Did you upgrade to the Bookworm kernel, too? Just those apt commands above may not do it.
I wrote all commands and the process I followed in the discussion I've opened about the glitches. Other users haven't pointed out anything wrong with them so I guess I did it right but I'm too inexperienced to be certain of it

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: [Installation] Installing latest Nvidia driver on Debian

#17 Post by stevepusser »

You can tell us the output of "uname -a" in the terminal so we can be certain what kernel you're running, much like I posted above for my 6.3 Liquorix kernel.
MX Linux packager and developer

ThreeDs
Posts: 16
Joined: 2023-05-28 13:10
Has thanked: 2 times

Re: [Installation] Installing latest Nvidia driver on Debian

#18 Post by ThreeDs »

stevepusser wrote: 2023-05-31 21:25 You can tell us the output of "uname -a" in the terminal so we can be certain what kernel you're running, much like I posted above for my 6.3 Liquorix kernel.
Sure. Here's what it prints:

Code: Select all

Linux debian 6.1.0-9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.27-1 (2023-05-08) x86_64 GNU/Linux
Does it tell us anything?

nixgr
Posts: 4
Joined: 2023-06-14 07:39

Re: [Installation] Installing latest Nvidia driver on Debian

#19 Post by nixgr »

Best way of determining Debian release is to

Code: Select all

$ cat /etc/os-release 
Uname mostly returns kernel specific details not distribution details. It can be deduced from uname - bookworkm uses 6.1 kernel but you can also have this kernel with older release.
Did you follow Debian wiki instructions on installing Nvidia drivers? https://wiki.debian.org/NvidiaGraphicsD ... stallation

Random_Troll
Posts: 444
Joined: 2023-02-07 13:35
Been thanked: 105 times

Re: [Installation] Installing latest Nvidia driver on Debian

#20 Post by Random_Troll »

The canonical method of determining the Debian version is to check the output of

Code: Select all

apt policy
/etc/os-release just tells you which version of the base-files package is installed.
Jeder nach seinen Fähigkeiten, jedem nach seinen Bedürfnissen.

Post Reply