E: Unable to locate package cudnn9-cuda-12

I am trying to install cudnn for cuda 12.4 . But I am getting the following error
"sudo apt-get -y install cudnn9-cuda-12

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package cudnn9-cuda-12 ". Please help me solve this error.

1 Like

I’ve faced the same error when installing CUDA 12.3+cuDNN 8.9 on Ubuntu/WSL (in Windows 11) with following this guide.

For me the issue was that the cudnn9-cuda-12 package name mentioned in the tutorial by default didn’t match the one I had locally.

I’ve found the correct one by running:

apt-cache search cudnn

The correct one was libcudnn8 in my case (but I’ve also installed the *-dev and *-samples ones as well just in case).