menu

ArchLinx gpg: “Server indicated a failure”

sudo gpg --recv-keys 3353C9CEF108B584
gpg: keyserver receive failed: Server indicated a failure
gpv --version
gpg (GnuPG) 2.2.23
libgcrypt 1.8.7
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /home/iexin/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

切换各个服务器都是一样的没有用,用 --debug-level=guru 得到稍微详细的出错信息:

ERR 219 Server indicated a failure <Unspecified source>

找到这个 ISSUE,原来是 dns 设置的问题,网关设成旁路由,dns 还是主路由(没翻墙)。改回旁路由便解决问题。主要是 dirmngr 导致的。见

最后我的 dirmngr:

debug ipc,network,dns
log-file /tmp/dirmngr.log
standard-resolver  # 不确定是否这行起作用

记得 sudo killall dirmngr

keyboard_arrow_up