title: Remove CUDA 10.0 and install CUDA 9.2 on Ubuntu 18.04
body: <p>I'm trying to install TensorFlow-gpu, so I need the CUDA toolkit 9.2.
  Unfortunately I installed CUDA 10 and then realized that.</p>
  
  <p>How can I easily remove CUDA 10.0 and install CUDA 9.2, without touching the drivers (since I have Ubuntu 18 I would like to maintain the latest video drivers)?</p>
  
  <ul>
  <li>I already tried to simple install CUDA 9.2 from .deb (network) file, it says</li>
  </ul>
  
  <blockquote>
    <p>dpkg: error processing archive cuda-repo-ubuntu1710_9.2.148-1_amd64.deb (--install):</p>
    
    <p>trying to overwrite '/etc/apt/sources.list.d/cuda.list', which is also in package cuda-repo-ubuntu1804 10.0.130-1</p>
  </blockquote>
  
  <ul>
  <li>I already tried to simple install CUDA 9.2 from .run file as described <a href="https://askubuntu.com/questions/1028830/how-do-i-install-cuda-on-ubuntu-18-04">here</a>, it says </li>
  </ul>
  
  <blockquote>
    <p>Not enough space on parition mounted at /tmp.
    Need 2895511552 bytes. </p>
    
    <p>Disk space check has failed. Installation cannot continue.</p>
  </blockquote>