title: Nvidia driver installation unmet dependencies
body: <p>I have a laptop with a <strong>1060</strong> GPU which has Ubuntu 20.04 set up. I've had <strong>nvidia-driver-460</strong> + <strong>cuda 11.2</strong> installed and working until today. I tried to install ROS today and after adding sources and keys following <a href="http://wiki.ros.org/noetic/Installation/Ubuntu" rel="nofollow noreferrer">this link</a>, it didn't allow me to install ROS saying some packages have <code>unmet dependencies</code>. After that I issued a <code>apt autoremove</code> and this removed the <strong>nvidia driver</strong> and <strong>cuda</strong>.</p>
  <p>I still cannot install ROS and now trying to do <code>apt install nvidia-driver-460</code> gives me <code>unmet dependencies</code> as well. Here's the output of <code>sudo ubuntu-drivers autoinstall</code> which is similar to the <code>apt install</code> command output</p>
  <pre><code>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 (&gt;= 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.
  </code></pre>
  <p>Here's what I have tried so far and didn't work</p>
  <ol>
  <li><code>apt purge *nvidia*</code>, <code>apt autoremove</code>, <code>apt autoclean</code> and reinstall drivers</li>
  <li><code>sudo apt -f install</code> and reinstall drivers</li>
  <li><code>sudo apt-add-repository -r ppa:graphics-drivers/ppa</code> and reinstalling drivers</li>
  </ol>
  <p>So far nothing changed the output I get from <code>apt install nvidia-driver-460</code>. Any help is really appreciated.</p>
  <hr />
  <p>I have a 64bit Ubuntu installation on  a core i7 machine. So why am I seeing i386 on the apt install output?</p>
  <pre><code>$ 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
  </code></pre>