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

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. ;)

2 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.

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