Install cuDNN from deb

I’m having a similar problem, a few years later on Ubuntu 20.04. I downloaded the amd deb file from here, but when I run sudo dpkg -i libcudnn8-dev_8.1.0.77-1+cuda11.2_amd64.deb,
I get the error

(Reading database … 358374 files and directories currently installed.)
Preparing to unpack libcudnn8-dev_8.1.0.77-1+cuda11.2_amd64.deb …
Unpacking libcudnn8-dev (8.1.0.77-1+cuda11.2) over (8.1.0.77-1+cuda11.2) …
dpkg: dependency problems prevent configuration of libcudnn8-dev:
libcudnn8-dev depends on libcudnn8 (= 8.1.0.77-1+cuda11.2); however:
Package libcudnn8 is not installed.
dpkg: error processing package libcudnn8-dev (–install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libcudnn8-dev

How can I install libcudnn8? I have read the installation instructions and they do not include this step. I also can’t find a tar file to download at the link I posted.

This solution works (for me)

Hi, I met the same error with you, how did you solve this problem?

@liujiaxuan930 this thread is a few years old. It would be better if you can provide more details to reproduce your issue. Also, with the release of v9, we have introduced a meta-packaging for easier install. Can you check if the following works?

sudo apt-get install cudnn -y