Archlinux更新时导入Key出错解决方案

pacman -Syu 系统更新时,在下载完新的包之后出现如下错误

(20/20) checking keys in keyring                   [----------------------] 100%
downloading required keys...
error: key "A6234074498E9CEE" could not be looked up remotely
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

显示为无法导入Key

wiki中的说明如下 链接

Outdated archlinux-keyring package.
Incorrect date.
Your ISP blocked the port used to import PGP keys.
Your pacman cache contains copy of unsigned packages from previous attempts.

其实首先尝试手动更新key

1
pacman-key --populate archlinux

异常基本可以解决

否则就是服务器无法访问或者keyring包版本太老需要更新