archlinux本地签名失败解决方法

archlinux添加archlinuxcn清华源后安装archlinuxcn-keyring的时候死活安装不上,一直提示:

gpg: key 18E21059A54E5998 was created 19760 seconds in the future (time warp or clock problem)
ERROR: 90403E12F4CE5E0E950E4AD2C96492E347202001 could not be locally signed.

之类的错误,安装archlinuxcn源里的包也会提示:

error: yay: signature from "lilac (build machine) <lilac@build.archlinuxcn.org>" is unknown trust
:: File /var/cache/pacman/pkg/yay-11.3.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

这样的错误,网上很多答案都解决不了问题。

archlinux本地签名失败解决方法

解决方法

最后终于在一篇文章里看到了有用的方法(至少对于我来说是有用的)

sudo rm -R /etc/pacman.d/gnupg
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman-key --populate archlinuxcn

执行完以上命令就可以正常安装archlinuxcn-keyring跟archlinuxcn源里的包了

archlinux本地签名失败解决方法

原创文章,作者:小哆啦,如若转载,请注明出处:https://www.notevm.com/a/6292.html

(0)
上一篇 2022年9月1日 15:26
下一篇 2022年9月3日 11:38

相关推荐