问题描述
当我们需要在Ubuntu中安装一些程序时,需要在software&updates-other software中添加第三方源。
而添加后在终端中运行
sudo apt-get update
更新软件列表时候,会因为无法匹配公匙报错:
“W: GPG error: http://security.ubuntu.com trusty-security Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY XXXXX”
具体例子:
W: GPG error: http://security.ubuntu.com trusty-security Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
解决方法
添加公匙一解决这一问题 :
下面这行