You are not logged in.

#1 2019-04-15 17:44

Marcus
Member
Registered: 2018-10-23
Posts: 23

NVidia Driver installation on Scorpion

Hi all,

I am trying to install the NVidia drivers using the Setup Wizard. The system is on Q4OS Scorpion and has already all the latest updates. The installation fails with the following error:

Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
nvidia-driver : Hängt ab von: nvidia-driver-libs (= 390.87-8~deb9u1) soll aber nicht installiert werden oder
nvidia-driver-libs-nonglvnd (= 390.87-8~deb9u1) soll aber nicht installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.
Testing installation ... Done

Greetings
Marcus

Offline

#2 2019-04-16 10:16

jotapesse
Member
From: Algarve, Portugal
Registered: 2019-03-23
Posts: 67

Re: NVidia Driver installation on Scorpion

I'm sorry, I don't understand German(?) language. You're asking for help, it would be nice for you to post a English translation of the error you got.

Also, more details are required to proper debug it, what hardware are you running, specifically what Nvidia graphics card/chipset/model are you trying to install. Is your install of Q4OS 2.x "Scorpion" default or have changed anything in the sources list, added repositories, etc.?

Last edited by jotapesse (2019-04-16 10:25)


jotapesse - Obrigado / Thank you.

Offline

#3 2019-04-16 13:03

JimW
Member
Registered: 2015-12-08
Posts: 400

Re: NVidia Driver installation on Scorpion

https://translate.google.com/ should get a close enough translation -

"The following information may help you to resolve the situation:
The following packages have unmet dependencies:
nvidia-driver: Depends on: nvidia-driver-libs (= 390.87-8 ~ deb9u1) but should not be installed or
However, nvidia-driver-libs-nonglvnd (= 390.87-8 ~ deb9u1) should not be installed
E: Problems can not be corrected, you have retained defective packages.
Testing installation ... Done"

Offline

#4 2019-04-16 13:33

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: NVidia Driver installation on Scorpion

@Marcus
We are not able to reproduce that, "nvidia-driver" package installs fine here. Have you added some additional repositories ?
Please run following commands in terminal and post output here for us to analyze:

$ qrepolist
$ sudo apt install nvidia-driver

Offline

#5 2019-04-16 18:32

Marcus
Member
Registered: 2018-10-23
Posts: 23

Re: NVidia Driver installation on Scorpion

@jotapesse sorry, I wanted to start the installation wizard with LANG=C but I don't know how to call it from the CLI, only from the 'Install Application' software. Maybe you have a hint on that.

@JimW thanks for the quick translation help.

@q4osteam the repositories look like this:

deb http://q4os.org/q4repo q4os-2-0-cn main
deb http://q4os.org/qtderepo stretch main
deb http://ftp.debian.org/debian/ stretch main contrib non-free
deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free
deb http://ftp.debian.org/debian/ stretch-updates main contrib non-free
deb http://ftp.debian.org/debian/ stretch-backports main contrib non-free
deb [arch=amd64] http://q4os.org/qextrepo stretch-chrome-cn main
deb http://q4os.org/qextrepo stretch-firefox-cn main
deb http://q4os.org/qextrepo stretch-libreoffice-cn main
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

This is the output when I try to install the nvidia-driver using apt:

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 (= 390.87-8~deb9u1) but it is not going to be installed or
                          nvidia-driver-libs-nonglvnd (= 390.87-8~deb9u1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I have the following nvidia card (not sure if it matters though)

01:00.0 VGA compatible controller: NVIDIA Corporation GF119M [GeForce GT 520M] (rev a1)

This is the version of Q4OS I have installed on the machine:

cat /etc/q4os_version
2.7.2-n1

Greetings
Marcus

Offline

#6 2019-04-16 22:56

jotapesse
Member
From: Algarve, Portugal
Registered: 2019-03-23
Posts: 67

Re: NVidia Driver installation on Scorpion

Well it should be really straightforward. Your GeForce GT 520M model is supported by the current stable Debian nvidia-driver (390.87-8~deb9u1). Be sure to fully update/upgrade your system before trying to install.

$ sudo apt update
$ sudo apt full-upgrade
$ sudo apt install nvidia-driver

Other than that, you may have issues with your Debian repository update or APT cache list or Held packages.


jotapesse - Obrigado / Thank you.

Offline

#7 2019-04-17 09:46

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: NVidia Driver installation on Scorpion

Well, we have started an investigation of this issue. We can confirm the "nvidia-driver" package dependencies are broken, as you add the "stretch-backports" repository. It looks like a Debian bug, as it's reproducible on a Debian Stretch installation with "non-free" and "stretch-backports" repositories enabled, see below. The most interesting is possibility of the following workaround, see that in terminal:

This command doesn't work, as broken deps:

sudo apt install nvidia-driver

But this one works fine:

sudo apt install nvidia-driver libgl1-nvidia-glvnd-glx

We will continue to investigate that and possibly report it at Debian bug tracking system. Please post any related findings here to help the investigation, that would be appreciated. How to reproduce the issue on Debian Stretch:
- install plain Debian Stretch
- install "vlc-plugin-video-output" package
- add "contrib" and "non-free" repositories
- add "stretch-backports" repository
- try to install "nvidia-driver" package - failed, broken deps
- install "libgl1-nvidia-glvnd-glx" package
- try to install "nvidia-driver" package again - installed correctly

@Marcus
Thanks for reporting.

Offline

#8 2019-04-17 11:37

jotapesse
Member
From: Algarve, Portugal
Registered: 2019-03-23
Posts: 67

Re: NVidia Driver installation on Scorpion

Nice find! There are already some bugs reported, it seems to be related to stretch-backports. Disabling stretch-backports, updating and trying to reinstall normally should resolve it. Please try and report.

https://unix.stackexchange.com/question … an-stretch
https://bugs.debian.org/cgi-bin/bugrepo … bug=906903

Last edited by jotapesse (2019-04-17 12:51)


jotapesse - Obrigado / Thank you.

Offline

#9 2019-04-19 12:36

Marcus
Member
Registered: 2018-10-23
Posts: 23

Re: NVidia Driver installation on Scorpion

I can confirm that sudo apt install nvidia-driver libgl1-nvidia-glvnd-glx is a workaround for the issue. Maybe you could add it to the software installer.

Offline

Board footer

Powered by FluxBB