I try to install cuDNN on my PC (Ubuntu 20.04), and I tried this:
lr@lr-OptiPlex-7090:~/Downloads$ sudo dpkg -i cudnn-local-repo-ubuntu2004-8.4.1.50_1.0-1_amd64.deb
(Reading database ... 219788 files and directories currently installed.)
Preparing to unpack cudnn-local-repo-ubuntu2004-8.4.1.50_1.0-1_amd64.deb ...
Unpacking cudnn-local-repo-ubuntu2004-8.4.1.50 (1.0-1) over (1.0-1) ...
Setting up cudnn-local-repo-ubuntu2004-8.4.1.50 (1.0-1) ...
The public CUDA GPG key does not appear to be installed.
To install the key, run this command:
sudo cp /var/cudnn-local-repo-ubuntu2004-8.4.1.50/cudnn-local-E3EC4A60-keyring.gpg /usr/share/keyrings/
And I tried this:
sudo cp /var/cudnn-local-repo-ubuntu2004-8.4.1.50/cudnn-local-E3EC4A60-keyring.gpg /usr/share/keyrings/
Nothing happens. So how can I install cuDNN on my PC?