problem nvidia-driver on debian 11

New to Debian (Or Linux in general)? Ask your questions here!

problem nvidia-driver on debian 11

Postby cater » 2020-10-27 20:15

Hi all :)

sorry my english

I am having dependency problems when installing nvidia-driver on debian 11
Code: Select all
apt install nvidia-driver

Requested-By: base1 (1000)
Install: libnvidia-glvkspirv:amd64 (450.66-1, automatic), nvidia-support:amd64 (20151021+12, automatic), libgles-nvidia1:amd64 (450.66-1, automatic), libgles-nvidia2:amd64 (450.66-1, automatic), nvidia-kernel-common:amd64 (20151021+12, automatic), libnvidia-ml1:amd64 (450.66-1, automatic), nvidia-vulkan-icd:amd64 (450.66-1, automatic), nvidia-egl-icd:amd64 (450.66-1, automatic), update-glx:amd64 (1.2.0, automatic), nvidia-driver:amd64 (450.66-1), nvidia-modprobe:amd64 (450.66-1, automatic), libopengl0:amd64 (1.3.2-1, automatic), nvidia-vulkan-common:amd64 (450.66-1, automatic), nvidia-vdpau-driver:amd64 (450.66-1, automatic), libgl1-nvidia-glvnd-glx:amd64 (450.66-1, automatic), libgles1:amd64 (1.3.2-1, automatic), libglx-nvidia0:amd64 (450.66-1, automatic), glx-alternative-nvidia:amd64 (1.2.0, automatic), dkms:amd64 (2.8.3-4, automatic), nvidia-kernel-dkms:amd64 (450.66-1, automatic), libegl-nvidia0:amd64 (450.66-1, automatic), nvidia-egl-common:amd64 (450.66-1, automatic), libxnvctrl0:amd64 (450.66-1, automatic), libnvidia-cfg1:amd64 (450.66-1, automatic), nvidia-legacy-check:amd64 (450.66-1, automatic), nvidia-kernel-support:amd64 (450.66-1, automatic), glx-diversions:amd64 (1.2.0, automatic), linux-headers-amd64:amd64 (5.9.1-1, automatic), nvidia-driver-libs:amd64 (450.66-1, automatic), nvidia-driver-bin:amd64 (450.66-1, automatic), nvidia-persistenced:amd64 (450.57-1, automatic), xserver-xorg-video-nvidia:amd64 (450.66-1, automatic), libnvidia-rtcore:amd64 (450.66-1, automatic), nvidia-installer-cleanup:amd64 (20151021+12, automatic), glx-alternative-mesa:amd64 (1.2.0, automatic), libnvidia-cbl:amd64 (450.66-1, automatic), libnvidia-glcore:amd64 (450.66-1, automatic), libnvidia-eglcore:amd64 (450.66-1, automatic), nvidia-settings:amd64 (450.66-1, automatic), nvidia-alternative:amd64 (450.66-1, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1


Code: Select all
Error! Bad return status for module build on kernel: 5.9.0-1-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-current/450.66/build/make.log for more information.
dpkg: erro ao processar o pacote nvidia-kernel-dkms (--configure):
 o subprocesso instalado, do pacote nvidia-kernel-dkms, o script post-installation retornou erro do status de saída 10
dpkg: problemas com dependências impedem a configuração de nvidia-driver:
 nvidia-driver depende de nvidia-kernel-dkms (= 450.66-1) | nvidia-kernel-450.66; porém:
  Pacote nvidia-kernel-dkms não está configurado ainda.
  Pacote nvidia-kernel-450.66 não está instalado.
  Pacote nvidia-kernel-dkms, o qual fornece nvidia-kernel-450.66 ainda não está configurado.


in English
Code: Select all

nvidia-driver depends on nvidia-kernel-dkms (= 450.66-1) | nvidia-kernel-450.66; however:
   Nvidia-kernel-dkms package is not configured yet.
   Package nvidia-kernel-450.66 is not installed.
   Nvidia-kernel-dkms package, which provides nvidia-kernel-450.66 is not yet configured


I ran

Code: Select all
sudo dpkg --configure -a


and
Code: Select all
sudo apt install -f


but it didn't solve, same error

I also did a google search but no success

thanks in advance for any tips
cater
 
Posts: 13
Joined: 2016-05-08 16:09

Re: problem nvidia-driver on debian 11

Postby 4D696B65 » 2020-10-27 20:21

nvidia will not build on kernel 5.9
welcome to the testing branch
User avatar
4D696B65
 
Posts: 2509
Joined: 2009-06-28 06:09

Re: problem nvidia-driver on debian 11

Postby cater » 2020-10-27 20:27

4D696B65 wrote:nvidia will not build on kernel 5.9
welcome to the testing branch


Oh ok

thank you very much for the quick replica :)
cater
 
Posts: 13
Joined: 2016-05-08 16:09

Re: problem nvidia-driver on debian 11

Postby sunrat » 2020-10-27 21:10

4D696B65 wrote:nvidia will not build on kernel 5.9
welcome to the testing branch

Or more precisely, won't build on 5.9 yet.

NVIDIA Doesn't Expect To Have Linux 5.9 Driver Support For Another Month https://www.phoronix.com/scan.php?page= ... .9-Delayed
“ 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
sunrat
 
Posts: 3316
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: problem nvidia-driver on debian 11

Postby 4D696B65 » 2020-10-29 19:09

Fixed in sid today. Should be in testing shortly.
User avatar
4D696B65
 
Posts: 2509
Joined: 2009-06-28 06:09

Re: problem nvidia-driver on debian 11

Postby milomak » 2020-10-29 19:33

4D696B65 wrote:Fixed in sid today. Should be in testing shortly.

ha just installed an aptosid 5.9 kernel on the back of this
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10
Laptop: Lenovo ideapad Y700-15ISK [nVidia Optimus] (64-bit) - Sid, Win10, Solus
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
milomak
 
Posts: 2074
Joined: 2009-06-09 22:20

Re: problem nvidia-driver on debian 11

Postby sunrat » 2020-10-29 21:55

4D696B65 wrote:Fixed in sid today. Should be in testing shortly.

Do you have a source for this? Did Nvidia pull their fingers out of their arse and defy the predictions in the Phoronix article I posted?

The holdup was due to changes in the 5.9+ kernels dealing with how proprietary code worked around GPL:
https://www.phoronix.com/scan.php?page= ... Shim-Taint
towo (siduction lead dev) said there was a patch with which he could work around it in the kernel but couldn't as it broke GPL.
“ 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
sunrat
 
Posts: 3316
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: problem nvidia-driver on debian 11

Postby 4D696B65 » 2020-10-29 22:38

sunrat wrote:
4D696B65 wrote:Fixed in sid today. Should be in testing shortly.

Do you have a source for this? Did Nvidia pull their fingers out of their arse and defy the predictions in the Phoronix article I posted?

The holdup was due to changes in the 5.9+ kernels dealing with how proprietary code worked around GPL:
https://www.phoronix.com/scan.php?page= ... Shim-Taint
towo (siduction lead dev) said there was a patch with which he could work around it in the kernel but couldn't as it broke GPL.

Code: Select all
mike@z87:~$ uname -a
Linux z87 5.9.0-1-amd64 #1 SMP Debian 5.9.1-1 (2020-10-17) x86_64 GNU/Linux
mike@z87:~$ apt policy nvidia-driver
nvidia-driver:
  Installed: 450.80.02-1
  Candidate: 450.80.02-1
  Version table:
 *** 450.80.02-1 500
        500 http://ftp.ca.debian.org/debian unstable/non-free amd64 Packages
        100 /var/lib/dpkg/status


nvidia-graphics-drivers (450.80.02-1) unstable; urgency=medium

* New upstream long lived branch release 450.80.02 (2020-09-30).
- Added support for the following GPUs: DGX Display, GeForce MX450.
* Improved compatibility with recent Linux kernels.
(Closes: #972514, #972582, #972834, #972856, #972901)

[ Andreas Beckmann ]
* Update nv-readme.ids.
* Update symbols files.
* Restrict watch file to releases from the 450.xx long lived branch.
* Update lintian overrides.

-- Andreas Beckmann <anbe@debian.org> Thu, 29 Oct 2020 01:05:29 +0100
User avatar
4D696B65
 
Posts: 2509
Joined: 2009-06-28 06:09

Re: problem nvidia-driver on debian 11

Postby stevepusser » 2020-10-30 11:16

To be pedantic, there is no such thing as Debian 11 yet, either.
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12136
Joined: 2009-10-06 05:53

Re: problem nvidia-driver on debian 11

Postby stevepusser » 2020-10-31 01:00

Got it backported for MX 19 on a pure Buster base and on the MX 18 base, which has similar backports to make it like Buster. Pure Stretch is a no-go. There is a combination of patched versions of other drivers and brand-new versions in Sid, too: 390xx and 340xx legacy, plus Tesla 418 and 440 drivers. Tesla 450 drivers still have not been updated.

Code: Select all
optirun inxi -G

Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel
           Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile] driver: nvidia v: 450.80.02
           Display: x11 server: X.Org 1.20.9 driver: intel resolution: 1920x1080~60Hz
           OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 450.80.02
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12136
Joined: 2009-10-06 05:53

Re: problem nvidia-driver on debian 11

Postby kkfu » 2020-11-09 13:29

stevepusser wrote:Got it backported for MX 19 on a pure Buster base and on the MX 18 base, which has similar backports to make it like Buster. Pure Stretch is a no-go. There is a combination of patched versions of other drivers and brand-new versions in Sid, too: 390xx and 340xx legacy, plus Tesla 418 and 440 drivers. Tesla 450 drivers still have not been updated.

