I had the same problem and I solved with this solution:
As rootm run:
# for FILE in $(dpkg-divert --list | grep nvidia-340 | awk '{print
$3}'); do dpkg-divert --remove $FILE; done
Then:
# apt --fix-broken install
Font: https://askubuntu.com/questions/1035409/installing-nvidia-drivers-on-18-04
Best Regards!
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to 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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-390/+bug/1768050/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs