报错信息:
W: GPG error: https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
网上有很多答案,经我几次实测,其实只需要终端运行
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC
这里的红色部分,就是你上面报错的红色部分。
运行结果如下就成功了:
gpg: key A4B469963BF863CC: public key "cudatools <cudatools@nvidia.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
如果不是,你就多运行几次,就行了。