So the ‘sudo apt-get install libcudnn8=8.8.0.121-1+cuda11.3’ line doesnt need to match my cuda version?
I have cuda 11.3
Use following command to check which package version is available are per your repo setup.
apt-cache policy libcudnn8
Output:
root@9e417485f231:~# apt-cache policy libcudnn8
libcudnn8:
Installed: (none)
Candidate: 8.8.1.3-1+cuda12.0
Version table:
8.8.1.3-1+cuda12.0 600
600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 Packages
8.8.1.3-1+cuda11.8 600
600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 Packages
8.8.0.121-1+cuda12.0 600
600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 Packages
8.8.0.121-1+cuda11.8 600
600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 Packages
8.7.0.84-1+cuda11.8 600
600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 Packages
8.6.0.163-1+cuda11.8 600
600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 Packages
8.5.0.96-1+cuda11.7 600
600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 Packages
Thank you so much bro!!
This should be higher up, btw, this is the current supported version for tensorflow 2.12
Thanks. I ran into the same issue when following in the instructions perfectly based on my Cuda version of 12.0. Turns out it required 12.1. However, the provided workaround saved the day and night of trying to determine what was incorrect. i.e. sudo apt-get install libcudnn8
Thanks, that worked for me.
Very helpful! Nvidia doesn’t have all combinations and installation doesn’t say where to get correct X.Y for CUDA.
simply running
sudo apt-get install libcudnn8
as suggested above, did work for me pretty well…
Using this in the terminal helped me install cudnn in ubuntu, 22.04. I had installed using the local deb file. While using the
sudo apt-get install libcudnn8=8.x.x.x-1+cudaX.Y
in the installation step of the official documentation just use
sudo apt-get install ‘/var/cudnn-local-repo-ubuntu2204-8.9.5.29/libcudnn8_8.9.5.29-1+cuda12.2_amd64.deb’
instead, where we manually specify the path. Alternatively, you can also drag the file directly into the terminal after
"sudo apt-get install " (remember the space after install !)
Output :
sakri@physuckcist:/var/cudnn-local-repo-ubuntu2204-8.9.5.29$ sudo apt-get install '/var/cudnn-local-repo-ubuntu2204-8.9.5.29/libcudnn8_8.9.5.29-1+cuda12.2_amd64.deb'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libcudnn8' instead of '/var/cudnn-local-repo-ubuntu2204-8.9.5.29/libcudnn8_8.9.5.29-1+cuda12.2_amd64.deb'
The following NEW packages will be installed:
libcudnn8
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B/441 MB of archives.
After this operation, 1,095 MB of additional disk space will be used.
Get:1 /var/cudnn-local-repo-ubuntu2204-8.9.5.29/libcudnn8_8.9.5.29-1+cuda12.2_amd64.deb libcudnn8 amd64 8.9.5.29-1+cuda12.2 [441 MB]
Selecting previously unselected package libcudnn8.
(Reading database ... 511243 files and directories currently installed.)
Preparing to unpack .../libcudnn8_8.9.5.29-1+cuda12.2_amd64.deb ...
Unpacking libcudnn8 (8.9.5.29-1+cuda12.2) ...
Setting up libcudnn8 (8.9.5.29-1+cuda12.2) ...
@ahande and @sarvatmak solutions work too.
Hope this helps.
but seems it will install the latest one, which is not what I want
this was the solution for me thanks!
This didn’t worked and gave me error:
~/…/ubuntu$ sudo gdebi /var/cudnn-local-repo-ubuntu2004-8.9.5.30/libcudnn8-dev_8.9.5.30-1+cuda12.2_amd64.deb
Reading package lists… Done
Building dependency tree
Reading state information… Done
Reading state information… Done
This package is uninstallable
Dependency is not satisfiable: libcudnn8 (= 8.9.5.30-1+cuda12.2)
That’s it! Still having the same issue today until I find this answer
This solution worked for me! Thank you a lot!
It installed the following version:
libcudnn8_8.9.7.29-1+cuda12.2_amd64.deb
my cuda version is 12.3
Same, same here:
sudo apt-get install libcudnn8
did the job…
sudo apt-get install libcudnn8=8.9.7.29-1+cuda12.3
or
sudo apt-get install libcudnn8=8.9.7.29_1.0-1+cuda12.3
did unfortunately not… Thanks a lot…
Same here, I get the following error:
sudo apt-get install libcudnn8=8.9.7.29-1+cuda12.3
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package libcudnn8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Version ‘8.9.7.29-1+cuda12.3’ for ‘libcudnn8’ was not found
Solved my issue
thanks
it’s work, thank you
thank you! this worked for me!