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

 

 

 

Unable to install Nvidia drivers, not even nvidia-detect

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
jorge68
Posts: 5
Joined: 2022-09-25 15:36

Unable to install Nvidia drivers, not even nvidia-detect

#1 Post by jorge68 »

I have a Lenovo Yoga 15 with Bullseye stable. This laptop has two cards, Nvidia GeForce 840M card Intel 5500. For the life of me I cannot install any nvidia driver, not even nvidia-detect. Nouveau is installed and loaded.

Code: Select all

jorge@galisteo:~$ uname -a
Linux galisteo 5.10.0-17-amd64 #1 SMP Debian 5.10.136-1 (2022-08-13) x86_64 GNU/Linux
The two cards:

Code: Select all

jorge@galisteo:~$ lspci -v

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09) (prog-if 00 [VGA controller])
	Subsystem: Lenovo HD Graphics 5500
	Flags: bus master, fast devsel, latency 0, IRQ 50
	Memory at f2000000 (64-bit, non-prefetchable) [size=16M]
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 4000 [size=64]
	Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: i915
	Kernel modules: i915

06:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev a2)
	Subsystem: Lenovo GM108M [GeForce 840M]
	Flags: bus master, fast devsel, latency 0, IRQ 49, IOMMU group 13
	Memory at f3000000 (32-bit, non-prefetchable) [size=16M]
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at 3000 [size=128]
	Expansion ROM at <ignored> [disabled]
	Capabilities: <access denied>
	Kernel driver in use: nouveau
	Kernel modules: nouveau

The sources.list contains non-free and contrib:

Code: Select all

# deb cdrom:[Debian GNU/Linux 11.2.0 _Bullseye_ - Official amd64 NETINST 20211218-11:12]/ bullseye main

# deb cdrom:[Debian GNU/Linux 11.2.0 _Bullseye_ - Official amd64 NETINST 20211218-11:12]/ bullseye main

deb http://deb.debian.org/debian/ bullseye main non-free contrib
deb-src http://deb.debian.org/debian/ bullseye main non-free contrib

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

# bullseye-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ bullseye-updates main non-free contrib
deb-src http://deb.debian.org/debian/ bullseye-updates main non-free contrib

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

If I try to install nvidia-detect, I get the following error:

Code: Select all

orge@galisteo:~$ sudo apt-get install nvidia-detect
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden NEUEN Pakete werden installiert:
  nvidia-detect
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.
Es müssen 233 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 307 kB Plattenplatz zusätzlich benutzt.
Fehl:1 http://deb.debian.org/debian bullseye/non-free amd64 nvidia-detect amd64 460.91.03-1
  404  Not Found [IP: 151.101.134.132 80]
E: Fehlschlag beim Holen von http://deb.debian.org/debian/pool/non-free/n/nvidia-graphics-drivers/nvidia-detect_460.91.03-1_amd64.deb 404  Not Found [IP: 151.101.134.132 80]
E: Einige Archive konnten nicht heruntergeladen werden; vielleicht »apt-get update« ausführen oder mit »--fix-missing« probieren?

linux-headers are already installed:

Code: Select all

jorge@galisteo:~$ sudo apt install linux-headers-amd64
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
linux-headers-amd64 ist schon die neueste Version (5.10.136-1).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.
Nouveau info:

Code: Select all

jorge@galisteo:~$ lsmod | grep nouveau
nouveau              2371584  1
mxm_wmi                16384  1 nouveau
ttm                   114688  1 nouveau
i2c_algo_bit           16384  2 i915,nouveau
drm_kms_helper        278528  2 i915,nouveau
drm                   626688  11 drm_kms_helper,i915,ttm,nouveau
wmi                    36864  3 wmi_bmof,mxm_wmi,nouveau
video                  57344  3 thinkpad_acpi,i915,nouveau
button                 24576  1 nouveau
I would appreciate any pointers to solve this problem.

Cheers

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Unable to install Nvidia drivers, not even nvidia-detect

#2 Post by sunrat »

The version of nvidia-detect in your install error is not current. It should be 470.141.03-1~deb11u1
Do:

Code: Select all

apt update
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

jorge68
Posts: 5
Joined: 2022-09-25 15:36

Re: Unable to install Nvidia drivers, not even nvidia-detect

#3 Post by jorge68 »

Dear Sunrat,
thank you for the tip.
I am afraid "apt update" does not fix the issue. I should have stated that I had already tried that.
There is something fishy with this installation, as nvidia-detect is not the only package that has the same issue:

Code: Select all

jorge@galisteo:~$ sudo apt update
OK:1 http://deb.debian.org/debian bullseye InRelease
OK:2 http://security.debian.org/debian-security bullseye-security InRelease                                                                                   
OK:3 http://deb.debian.org/debian bullseye-updates InRelease                                                                                                  
OK:4 https://updates.signal.org/desktop/apt xenial InRelease                                                                                                  
OK:5 https://repo.skype.com/deb stable InRelease                                                         
OK:6 https://packages.microsoft.com/repos/ms-teams stable InRelease              
Paketlisten werden gelesen… Fertig                       
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Aktualisierung für 3 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
jorge@galisteo:~$ sudo apt upgrade
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Paketaktualisierung (Upgrade) wird berechnet… Fertig
Die folgenden NEUEN Pakete werden installiert:
  libxnvctrl0
