After doing a dist-upgrade from 20.04 to 20.10, I now have broke NVidia drivers that can't be reinstalled. No matter what I do, it ends with:
The following packages have unmet dependencies:
nvidia-driver-460 : Depends: libnvidia-compute-460 (= 460.67-0ubuntu0~0.20.10.1) but 460.73.01-0ubuntu1 is to be installed
Depends: libnvidia-decode-460 (= 460.67-0ubuntu0~0.20.10.1) but it is not going to be installed
Depends: libnvidia-encode-460 (= 460.67-0ubuntu0~0.20.10.1) but it is not going to be installed
Recommends: nvidia-settings but it is not going to be installed
Recommends: nvidia-prime (>= 0.8) but it is not going to be installed
Recommends: libnvidia-compute-460:i386 (= 460.67-0ubuntu0~0.20.10.1)
Recommends: libnvidia-decode-460:i386 (= 460.67-0ubuntu0~0.20.10.1)
Recommends: libnvidia-encode-460:i386 (= 460.67-0ubuntu0~0.20.10.1)
Recommends: libnvidia-ifr1-460:i386 (= 460.67-0ubuntu0~0.20.10.1)
Recommends: libnvidia-fbc1-460:i386 (= 460.67-0ubuntu0~0.20.10.1)
Recommends: libnvidia-gl-460:i386 (= 460.67-0ubuntu0~0.20.10.1)
E: Unable to correct problems, you have held broken packages.
The important part seems to be Depends: libnvidia-compute-460 (= 460.67-0ubuntu0~0.20.10.1) but 460.73.01-0ubuntu1 is to be installed
I tried all kinds of things found in order answers, such as re-adding the ppa and
Tried putting all dependencies in one line:
sudo apt install libnvidia-common-440 libnvidia-compute-460 libnvidia-decode-460 libnvidia-encode-460
Tried:
sudo apt-add-repository ppa:graphics-drivers/ppa
ubuntu-drivers devices
sudo apt install nvidia-driver-460
Tried rebuilding souces:
sudo rm /etc/apt/sources.list
sudo software-properties-gtk
then selecting all sources again and sudo apt-get update && sudo apt-get dist-upgrade -y
, but Same issue.
Also tried:
sudo apt -f install
No difference.
Then I tried:
sudo apt remove nvidia*
sudo apt autoremove
sudo ubuntu-drivers autoinstall
But same result.
How can I fix this?
sudo apt install nvidia-driver-460.56
and some other variations but no luck. Thanks a lot! – Edy Bourne Apr 22 '21 at 18:02-y
when using dist-upgrade seems negligent. The chance to abort after reading the output is an enormously important protection. – user535733 Apr 22 '21 at 18:03