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