BrokenCount > 0 on ubunut 18.4 with nvidia drivers

moro11

New Member
Credits
27
I was trying to instal Lutris. Since it i get the message, that Vulkan was missing i tried to install that to. After quick google i found out, that at least Nvidia driver 415.22 or newer was needed. Therefor i changed the driver from

X.Org-X-Server - Driver Nouveau from xserver-xorg-video-nouveau

to

NVIDIA driver metapackage from nvidia-driver-415

After i did that, i got the error message in the rop right cornern "BrokenCount > 0" I tried to fix the broken package depencies, but with no luck.

Can someone help me, fix my system? Below i added the results of
Bash:
$ sudo apt-get update
$ sudo dpkg --configure -a
$ sudo apt-get -f install
$ sudo apt-get upgrade
$ sudo apt-get install [name]   and   $ sudo apt-get remove [name]
Bash:
$ sudo apt-get update
Hit:2 http://linux.teamviewer.com/deb stable InRelease                                                                                                                                                           
Hit:3 http://security.ubuntu.com/ubuntu bionic-security InRelease                                                                                                                                                 
Hit:4 http://ppa.launchpad.net/cybermax-dexter/sdl2-backport/ubuntu bionic InRelease                                                                                                                             
Hit:5 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                                                     
Hit:6 http://de.archive.ubuntu.com/ubuntu bionic InRelease                                                                                                                                                       
Hit:7 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease                                                                                                                                                   
Hit:8 http://packages.microsoft.com/repos/vscode stable InRelease                                                                                                                                                 
Hit:9 https://repo.skype.com/deb stable InRelease                                                                                                                             
Hit:10 http://de.archive.ubuntu.com/ubuntu bionic-updates InRelease                                                                                     
Hit:11 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease                                                     
Hit:12 http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease                                       
Hit:1 https://mirror.kumi.systems/ctan/systems/win32/miktex/setup/deb bionic InRelease                       
Hit:13 http://ppa.launchpad.net/lutris-team/lutris/ubuntu bionic InRelease                                   
Hit:14 http://ppa.launchpad.net/morphis/anbox-support/ubuntu bionic InRelease
Hit:15 http://ppa.launchpad.net/nathan-renniewaldock/flux/ubuntu bionic InRelease
Reading package lists... Done                     
N: Skipping acquire of configured file 'universe/binary-i386/Packages' as repository 'http://miktex.org/download/ubuntu bionic InRelease' doesn't support architecture 'i386'
Bash:
$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of nvidia-driver-415:
 nvidia-driver-415 depends on libnvidia-gl-415 (= 415.27-0ubuntu0~gpu18.04.2); however:
  Package libnvidia-gl-415:amd64 is not installed.

dpkg: error processing package nvidia-driver-415 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnvidia-ifr1-415:amd64:
 libnvidia-ifr1-415:amd64 depends on libnvidia-gl-415; however:
  Package libnvidia-gl-415:amd64 is not installed.

dpkg: error processing package libnvidia-ifr1-415:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnvidia-ifr1-415:i386:
 libnvidia-ifr1-415:i386 depends on libnvidia-gl-415; however:
  Package libnvidia-gl-415:i386 is not installed.

dpkg: error processing package libnvidia-ifr1-415:i386 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
 nvidia-driver-415
 libnvidia-ifr1-415:amd64
 libnvidia-ifr1-415:i386
Bash:
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libnvidia-gl-415 libnvidia-gl-415:i386
The following NEW packages will be installed:
  libnvidia-gl-415 libnvidia-gl-415:i386
0 upgraded, 2 newly installed, 0 to remove and 32 not upgraded.
3 not fully installed or removed.
Need to get 0 B/48.7 MB of archives.
After this operation, 218 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 258082 files and directories currently installed.)
Preparing to unpack .../libnvidia-gl-415_415.27-0ubuntu0~gpu18.04.2_i386.deb ...
dpkg-query: no packages found matching libnvidia-gl-410
diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
  when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-415'
  found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-415_415.27-0ubuntu0~gpu18.04.2_i386.deb (--unpack):
 new libnvidia-gl-415:i386 package pre-installation script subprocess returned error exit status 2
Preparing to unpack .../libnvidia-gl-415_415.27-0ubuntu0~gpu18.04.2_amd64.deb ...
dpkg-query: no packages found matching libnvidia-gl-410
diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
  when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-415'
  found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-415_415.27-0ubuntu0~gpu18.04.2_amd64.deb (--unpack):
 new libnvidia-gl-415:amd64 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/libnvidia-gl-415_415.27-0ubuntu0~gpu18.04.2_i386.deb
 /var/cache/apt/archives/libnvidia-gl-415_415.27-0ubuntu0~gpu18.04.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Bash:
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libnvidia-ifr1-415 : Depends: libnvidia-gl-415 but it is not installed
 libnvidia-ifr1-415:i386 : Depends: libnvidia-gl-415:i386 but it is not installed
 nvidia-driver-415 : Depends: libnvidia-gl-415 (= 415.27-0ubuntu0~gpu18.04.2) but it is not installed
                     Recommends: libnvidia-gl-415:i386 (= 415.27-0ubuntu0~gpu18.04.2)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Bash:
$ sudo apt install libnvidia-gl-415:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libnvidia-ifr1-415 : Depends: libnvidia-gl-415 but it is not going to be installed
 nvidia-driver-415 : Depends: libnvidia-gl-415 (= 415.27-0ubuntu0~gpu18.04.2) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
The last error message from $ sudo apt-get install is independend from the package and appears also for $ sudo apt-get remove
 


wizardfromoz

Super Moderator
Staff member
Gold Supporter
Credits
7,537
No, we usually leave solved threads here for others to benefit from.

Perhaps you can tell us how you solved it. to help others?

Cheers and welcome to linux.org :)

Chris Turner
wizardfromoz
 

moro11

New Member
Credits
27
Yea for sure!

The specific error message line of $ sudo apt-get -f install
Bash:
diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
lead me to google specific for that line. There i found this thread
https://askubuntu.com/a/1041703/1088790
which suggested
Bash:
$ LC_MESSAGES=C dpkg-divert --list '*nvidia-340*' | sed -nre 's/^diversion of (.*) to .*/\1/p' | xargs -rd'\n' -n1 -- sudo dpkg-divert --remove
$ sudo apt --fix-broken install
This fixed the problem for me.
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
Credits
7,537
That's great - thanks for sharing.

Enjoy your Linux, and your gaming?

Wizard

BTW since last July, we have a gaming section, and since the focus here was on getting Lutris installed, I may move this Thread over there.

What say you?

Wizard
 


Members online


Top