其他报错:error: key “428F7ECC7117F726” could not be looked up remotely
一. 修改默认keyserver
1 2 3 4 5 |
pacman-key --refresh-keys --keyserver hkp://keyserver.kjsl.com:80 pacman-key --refresh-keys --keyserver hkp://pgp.mit.edu:11371 pacman-key --refresh-keys --keyserver hkp://ipv4.pool.sks-keyservers.net:11371 |
尝试如上3条命令,看哪一个不报错,然后将不报错的keyserver地址复制下来,增加到keyserver的配置项里,方法如下:
1. 编辑 /etc/pacman.d/gnupg/gpg.conf ,增加类似如下一行配置
1 2 3 |
keyserver hkp://ipv4.pool.sks-keyservers.net:11371 |
2.初始化更新密钥
1 2 3 4 5 |
pacman-key --init pacman-key --populate archlinux pacman-key --refresh-keys |
参考链接:
https://bbs.archlinux.org/viewtopic.php?id=226770
你好,博主,我执行pacman-key –refresh-keys之后,屏幕显示 gpg: refreshing 103 keys from hkp://pgp.mit.edu:11371 ,然后一直没有回执(截止到现在已经半个小时了),这个正常吗
呃, 不正常, 我这命令执行后是有输出的.
输出如下:
…” not changed” 2 new signatures” 6 signatures cleaned” not changed
gpg: key 26D9876AC0719A0B: “Skywol (Skywol Alia)
gpg: key 465022E743D71E39: “Jonni Westphalen
gpg: key 465022E743D71E39: “Jonni Westphalen
gpg: key 2D2595A00D08ACE0: “Poscat
gpg: Total number processed: 181
gpg: unchanged: 47
gpg: new user IDs: 2
gpg: new subkeys: 1
gpg: new signatures: 94
gpg: signatures cleaned: 3570
gpg: user IDs cleaned: 55
gpg: public key DB323392796CA067 is 3037 days newer than the signature
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: public key CF66D153D884358F is 16 seconds newer than the signature
gpg: depth: 0 valid: 1 signed: 57 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1 valid: 57 signed: 80 trust: 0-, 0q, 0n, 57m, 0f, 0u
gpg: depth: 2 valid: 73 signed: 26 trust: 73-, 0q, 0n, 0m, 0f, 0u