当我在 ubuntu-14.04 上使用“ ”更新时apt-get update
,出现以下错误,
W: GPG error: http://packages.osrfoundation.org trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 67170598AF249743
我尝试过按照论坛中给出的命令
apt-key adv --keyserver keyserver.ubuntu.com --recv-key 67170598AF249743
输出如下
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.XI2D9gTkMc --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --keyserver-options http-proxy=http://202.141.80.80:3128 --recv-key 67170598AF249743
gpg: requesting key AF249743 from hkp server keyserver.ubuntu.com
gpgkeys: key 67170598AF249743 not found on keyserver
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
我也尝试过
gpg --keyserver keyserver.ubuntu.com --recv-key 67170598AF249743
输出是
gpg: requesting key AF249743 from hkp server keyserver.ubuntu.com
gpgkeys: key 67170598AF249743 not found on keyserver
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
使用命令gpg -a --export 67170598AF249743 | sudo apt-key add -
,我得到了以下结果
gpg: WARNING: nothing exported
gpg: no valid OpenPGP data found.
我仍然收到与上述相同的 GPG 错误,有人可以给我建议解决方案吗?
答案1
似乎 keyserver.ubuntu.com 缺少 packages.osrfoundation.org 的 gpg 密钥
使用 wget 从下面下载 gazebo.key。
wget http://packages.osrfoundation.org/gazebo.key
并导入它
sudo apt-key add gazebo.key
然后尝试
sudo apt-get update && sudo apt-get upgrade