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

时间:2021-01-07 11:42:02   收藏:0   阅读:0

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

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!