Page 1 of 1

nvidia installer not working

Posted: Sun May 06, 2018 2:19 pm
by mxuserjohn
On a fresh installation of MX 17.1 x64 (tried twice now) the nvidia installer is not working. It says that the following packages have unmet dependencies that will not be installed.

nvidia-driver : Depends: nvidia-driver-libs (=384.111-3~~mx17+1) but it is not going to be installed or nvidia-driver-libs-nonglvnd (=384.111-3~~mx17+1) but it is not going to be installed.
E: unable to correct problems, you have held broken packages.

This has always worked for me in the past on this laptop (Dell Inspiron 7537 with NVidia Optimus - intel + GT 750M) but is no longer working. Do you need to update something in the installer script?

Re: nvidia installer not working

Posted: Sun May 06, 2018 2:21 pm
by dolphin_oracle
mxuserjohn wrote:On a fresh installation of MX 17.1 x64 (tried twice now) the nvidia installer is not working. It says that the following packages have unmet dependencies that will not be installed.

nvidia-driver : Depends: nvidia-driver-libs (=384.111-3~~mx17+1) but it is not going to be installed or nvidia-driver-libs-nonglvnd (=384.111-3~~mx17+1) but it is not going to be installed.
E: unable to correct problems, you have held broken packages.

This has always worked for me in the past on this laptop (Dell Inspiron 7537 with NVidia Optimus - intel + GT 750M) but is no longer working. Do you need to update something in the installer script?
already have. just update the ddm-mx package before trying to install the drivers.

Re: nvidia installer not working

Posted: Sun May 06, 2018 3:06 pm
by mxuserjohn
I tried that. Still not working. I applied all updates, did the autoremove for any left over stuff, checked the ddm-mx in Synaptic (says latest version 18.03.01) and it's still failing. new errors this time and different versions referred to (390.48-2~mx17+1) but still says the same thing about recommended dependencies not going to be installed and unable to correct because of held broken packages.

Re: nvidia installer not working

Posted: Sun May 06, 2018 3:08 pm
by dolphin_oracle
have you tried just the regular repo version and not debian-backports?

note: they have apparently have not updated nvidia-settings in debian-backports, even though their driver recommends call for a later version.

it other words...debian-backports broke the nvidia driver settings, again.

Re: nvidia installer not working

Posted: Sun May 06, 2018 3:26 pm
by mxuserjohn
thanks for the help, but no luck. I just ran the installer again, and this time did not pick the backports version, and still same problem.

Re: nvidia installer not working

Posted: Sun May 06, 2018 4:16 pm
by Stevo
mxuserjohn wrote:thanks for the help, but no luck. I just ran the installer again, and this time did not pick the backports version, and still same problem.
What error do you get now? The same as in the beginning? There should not be any mention of 390.48 without the stretch-backports or our test repo enabled?

For what it's worth, I can have the drivers and the 384.111 nvidia-settings installed at the same time on my Optimus system, but we will have the new nvidia-settings in the test repo shortly.

Re: nvidia installer not working

Posted: Sun May 06, 2018 5:20 pm
by mxuserjohn
I just tried again, chose no backports, and had the Test repo removed from Synaptics repositories. Still same problem. Unmet dependencies and broken held packages. Weird - this always used to work on this laptop - was one of my favorite things about this distro (aside from being super fast and efficient)

Re: nvidia installer not working

Posted: Sun May 06, 2018 5:27 pm
by Stevo
Some diagnostics would be to show us the result of

Code: Select all

inxi -r
and the results of trying to install one of those problem packages on the command line, such as

Code: Select all

sudo apt install nvidia-driver-libs
If that fails due to another package causing issues, repeat the attempted install with that new problem package, and so on, until you get down to the root problem package, where there will be a more informative error message.

Re: nvidia installer not working

Posted: Sun May 06, 2018 5:29 pm
by dolphin_oracle
I just tried again, chose no backports, and had the Test repo removed from Synaptics repositories. Still same problem. Unmet dependencies and broken held packages. Weird - this always used to work on this laptop - was one of my favorite things about this distro (aside from being super fast and efficient)
have you dist-upgraded with the test repo enabled?

even if you haven't, we may have some conflicting libs do to the initial failure.

try

Code: Select all

sudo ddm-mx -p nvidia
then

Code: Select all

sudo apt autoremove
to get rid of any debian-backports libraries that may have come in. then try again with the usual installer, choosing the main mx repo.


**edit*** stevo give some good advice, maybe try that first.

Re: nvidia installer not working

