![如何解决 apt GPG 错误 NO_PUBKEY?](https://linux22.com/image/866023/%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%20apt%20GPG%20%E9%94%99%E8%AF%AF%20NO_PUBKEY%EF%BC%9F.png)
我不记得为什么我有 download.opensuse.org,但我只要删除导致此错误的内容就可以了:
W: GPG error: http://download.opensuse.org Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6FE3AE1CC7D68E37
这似乎不是一个重复的问题,因为其他类似问题中提出的解决方案在这里不起作用:
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6FE3AE1CC7D68E37
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.OCmHCQ908W --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 6FE3AE1CC7D68E37
gpg: requesting key C7D68E37 from hkp server keyserver.ubuntu.com
gpgkeys: key 6FE3AE1CC7D68E37 not found on keyserver
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
我现在是 12.04
答案1
我忽略了 sources.list 中的这个条目:
deb http://download.opensuse.org/repositories/home:ksmanis/xUbuntu_12.04/ /
删除那行就是我正在寻找的答案。
然而,找到该条目后,我就能找到它存在的原因以及更好的解决方法:
如何在 Ubuntu 13.04、12.04、Linux Mint 15、13、Elementary OS 0.2、Pear OS 8、Debian 7、6 上安装 GRUB2 Editor 0.6.4 | LinuxG.net http://linuxg.net/how-to-install-grub2-editor-0-6-4-on-ubuntu-13-04-12-04-linux-mint-15-13-elementary-os-0-2-pear-os-8-debian-7-6/
$ sudo sed -i '$ a\deb http://download.opensuse.org/repositories/home:ksmanis/xUbuntu_12.04/ /' /etc/apt/sources.list
$ wget -q http://download.opensuse.org/repositories/home:ksmanis/xUbuntu_12.04/Release.key -O- | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install kcm-grub2