Alexandre Lima's suggestion works, but it needs to be adjusted in case
of not an English locale.
Try
# for FILE in $(dpkg-divert --list | grep nvidia-340 | awk '{print
$3}'); do echo $FILE; done
first and choose the correct number for substring `{print $3}`
For example for Russian locale it will be $2:
# for FILE in $(dpkg-divert --list | grep nvidia-340 | awk '{print
$2}'); do dpkg-divert --remove $FILE; done
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to nvidia-graphics-drivers-390 in Ubuntu.
https://bugs.launchpad.net/bugs/1768050
Title:
package libnvidia-gl-390 (not installed) failed to install/upgrade:
new libnvidia-gl-390:amd64 package pre-installation script subprocess
returned error exit status 2 (NOT FIXED)
Status in nvidia-graphics-drivers-390 package in Ubuntu:
Confirmed
Bug description:
There is a previous report, but I don't think this bug has been fixed,
it is still there.
When I execute "sudo ubuntu-drivers autoinstall"
the driver does not installed. then I was told:
"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"
then I trace the bug and found it may be comes from libnvidia-gl-390
package and libnvidia-ifr1-390.
and When I try to install only the libnvidia-gl-390 package, I've got:
package libnvidia-gl-390 (not installed) failed to install/upgrade:
new libnvidia-gl-390:amd64 package pre-installation script subprocess
returned error exit status 2
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-390/+bug/1768050/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp