E: Version '8.3.1.22-1+cuda10.2' for 'libcudnn8' was not found

I have followed the guide of installing cuDNN on linux
I’ve downloads cuDNN-version 8.3.1.22 ubuntu 16.04 for cuda 10.2, file name is [cudnn-local-repo-ubuntu1604-8.3.1.22_1.0-1_amd64.deb].
when it came to 2.3.2 - install the runtime library, i try
$ sudo apt-get install libcudnn8=8.3.1.22-1+cuda10.2
but
E: Version ‘8.3.1.22-1+cuda10.2’ for ‘libcudnn8’ was not found show up, i can’t figure out what is wrong. can anybody help me.

1 Like

Hi,

Are you still facing this issue.
Please make sure you followed step 2, 3, 4 before that.

Thank you.

Hi I am facing a similiar issue with a different version mix:

sudo apt-get install libcudnn8=8.4.0.27-1+cuda11.1
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Version ‘8.4.0.27-1+cuda11.1’ for ‘libcudnn8’ was not found

and I did follow steps 2, 3 and 4.

2 Likes

Same issue.

$ sudo apt-get install libcudnn8=8.4.0.27-1+cuda11.2
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package libcudnn8

One of our testers was able to reproduce the same error if they skipped step 4 in the instructions:

Please do this command:
sudo apt-get update
Before the install, and let us know if it works.
Thanks

Same here.

$ sudo apt-get install libcudnn8=8.4.0.27-1+cuda11.4
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Version ‘8.4.0.27-1+cuda11.4’ for ‘libcudnn8’ was not found

1 Like

*I already did
$ sudo apt-get update
, it just wont work.

In the end I went to the cudnn archive and download older version
https://developer.nvidia.com/rdp/cudnn-archive

Same problem, version 8.3.2.44 is working … 8.4.0.27-1 is not

This might do the job.
After step -
sudo apt-key add /var/cudnn-local-repo-*/7fa2af80.pub
You will have the directory /var/cudnn-local-repo-ubuntu2004-8.4.0.27 (with your ubuntu version and cudnn downloaded)
Inside this directory, you will be having three .deb files.
just do for all the deb files-
sudo gdebi xxx.deb
which will install cudnn. ;)

6 Likes

@dishant.daredevil yours is the working solution for me for installing on ubuntu20 .
just did
sudo gdebi XX.deb
by going into dir /var/cudnn-local-repo…

Hello
Try running the command as
sudo apt-get install libcudnn8

i.e., without writing ‘=8.x.x.x-1+cudaX.Y’ this part.

8 Likes

For 8.4.0.27, the cuda version expected is 11.6 even for my system with cuda 11.5
Therefore run the install command with cuda11.6 at the end

1 Like

You need to update the public key for the repo and apt-update again.

I wonder if there isn’t a existing verson of cudnn for CUDA11.7

If you browse to the distro (Index of /compute/cuda/repos/ubuntu2004/x86_64 in my case), you can see what it is looking for in the list of links. For instance:
libcudnn8_8.4.1.50-1+cuda11.6_amd64.deb
libcudnn8_8.4.0.27-1+cuda11.6_amd64.deb

Hope this helps someone

1 Like

I was trying to install cudnn 8.4.1.50 on Ubutu20.04 with Cuda Toolkit 11.7, but there does not seem to be a version for 11.7 yet.

>sudo apt-get install libcudnn8=8.4.1.50-1+cuda11.7
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version '8.4.1.50-1+cuda11.7' for 'libcudnn8' was not found

though, as previous suggested, the following got the version for 11.6 for me

>sudo apt-get install libcudnn8
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  libcudnn8
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 420 MB of archives.
After this operation, 1,198 MB of additional disk space will be used.
Get:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  libcudnn8 8.4.1.50-1+cuda11.6 [420 MB]
Fetched 420 MB in 5s (89.7 MB/s)    
Selecting previously unselected package libcudnn8.
(Reading database ... 231586 files and directories currently installed.)
Preparing to unpack .../libcudnn8_8.4.1.50-1+cuda11.6_amd64.deb ...
Unpacking libcudnn8 (8.4.1.50-1+cuda11.6) ...
Setting up libcudnn8 (8.4.1.50-1+cuda11.6) ...
4 Likes

Thanks a lot, it worked perfectly for me!

1 Like

Thank you it worked for me :)

1 Like

Even I had similar issues.

Checked naming conventions of deb files in /var/cudnn-local-xx and used the same in apt-get install,

sudo apt-get install libcudnn8=8.6.0.163-1+cuda11.8

it worked !!