![GPG 错误:http://repos.rcn-ee.net](https://linux22.com/image/980132/GPG%20%E9%94%99%E8%AF%AF%EF%BC%9Ahttp%3A%2F%2Frepos.rcn-ee.net.png)
当我在 Beaglebone black 上使用更新时apt-get update
,出现以下错误,
W: GPG error: http://repos.rcn-ee.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D284E608A4C46402
我尝试过按照论坛中给出的命令
$ apt-key adv --keyserver keyserver.ubuntu.com --recv-key D284E608A4C46402
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.YlaPkjE1g4 --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-key D284E608A4C46402
gpg: requesting key A4C46402 from hkp server keyserver.ubuntu.com
gpgkeys: key D284E608A4C46402 not found on keyserver
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
我也尝试过
$ gpg --keyserver keyserver.ubuntu.com --recv-key D284E608A4C46402'
gpg: requesting key A4C46402 from hkp server keyserver.ubuntu.com
gpgkeys: key D284E608A4C46402 not found on keyserver
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
$ gpg -a --export D284E608A4C46402 | sudo apt-key add -
gpg: WARNING: nothing exported
gpg: no valid OpenPGP data found
我使用代理,并配置了 /etc/apt/apt.conf 和 /etc/environment 文件,并在终端中导出了代理设置,从终端 ping 任何站点均有效。
我仍然收到与上述相同的 GPG 错误,有人可以给我建议解决方案吗?
答案1
答案2
打开终端并使用此命令:
sudo apt-get install rcn-ee-archive-keyring
解决方案提供者:RobertCNelson
答案3
请注意,您可能有一个指向过期密钥环的链接,因此您可能需要查看http://repos.rcn-ee.com/debian/pool/main/r/rcn-ee-archive-keyring/查看最新版本。例如,我需要执行:
wget http://repos.rcn-ee.com/debian/pool/main/r/rcn-ee-archive-keyring/rcn-ee-archive-keyring_2015.10.22~bpo70+20151022+1_all.deb
sudo dpkg -i rcn-ee-archive-keyring_2015.10.22~bpo70+20151022+1_all.deb
答案4
使用最新的升级(例如从 buster 到 bullseye),你应该使用http://repos.rcn-ee.com/debian/pool/main/b/bbb.io-keyring/作为要更新的密钥环。因此:
wget http://repos.rcn-ee.com/debian/pool/main/b/bbb.io-keyring/bbb.io-keyring_1.20220421.0-0~bullseye+20220421_all.deb
dpkg -i bbb.io-keyring_1.20220421.0-0~bullseye+20220421_all.deb