CUDA Toolkit 11.6 installation

Hi all,

I have run into a minor issue while installing multiple versions of CUDA toolkit on Ubuntu 20.04 (x86_64).

https://developer.nvidia.com/cuda-11-6-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04&target_type=deb_local

I have removed the repository entries (not just unchecked them in software & updates), and now the apt source lists are empty!

-rw-r–r-- 1 root root 0 May 23 11:52 cuda-ubuntu2004-11-2-local.list
-rw-r–r-- 1 root root 0 May 23 11:52 cuda-ubuntu2004-11-2-local.list.save
-rw-r–r-- 1 root root 0 May 23 11:59 cuda-ubuntu2004-11-5-local.list
-rw-r–r-- 1 root root 0 May 23 11:59 cuda-ubuntu2004-11-5-local.list.save

Can someone post the contents of the 11.6 cuda apt file here.

Without that apt source list I get an error like this:

sudo apt-get install cuda
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package cuda

Thanks a lot…

Damn! Its as simple a line as this:
deb file:///var/cuda-repo-ubuntu2004-11-6-local /
!

But I dont know why even if I run the command again and again

sudo dpkg -i cuda-repo-ubuntu2004-11-6-local_11.6.0-510.39.01-1_amd64.deb

Its not creating the file in the file in /etc/apt/sources.list.d

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.