# cuda toolkit

**URL:** <https://forums.developer.nvidia.com/t/cuda-toolkit/77161>\
**Category:** Linux\
**Created:** [June 27, 2019, 2:21pm UTC](https://forums.developer.nvidia.com/t/cuda-toolkit/77161 "2019-06-27T14:21:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anthonyliao\_91](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@anthonyliao\_91](https://forums.developer.nvidia.com/u/anthonyliao_91)\
**Post date:** [June 27, 2019, 2:21pm UTC](https://forums.developer.nvidia.com/t/cuda-toolkit/77161/1 "2019-06-27T14:21:11Z")

</div>

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 ./cuda\_9.0.176\_384.81\_linux.run -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

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [June 27, 2019, 2:25pm UTC](https://forums.developer.nvidia.com/t/cuda-toolkit/77161/2 "2019-06-27T14:25:56Z")

</div>

What’s the error?

---

<div class="post-metadata">

**Author:** ![anthonyliao\_91](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@anthonyliao\_91](https://forums.developer.nvidia.com/u/anthonyliao_91)\
**Post date:** [June 27, 2019, 2:31pm UTC](https://forums.developer.nvidia.com/t/cuda-toolkit/77161/3 "2019-06-27T14:31:09Z")

</div>

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.

thanks

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [June 27, 2019, 2:42pm UTC](https://forums.developer.nvidia.com/t/cuda-toolkit/77161/4 "2019-06-27T14:42:32Z")

</div>

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 [url][https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa[/url]](https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa%5B/url%5D)
- 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)

---

<div class="post-metadata">

**Author:** ![anthonyliao\_91](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@anthonyliao\_91](https://forums.developer.nvidia.com/u/anthonyliao_91)\
**Post date:** [June 27, 2019, 2:49pm UTC](https://forums.developer.nvidia.com/t/cuda-toolkit/77161/5 "2019-06-27T14:49:00Z")

</div>

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

thanks!

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [June 27, 2019, 3:43pm UTC](https://forums.developer.nvidia.com/t/cuda-toolkit/77161/6 "2019-06-27T15:43:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anthonyliao\_91](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@anthonyliao\_91](https://forums.developer.nvidia.com/u/anthonyliao_91)\
**Post date:** [June 27, 2019, 4:16pm UTC](https://forums.developer.nvidia.com/t/cuda-toolkit/77161/7 "2019-06-27T16:16:56Z")

</div>

Thank u

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 12, 2021, 6:58pm UTC](https://forums.developer.nvidia.com/t/cuda-toolkit/77161/8 "2021-10-12T18:58:02Z")

</div>


