GPG error: The following signatures couldn't be verified because the public key is not available解决方法

Linux如果使用国内的源,当使用apt安装或更新某些应用时,会返回错误提示:

GPG error: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B6733A7A07516CAD

 

解决方法:

//用错误提示中的公钥
sudo gpg --keyserver keyserver.ubuntu.com --recv B6733A7A07516CAD
sudo gpg --export --armor B6733A7A07516CAD | sudo apt-key add -
sudo apt-get update

 

posted @ 2021-01-04 12:32  Clotho_Lee  阅读(4179)  评论(0编辑  收藏  举报