Issue
I have a laptop with a 1060 GPU which has Ubuntu 20.04 set up. I've had nvidia-driver-460 + cuda 11.2 installed and working until today. I tried to install ROS today and after adding sources and keys following this link, it didn't allow me to install ROS saying some packages have unmet dependencies
. After that I issued a apt autoremove
and this removed the nvidia driver and cuda.
I still cannot install ROS and now trying to do apt install nvidia-driver-460
gives me unmet dependencies
as well. Here's the output of sudo ubuntu-drivers autoinstall
which is similar to the apt install
command output
Reading package lists... Done
Building dependenc y tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
linux-modules-nvidia-460-generic-hwe-20.04 : Depends: nvidia-kernel-common-460 (>= 460.39) but 460.32.03-0ubuntu1 is to be installed
nvidia-driver-460 : Depends: libnvidia-gl-460 (= 460.32.03-0ubuntu1) but it is not going to be installed
Depends: libnvidia-ifr1-460 (= 460.32.03-0ubuntu1) but it is not going to be installed
Recommends: libnvidia-compute-460:i386 (= 460.32.03-0ubuntu1)
Recommends: libnvidia-decode-460:i386 (= 460.32.03-0ubuntu1)
Recommends: libnvidia-encode-460:i386 (= 460.32.03-0ubuntu1)
Recommends: libnvidia-ifr1-460:i386 (= 460.32.03-0ubuntu1)
Recommends: libnvidia-fbc1-460:i386 (= 460.32.03-0ubuntu1)
Recommends: libnvidia-gl-460:i386 (= 460.32.03-0ubuntu1)
E: Unable to correct problems, you have held broken packages.
Here's what I have tried so far and didn't work
apt purge *nvidia*
,apt autoremove
,apt autoclean
and reinstall driverssudo apt -f install
and reinstall driverssudo apt-add-repository -r ppa:graphics-drivers/ppa
and reinstalling drivers
So far nothing changed the output I get from apt install nvidia-driver-460
. Any help is really appreciated.
I have a 64bit Ubuntu installation on a core i7 machine. So why am I seeing i386 on the apt install output?
$ uname -a
Linux XXXX 5.8.0-44-generic #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
Solution
Unchecking the cuda repo from Software & Updates did the trick. (5th one in this image)
Answered By - Teshan Shanuka J