I've had Nvidia drivers work successfully before.
I switched to Nouveau for a little while since a game wasn't working properly, then switched back to Nvidia only to be notified of an error.
I have uninstalled and re-installed the Nvidia driver multiple times now but keep getting the same errors.
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-390'
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 /tmp/apt-dpkg-install-JJFsm3/13-libnvidia-gl-390_390.48-0ubuntu3_amd64.deb (--unpack):
new libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/tmp/apt-dpkg-install-JJFsm3/13-libnvidia-gl-390_390.48-0ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Installation method is sudo ubuntu-drivers autoinstall
dpkg-divert --list | grep libGL.so.1
and see if it finds it. The try runningsudo dpkg-divert --rename --remove --divert "/usr/lib/x86_64-linux-gnu/libGL.so.1.distrib" /usr/lib/x86_64-linux-gnu/libGL.so.1
Then try your installation again. – Terrance Aug 20 '18 at 14:27dpkg-divert --list | grep libGL.so.1
does display one result. However running the second command didn't work outdpkg-divert: error: rename involves overwriting '/usr/lib/x86_64-linux-gnu/libGL.so.1' with different file '/usr/lib/x86_64-linux-gnu/libGL.so.1.distrib', not allowed
– K. de Boer Aug 20 '18 at 14:40libgl1
andnvidia-340
. Those are the only two applications I can find that install that file. https://packages.ubuntu.com/search?suite=bionic&arch=any&mode=filename&searchon=contents&keywords=libGL.so.1 – Terrance Aug 20 '18 at 14:48libgl1
would remove 178 other packages including the gnome-shell. – K. de Boer Aug 20 '18 at 14:59dpkg -l | grep -i nvidia
displays 0 results. I have not had a major updates yet since 18.04 is my first version. The only updates I've had are security patches, but I doubt that's the issue. – K. de Boer Aug 20 '18 at 15:14sudo dpkg-divert --remove "/usr/lib/x86_64-linux-gnu/libGL.so.1.distrib"
– Terrance Aug 20 '18 at 16:04sudo dpkg-divert --remove "/usr/lib/x86_64-linux-gnu/libGL.so.1"
(without .distrib) fixed the issue. Can't see any errors on installation, going to try it out now. – K. de Boer Aug 20 '18 at 16:35