Code: Select all
optirun inxi -G

Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel
           Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile] driver: nvidia v: 450.80.02
           Display: x11 server: X.Org 1.20.9 driver: intel resolution: 1920x1080~60Hz
           OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 450.80.02


Hi, I do have:
Code: Select all
Linux venus 5.9.0-1-amd64 #1 SMP Debian 5.9.1-1 (2020-10-17) x86_64 GNU/Linux

What is the recommended way to install the 450.80.02 driver? I am new to debian and dont want to mess up (already have done before with this drivers.
kkfu
 
Posts: 8
Joined: 2020-11-09 12:15

Re: problem nvidia-driver on debian 11

Postby sunrat » 2020-11-09 19:35

kkfu wrote:What is the recommended way to install the 450.80.02 driver? I am new to debian and dont want to mess up (already have done before with this drivers.

nvidia-driver package from backports. Look in the Debian wiki. Presumably you know how to use backports anyway as that's where you should have installed your 5.9 kernel from.
“ 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
sunrat
 
Posts: 3316
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: problem nvidia-driver on debian 11

Postby stevepusser » 2020-11-10 19:35

sunrat wrote:
kkfu wrote:What is the recommended way to install the 450.80.02 driver? I am new to debian and dont want to mess up (already have done before with this drivers.

nvidia-driver package from backports. Look in the Debian wiki. Presumably you know how to use backports anyway as that's where you should have installed your 5.9 kernel from.


That 5.9 kernel looks like Bullseye's, to be honest, and the driver is in Bullseye, too. I don't see any 5.9 kernel in backports. Sid now is up to 5.9.6.

How to install the correct driver depends on your Nvidia GPU, whether you have just the Nvidia GPU or a hybrid laptop (optimus) setup, and is detailed in the Debian wiki, where we ask you to look first.
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12136
Joined: 2009-10-06 05:53

Re: problem nvidia-driver on debian 11

Postby kkfu » 2020-11-10 20:37

stevepusser wrote:
sunrat wrote:
kkfu wrote:What is the recommended way to install the 450.80.02 driver? I am new to debian and dont want to mess up (already have done before with this drivers.

nvidia-driver package from backports. Look in the Debian wiki. Presumably you know how to use backports anyway as that's where you should have installed your 5.9 kernel from.


That 5.9 kernel looks like Bullseye's, to be honest, and the driver is in Bullseye, too. I don't see any 5.9 kernel in backports. Sid now is up to 5.9.6.

How to install the correct driver depends on your Nvidia GPU, whether you have just the Nvidia GPU or a hybrid laptop (optimus) setup, and is detailed in the Debian wiki, where we ask you to look first.


I did a new install of debian 10 stable. I do have a gtx1660. Followed the wiki: https://wiki.debian.org/NvidiaGraphicsD ... stallation
I added to /etc/apt/sources.list the backport repositories.

Then I installed:
Code: Select all
apt install -t buster-backports linux-headers-amd64


Then:
Code: Select all
# apt update
# apt install -t buster-backports nvidia-driver
systemctl reboot


Code: Select all
ws1@ws1:~$ nvidia-settings

ERROR: NVIDIA driver is not loaded


ERROR: Unable to load info from any available system


Code: Select all
ws1@ws1:~$ uname -a
Linux ws1 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux


I do have:
Code: Select all
ws1@ws1:~$ lspci -k | grep -EA2 "VGA|3D|Display"
02:01.0 VGA compatible controller: Red Hat, Inc. QXL paravirtual graphic card (rev 04)
        Subsystem: Red Hat, Inc QEMU Virtual Machine
        Kernel driver in use: qxl
--
06:00.0 VGA compatible controller: NVIDIA Corporation TU116 [GeForce GTX 1660] (rev a1)
        Subsystem: ASUSTeK Computer Inc. TU116 [GeForce GTX 1660]
        Kernel modules: nvidia


So far I am using vnc to access my vm and also the physical gpu.But I want to have only my gtx1660 running. After editing the xml and enabling passthrough for my gtx1660 I only get a blank screen...I guess due to not being able to load the nvidia-driver. How can I fix this?
Last edited by kkfu on 2020-11-10 20:54, edited 3 times in total.
kkfu
 
Posts: 8
Joined: 2020-11-09 12:15

Re: problem nvidia-driver on debian 11

Postby sunrat » 2020-11-10 20:43

stevepusser wrote:That 5.9 kernel looks like Bullseye's, to be honest, and the driver is in Bullseye, too. I don't see any 5.9 kernel in backports. Sid now is up to 5.9.6.

If someone is using the testing branch it's a vital piece of information that should be disclosed in their first post. Testing is not for people "new to Linux" and it's users are expected to know how to install basic packages. </grumpy first post of the day>

Edit: thanks for the new info you posted while I was writing. So you're in a VM. That's a whole different issue for which you should have started a new thread. I can't really help you but I'm pretty sure you can't run passthrough easily with a single graphics card.
“ 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
sunrat
 
Posts: 3316
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable