![如何修复 gpg 不可用错误?](https://linux22.com/image/1130609/%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%20gpg%20%E4%B8%8D%E5%8F%AF%E7%94%A8%E9%94%99%E8%AF%AF%EF%BC%9F.png)
我正在尝试使用现有的 Ubtuntu 安装来启动它。
我同步了主目录,现在正在复制已安装的软件包。由于我的设置中有一些额外的 ppa,因此我将内容复制粘贴/etc/apt/
到新机器上。
但是现在我在运行时遇到了这个问题apt-get update
:
Fetched 632 B in 8s (71 B/s)
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B9316A7BC7917B12
W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FC6D7D9D009ED615
我尝试使用以下方法导入密钥:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B9316A7BC7917B12 FC6D7D9D009ED615
结果是:
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.XGVtDAfZ4i --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/trustdb.gpg --keyring /etc/apt/trusted.gpg.d/trusted.gpg --keyring /etc/apt/trusted.gpg.d/vincent-c-ponysay.gpg --keyring /etc/apt/trusted.gpg.d/webupd8team-y-ppa-manager.gpg --keyserver keyserver.ubuntu.com --recv-keys B9316A7BC7917B12 FC6D7D9D009ED615
gpg: requesting key C7917B12 from hkp server keyserver.ubuntu.com
gpg: requesting key 009ED615 from hkp server keyserver.ubuntu.com
gpg: key C7917B12: "Launchpad chrislea" not changed
gpg: key 009ED615: "Launchpad PPA for Shutter Team" not changed
gpg: Total number processed: 2
gpg: unchanged: 2
但问题仍然存在。我哪里做错了?
答案1
请记住添加 PPA 可能会很危险。
我认为这两个关键点是:
其中一个键是快门,我通过添加以下内容进行了修复:
sudo add-apt-repository ppa:shutter/ppa
另一个是 chris lea node.js 存储库,我将其替换为另一个:
curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash -
它会自动删除旧的 chris lea,然后让我继续安装。