问题描述: apt-get update时候,报错
GPG error: file:/var/cudnn-local-repo-ubuntu1804-8.4.1.50 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CCA8CFEFBA71F057
原因: 因为cudnn的GPG文件,没有放入share key目录下/usr/share/key
解决方案:
sudo cp /var/cudnn-local-repo-ubuntu1804-8.4.1.50/*.gpg /usr/share/keyrings/