0

I'm getting the error:

GPG error: file:/var/cudnn-local-repo-ubuntu2004-8.8.0.121 InRelease: 
The following signatures couldn't be verified because the public key is not available: 
NO_PUBKEY 6A4AA528B70907B4

and I have tried this solution, but I'm getting: gpg: keyserver receive failed: Connection timed out.

Can you please tell me how can I remove that Pub-Key please? thanks in advance.

Bilal
  • 305
  • 1
  • 4
  • 15

1 Answers1

0

The solution is:

  1. $ ls /etc/apt/sources.list.d/ to see the file that is generating the problem, it is /etc/apt/sources.list.d/cudnn-local-ubuntu2004-8.8.0.121.list in my case.
  2. $ sudo rm /etc/apt/sources.list.d/cudnn-local-ubuntu2004-8.8.0.121.list*
  3. $ sudo apt update
Bilal
  • 305
  • 1
  • 4
  • 15