Posted: Sun May 06, 2018 5:38 pm
by mxuserjohn
Thanks guys, I appreciate the help. So I did as you suggested and purged the existing drivers / files that may have been installed, and did the autoremove and tried again. No luck. Same errors.

The output from inxi-r is:
Repos: Active apt repos in: /etc/apt/sources.list.d/antix.list
1: deb http://repo.antixlinux.com/stretch/ stretch main
Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
1: deb http://ftp.ca.debian.org/debian/ stretch-updates main contrib non-free
Active apt repos in: /etc/apt/sources.list.d/debian.list
1: deb http://ftp.ca.debian.org/debian/ stretch main contrib non-free
2: deb http://security.debian.org/ stretch/updates main contrib non-free
3: deb http://www.deb-multimedia.org/ stretch non-free main
4: deb http://deb.debian.org/debian/ stretch-backports main
Active apt repos in: /etc/apt/sources.list.d/mx.list
1: deb http://mxrepo.com/mx/repo/ stretch main non-free
No active apt repos in: /etc/apt/sources.list.d/various.list

and the result of trying to do the install nvidia-driver-libs is:
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:
libglx0 : Depends: libglx-mesa0 but it is not installable or
libglx-vendor
nvidia-driver-libs : Depends: libgl1-nvidia-glvnd-glx (= 384.111-3~~mx17+1) but it is not going to be installed
Depends: nvidia-egl-icd (= 384.111-3~~mx17+1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Re: nvidia installer not working

Posted: Sun May 06, 2018 7:30 pm
by Stevo
Yes, keep going down the chain of command line installs of those newly revealed problem packages until you get to the one that's at the root of the problem. But first try the purge command that dolphin recommends.

You still have stretch-backports enabled, but not the non-free part where the Nvidia driver lives, so that should not be the issue. I don't think deb-multimedia can affect the driver install, either.

Re: nvidia installer not working

Posted: Sun May 06, 2018 7:42 pm
by dolphin_oracle
@stevo - Is there anything in test repo that might be affecting things, say if a dist-upgrade had happened while test was enabled. mesa or something maybe?

Re: nvidia installer not working

Posted: Sun May 06, 2018 8:14 pm
by Stevo
dolphin_oracle wrote:@stevo - Is there anything in test repo that might be affecting things, say if a dist-upgrade had happened while test was enabled. mesa or something maybe?
No, the mesa backport is in a separate experimental repo that has to be added by hand. Stretch-backports had a bad libglvnd (??} a month or two ago that would destroy your GUI if you tried to install it, but I don't know if it's still there.

Re: nvidia installer not working

Posted: Sun May 06, 2018 8:28 pm
by dolphin_oracle
chasing the rabbit....more info:

Code: Select all


ddm-mx output

The following packages have unmet dependencies:
 nvidia-driver : Depends: nvidia-driver-libs (= 390.48-2~mx17+1) but it is not going to be installed or
                          nvidia-driver-libs-nonglvnd (= 390.48-2~mx17+1) but it is not going to be installed
                 Depends: nvidia-driver-bin (= 390.48-2~mx17+1) but it is not going to be installed
                 Depends: xserver-xorg-video-nvidia (= 390.48-2~mx17+1) but it is not going to be installed
                 Depends: nvidia-vdpau-driver (= 390.48-2~mx17+1) but it is not going to be installed
                 Depends: nvidia-alternative (= 390.48-2~mx17+1)
                 Recommends: nvidia-persistenced
 nvidia-kernel-dkms : Depends: nvidia-kernel-support--v1
 nvidia-settings : Depends: nvidia-alternative
                   Recommends: libgl1-nvidia-glvnd-glx but it is not going to be installed or
                               libgl1-nvidia-glx but it is not going to be installed
                   Recommends: nvidia-vdpau-driver but it is not going to be installed
                   Recommends: libnvidia-ml1 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


dolphin@mx:~
$ sudo apt-get install -s libgl1-nvidia-glvnd-glx
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:
 libgl1-nvidia-glvnd-glx : Depends: libgl1 (>= 0.2.999) or
                                    libgl1-glvnd-nvidia-glx but it is not going to be installed
                           Depends: libglx-nvidia0 (= 390.48-2~mx17+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
dolphin@mx:~
$ sudo apt-get install -s libgl1-glvnd-nvida-glx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libgl1-glvnd-nvida-glx
dolphin@mx:~
$ sudo apt-get install libgl1-nvidia-glvnd-glx 
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:
 libgl1-nvidia-glvnd-glx : Depends: libgl1 (>= 0.2.999) or
                                    libgl1-glvnd-nvidia-glx but it is not going to be installed
                           Depends: libglx-nvidia0 (= 390.48-2~mx17+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
dolphin@mx:~
$ sudo apt-get install -s libgl1-glvnd-nvidia-glx
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:
 libgl1-glvnd-nvidia-glx : Depends: nvidia-alternative (= 390.48-2~mx17+1)
                           Depends: libglx0 but it is not installable or
                                    libglx0-glvnd-nvidia (>= 384.111) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
dolphin@mx:~
$ sudo apt-get install -s libglx
libglx0-glvnd-nvidia  libglx-nvidia0        
dolphin@mx:~
$ sudo apt-get install -s libglx0-glvnd-nvidia 
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:
 libglx0-glvnd-nvidia : Depends: nvidia-alternative (= 390.48-2~mx17+1)
E: Unable to correct problems, you have held broken packages.
dolphin@mx:~
$ sudo apt-get install -s nvidia-alternative 
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-alternative : Depends: glx-alternative-nvidia (>= 0.8.3~)
E: Unable to correct problems, you have held broken packages.
dolphin@mx:~
$ apt-cache policy nvidia-alternative 
nvidia-alternative:
  Installed: (none)
  Candidate: 390.48-2~mx17+1
  Version table:
     390.48-2~mx17+1 500
        500 http://mxrepo.com/mx/testrepo stretch/test amd64 Packages
     384.111-3~~mx17+1 500
        500 http://antix.daveserver.info/stretch stretch/main amd64 Packages
        500 http://mxrepo.com/mx/repo stretch/non-free amd64 Packages
     375.82-1~deb9u1 500
        500 http://ftp.us.debian.org/debian stretch/non-free amd64 Packages
dolphin@mx:~
$ apt-cache policy glx-alternative-nvidia 
glx-alternative-nvidia:
  Installed: (none)
  Candidate: 0.7.4
  Version table:
     0.7.4 500
        500 http://ftp.us.debian.org/debian stretch/contrib amd64 Packages
dolphin@mx:~
$ 
this is with the test repo enabled. Nothing has been installed from it. otherwise stock mx17.1 installation. note that the nvidia install with the basic repos went OK. looks like there are some potential conflicts with glx stuff...

Re: nvidia installer not working

Posted: Sun May 06, 2018 8:42 pm
by dolphin_oracle
or mabye not.


if you do a dist-upgrade with test repo enabled, you get this:

Code: Select all

dolphin@mx:~
$ apt-cache policy libxnvctrl0
libxnvctrl0:
  Installed: 384.111-1~deb9u1
  Candidate: 390.48-2~mx17+1
  Version table:
     390.48-2~mx17+1 500
        500 http://mxrepo.com/mx/testrepo stretch/test amd64 Packages
 *** 384.111-1~deb9u1 500
        500 http://ftp.us.debian.org/debian stretch/main amd64 Packages
        100 /var/lib/dpkg/status
dolphin@mx:~
$ sudo apt-get remove libxnvctrl0 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libaudclient2 libxmmsclient6
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  conky conky-std
Suggested packages:
  apcupsd audacious moc mpd xmms2
The following packages will be REMOVED:
  conky-all libxnvctrl0
The following NEW packages will be installed:
  conky conky-std
0 upgraded, 2 newly installed, 2 to remove and 147 not upgraded.
Need to get 372 kB of archives.
After this operation, 479 kB disk space will be freed.
Do you want to continue? [Y/n] 
libxnvctrl0 is apparently preinstalled on mx iso because of conky-all and will be updated if a dist-upgrade is performed with the test repo enabled. I suspect that updating that package is enough to make everything go haywire with the nvidia-driver install.

Re: nvidia installer not working

Posted: Mon May 07, 2018 1:53 pm
by Stevo
Hmmm---I did a manual upgrade of the debs on 64-bit after I built them by searching for the installed packages in Synaptic< keyword "nvidia", and then putting all the deb packages that were going to be upgrades into a folder and installing them with apt. They didn't need a newer nvidia-settings, and conky-all and libxnvctrl0 remained installed, so there must be some way out of this puzzle. Maybe the repo didn't pick up one package, like it's failed to do in the past with the nvidia-driver debs.

Let me try some stuff in a clean install.

Re: nvidia installer not working

Posted: Mon May 07, 2018 2:02 pm
by dolphin_oracle
for reference, the command used by ddm-mx is

Code: Select all

apt-get install --reinstall --install-recommends -y $SWITCH $BP $DRIVER $TESTSWITCH 2>&1 | tee -a $LOG
where $SWITCH and $BP let the user specify the debian-backports repo if they wish, $TESTSWITCH is an internal marker to use the -s parameter on apt-get when in test mode, and $DRIVER varies, but for nvidia-driver its this:

Code: Select all

nvidia-driver nvidia-settings nvidia-kernel-dkms nvidia-xconfig
note its a pretty simple apt-get command, to stay in line with the debian wiki.

Re: nvidia installer not working

Posted: Mon May 07, 2018 2:13 pm
by Stevo
I just installed nvidia-driver and primus with --install-recommends per the wiki in virtualbox. After adding the test repo, the followings are held back:

Code: Select all

The following packages have been kept back:
  libegl-nvidia0 libegl1-glvnd-nvidia libgl1-glvnd-nvidia-glx libgl1-nvidia-glvnd-glx
  libgles-nvidia1 libgles-nvidia2 libgles1-glvnd-nvidia libgles2-glvnd-nvidia libglx-nvidia0
  libglx0-glvnd-nvidia libnvidia-cfg1 libnvidia-egl-wayland1 libnvidia-eglcore libnvidia-glcore
  libnvidia-ml1 nvidia-driver nvidia-driver-bin nvidia-driver-libs nvidia-egl-icd
  nvidia-egl-wayland-icd nvidia-kernel-dkms nvidia-kernel-support nvidia-vdpau-driver
  nvidia-vulkan-icd xserver-xorg-video-nvidia
so it's time to put on the deerstalker cap and pull out the magnifying glass...

Re: nvidia installer not working

Posted: Mon May 07, 2018 2:45 pm
by Stevo
This seems to be at the root of the issue:

Code: Select all

The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nvidia-alternative : Depends: glx-alternative-nvidia (>= 0.8.3~) but 0.7.4 is to be installed
E: Broken packages

root@mx:/home/steve/Desktop# apt upgrade glx-alternative-nvidia
Reading package lists... Done
Building dependency tree       
Reading state information... Done
glx-alternative-nvidia is already the newest version (0.7.4).
So we just have to fix that...they are on the way to the test repo.

I believe that nvidia-alternative and glx-alternative-nividia can also be updated from this zip manually, and then the rest of the upgrades will go through: https://drive.google.com/open?id=1H-JWp ... QsPBCfW_Em

Re: nvidia installer not working

Posted: Mon May 07, 2018 4:47 pm
by Stevo
It's in the test repo now, and it fixed the upgrade problem in my test virtual machine. Can you confirm?

Re: nvidia installer not working

Posted: Mon May 07, 2018 5:06 pm
by dolphin_oracle
Stevo wrote:It's in the test repo now, and it fixed the upgrade problem in my test virtual machine. Can you confirm?
simulation run seems to work OK here. I think you've probably got it. :number1:

Re: nvidia installer not working

Posted: Mon May 07, 2018 6:48 pm
by Stevo
dolphin_oracle wrote:
Stevo wrote:It's in the test repo now, and it fixed the upgrade problem in my test virtual machine. Can you confirm?
simulation run seems to work OK here. I think you've probably got it. :number1:
The problem package showed up after I had dug down a few layers with the command line installs, as I thought it might. It's a pretty good method.

Re: nvidia installer not working

Posted: Tue May 08, 2018 8:10 pm
by mxuserjohn
Hi guys. Thanks for the investigation. I just reloaded MX fresh on this laptop again, just applied any updates and then ran the NVidia installer. It worked this time :-)

However, a couple of things I noticed - not sure if there is something wrong with the driver, or a version issue or what, but as per the attached screenshot, you can see when I try and run primusrun, it does work but it generates an error first "/usr/bin/primusrun: line 41: warning: command substitution: ignored null byte in input"

Also - the performance has dropped dramatically. In the top Terminal window, I was running Compton as the compositor, and in lower Terminal window, I was using XFWM compositor. Both times glxgears seems to max out at 40 FPS. In the past, this was steady at 60 FPS. Any idea why I lost 20+ FPS?

Thanks
John

Re: nvidia installer not working

Posted: Tue May 08, 2018 9:19 pm
by Stevo
Since it appears for both your Intel and Nvidia driver, I would say that that the Nvidia driver has nothing to do with your results. Maybe it's the compositor...what happens with no compositor running?

Also, to get better results with the Intel driver, unsynced from the screen refresh:

Code: Select all

 vblank_mode=0 glxgears
But glxgears is a very poor benchmark; instead install virtualgl from the test repo and run "glxspheres" on 32-bit and "glxspheres64" on 64-bit.