Ubuntu – How to install NVIDA toolkit (using package manager, cant give .deb file name)

aptcudanvidiapackage-management

I'm using Ubuntu 14.04 LTS and have been using NVIDIA and CUDA for months. This morning, after ubuntu update, I get 'CUDA not found' error. Ah, I've installed NVIDA toolkit, driver and CUDA a couple of time on this machine using .run file. Reading the "NVIDIA CUDA Getting Started Guid for Linux" document again, I decided to try installing package manager so uninstalled previous .run install files as directed in the document.
The manual says I should first give this command.

sudo dpkg -i cuda-repo-<distro>_<version>_<architecture>.deb

but I don't know how to replace the distro version and architecture.
See the uname and lsb_release result.

ckim@abnc:~$ uname -a
Linux abnc 4.4.0-34-generic #53~14.04.1-Ubuntu SMP Wed Jul 27 16:56:40 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

ckim@abnc:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:    14.04
Codename:   trusty

I tried sudo dpkg -i cuda-repo-14.04_7.5_x86_64.deb but didn't work. What should the command be? (I tried amd64 instead of x86_64 in vain). From http://www.r-tutor.com/gpu-computing/cuda-installation/cuda7.5-ubuntu, I guess it's sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_x86_64.deb but it also failed. (I previously installed cuda7.5-18 using .run file)

EDIT : The problem was I didn't download the actual .deb file as directed in the preinstall step in the document. See comments below. For .run file installation, see the answe by @Terrance.

Best Answer

  • In order to install the DEB file, you'll need to actually download it. The guide has a link for the CUDA download site: http://developer.nvidia.com/cuda-downloads

  • Related Question