可能重复:
如何修复 GPG 错误“NO_PUBKEY”?
每当我尝试使用从所有配置的源下载包信息时
sudo apt-get update
我得到:
W: GPG error: http://ppa.launchpad.net oneiric Release: The following signatures could not be verified because the public key is not available: NO_PUBKEY 5A9A06AEF9CB8DB0
(/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_oneiric_partner_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ oneiric/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_oneiric_partner_binary-i386_Packages)
可能是什么问题?
答案1
原因是这个公钥还没有被添加。
获取公钥。您的公钥为 5A9A06AEF9CB8DB0
现在通过在终端中输入此命令来添加它
sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 5A9A06AEF9CB8DB0
现在更新它:
sudo apt-get update
来源:http://maketecheasier.com/fix-ubuntu-update-errors/2011/12/16