Die folgenden Pakete werden aktualisiert (Upgrade):
  chromium chromium-common chromium-sandbox
3 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 26,9 kB von 69,4 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 2.184 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Fehl:1 http://deb.debian.org/debian bullseye/main amd64 libxnvctrl0 amd64 460.91.03-1
  404  Not Found [IP: 151.101.134.132 80]
E: Fehlschlag beim Holen von http://deb.debian.org/debian/pool/main/n/nvidia-settings/libxnvctrl0_460.91.03-1_amd64.deb 404  Not Found [IP: 151.101.134.132 80]
E: Einige Archive konnten nicht heruntergeladen werden; vielleicht »apt-get update« ausführen oder mit »--fix-missing« probieren?
jorge@galisteo:~$ sudo apt install nvidia-detect
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden NEUEN Pakete werden installiert:
  nvidia-detect
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.
Es müssen 233 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 307 kB Plattenplatz zusätzlich benutzt.
Fehl:1 http://deb.debian.org/debian bullseye/non-free amd64 nvidia-detect amd64 460.91.03-1
  404  Not Found [IP: 151.101.134.132 80]
E: Fehlschlag beim Holen von http://deb.debian.org/debian/pool/non-free/n/nvidia-graphics-drivers/nvidia-detect_460.91.03-1_amd64.deb 404  Not Found [IP: 151.101.134.132 80]
E: Einige Archive konnten nicht heruntergeladen werden; vielleicht »apt-get update« ausführen oder mit »--fix-missing« probieren?

Thank you again for your interest.

jorge68
Posts: 5
Joined: 2022-09-25 15:36

Re: Unable to install Nvidia drivers, not even nvidia-detect

#4 Post by jorge68 »

I am not sure if this helps, but Synaptic also seems to think that 460.91.03-1 is the latest version.
Attachments
Bildschirmfoto vom 2022-09-26 22-31-30.png
Bildschirmfoto vom 2022-09-26 22-31-30.png (51.91 KiB) Viewed 3936 times

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: Unable to install Nvidia drivers, not even nvidia-detect

#5 Post by Segfault »

Since it is download what fails you could download the deb by hand, as a workaround.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Unable to install Nvidia drivers, not even nvidia-detect

#6 Post by sunrat »

460.91.03-1 is not even listed in the repo:
https://packages.debian.org/search?keyw ... dia-detect
On my Bullseye system:

Code: Select all

$ apt list nvidia-detect     ...
nvidia-detect/stable,now 470.141.03-1~deb11u1 amd64 [installed]
You are trying to install a package version which doesn't exist.
So something is failing to update your package list.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Unable to install Nvidia drivers, not even nvidia-detect

#7 Post by Head_on_a_Stick »

jorge68 wrote: 2022-09-26 07:46 There is something fishy with this installation, as nvidia-detect is not the only package that has the same issue:
My German is crap so let's see the output in English instead:

Code: Select all

LC_ALL=C apt update
deadbang

jorge68
Posts: 5
Joined: 2022-09-25 15:36

Re: Unable to install Nvidia drivers, not even nvidia-detect

#8 Post by jorge68 »

Hi,
apologies about the German text.

Code: Select all

jorge@galisteo:~$ sudo LC_ALL=C apt list nvidia-detect
Listing... Done
nvidia-detect/stable 460.91.03-1 amd64

and

Code: Select all

jorge@galisteo:~$ sudo LC_ALL=C apt update
[sudo] Passwort für jorge: 
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org/debian-security bullseye-security InRelease                 
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease                                
Hit:4 https://updates.signal.org/desktop/apt xenial InRelease                                
Hit:5 https://repo.skype.com/deb stable InRelease                                            
Hit:6 https://packages.microsoft.com/repos/ms-teams stable InRelease            
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
the packages that can be upgraded are related to Chromium:

Code: Select all

jorge@galisteo:~$ sudo LC_ALL=C apt list --upgradeable
Listing... Done
chromium-common/stable-security 105.0.5195.125-1~deb11u1 amd64 [upgradable from: 102.0.5005.115-1~deb11u1]
chromium-sandbox/stable-security 105.0.5195.125-1~deb11u1 amd64 [upgradable from: 102.0.5005.115-1~deb11u1]
chromium/stable-security 105.0.5195.125-1~deb11u1 amd64 [upgradable from: 102.0.5005.115-1~deb11u1]

jorge68
Posts: 5
Joined: 2022-09-25 15:36

Re: Unable to install Nvidia drivers, not even nvidia-detect

#9 Post by jorge68 »

Problem solved. This did it for me:

Code: Select all

rm -rf /var/lib/apt/lists/*
followed by

Code: Select all

rm /var/cache/apt/*.bin
and

Code: Select all

apt clean
as described here: https://www.cyberithub.com/how-to-fix-b ... y-methods/

Nvidia drivers now installed, nouveau blacklisted. Alles in Ordnung.

Thank you so much for your help.

Cheeers

Post Reply