我总是收到以下 gpg 错误消息。我也尝试从 webupd8 添加 PPA,但结果相同。我该如何解决此错误?
user@work:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
Executing: /tmp/apt-key-gpghome.VlEePwgr6J/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
gpg: keyserver receive failed: No keyserver available
user@work:~$ sudo apt-key adv -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
[sudo] password for deda:
Executing: /tmp/apt-key-gpghome.Z1cpSvPrvA/gpg.1.sh -vv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
gpg: no running Dirmngr - starting '/usr/bin/dirmngr'
gpg: waiting for the dirmngr to come up ... (5s)
gpg: connection to the dirmngr established
gpg: keyserver receive failed: No keyserver available
答案1
我在尝试更新到 Mono 6 时收到此错误。我通过在命令中从 切换keyserver.ubuntu.com
到解决了该问题。keys.gnupg.net
apt-key