cuda toolkit

hi i am using ubuntu bionic beaver (18.04), gpu = quadro p2000
with “NVIDIA-SMI 430.26 Driver Version: 430.26 CUDA Version: 10.2”

i am having difficulty installing cuda toolkit as

sudo ubuntu-drivers autoinstall
sudo add-apt-repository ppa:graphics-driver/ppa
sudo apt update
sudo apt install nvidia-cuda-dev
sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev

sudo ./ -toolkit -samples -silent -override

nano .bashrc

export PATH=$PATH:/usr/local/cuda/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64

source .bashrc

please let me know why this is wrong?

Thank you

What’s the error?

hi i reformatted the hard drive when the problem occurred. so now i wanted to know what’s wrong with the commands. once I know that, I won’t repeat that mistake.


I can’t really tell why this failed but in general, you shouldn’t use the .run installers. General instructions for Ubuntu:

  • Don’t use the .run installers, use --uninstall to uninstall them
  • purge anything nvidia/cuda
  • add the ubuntu graphics ppa
  • install the driver from that (sudo apt install nvidia-driver-430)
  • download the cuda .deb
  • add the repo to your system (first three steps from install instructions on download page)
  • don’t install cuda
  • instead, run sudo apt install cuda-toolkit-10-1 (or 9-0 if you want to install cuda 9)

thanks for your help
i have one further question
once the toolkit is installed what is the file path location of these

  1. cuda toolkit (because two folders are seen cuda and cuda 9.1 or wtv version)
  2. gpu deployment kit


The 10.1 deb e.g. installs nearly everything in /usr/local/cuda-10.1
/usr/local/cuda can then be a symbolic link to the currently used cuda if more than one cuda version is installed side-by-side.

Thank u