I'm having problems logging in to 19.10, and following some suggestions (e.g. ubuntu-18-04-stuck-in-login-loop-with-missing-xauthority-file), ubuntu-drivers devices
shows nvidia-driver-390 as recommended driver
When I sudo apt install_nvidia-driver-390
it fails
And trying sudo apt --fix-broken_install
fails
How can I get this sorted? Thanks.
答案1
Looks like this is a bug with Ubuntu. 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)
The workaround I did was #5, Yuri's improvement of Alexandre's suggestion
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