title: Unable to install CUDA on Ubuntu 16.04
body: <p>I have been installing various versions of CUDA this way for years:</p>
  
  <pre><code>sudo apt-get update
  sudo apt-get purge cuda --yes
  
  # eg for 9.0:
  wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
  
  sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
  
  sudo dpkg -i cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
  
  sudo apt-get install cuda=9.0.176-1 --yes
  </code></pre>
  
  <p>This has always worked well, I had that in a script that would automatically setup my CI machines. But today I noticed that things aren't working anymore:</p>
  
  <pre><code>sudo apt-get install cuda=9.0.176-1 --yes
  E: Unable to locate package cuda
  </code></pre>
  
  <p><strong>Apparently, the GPG key expired:</strong> <a href="https://github.com/NVIDIA/nvidia-docker/issues/1081#issuecomment-533717708" rel="nofollow noreferrer">https://github.com/NVIDIA/nvidia-docker/issues/1081#issuecomment-533717708</a> </p>
  
  <p>To solve this, you now need to do:</p>
  
  <pre><code>curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey |  sudo apt-key add -
  </code></pre>
  
  <p><strong>But still, same error!</strong> I tried with CUDA version 10.0 as well but it fails in the same way.</p>