cd /home/.gnupg/
mv gpg.conf gpgbake.conf
pacman -S archlinux-keyring && pacman -Syu
如果还是不行,就修改/etc/pacman.d/gnupg/gpg.cpnf修改gpg密钥的服务器,以下有四个,自己看看那个可以吧。
#keyserver hkp://pool.sks-keyservers.net
##keyserver http://gpt.mit.edu
##keyserver hkp://subkeys.pgp.net
keyserver hkp://keyserver.kjsl.com
# Archive the GNUPG directories mv $HOME/.gnupg $HOME/.gnupg.bak sudo mv /root/.gnupg /root/.gnupg.bak # This one fixed the GNUPG Error dirmngr </dev/null # Refresh Keys pacman-key --init pacman-key --populate archlinux pacman-key --refresh-keys