您尚未登录。

#1 2022-05-01 18:57:21

jjjttwkr
会员
注册时间: 2021-04-26
帖子: 6

本论坛软件源(archlinuxcn)无法正常导入PGP密钥

刚从arch的livecd装的arch,直接添加archlinuxcn主源,安装yay就跳出来这些
➜  ~ sudo pacman -S yay
[sudo] password for jjjttwkr:
Sorry, try again.
[sudo] password for jjjttwkr:
resolving dependencies...
looking for conflicting packages...

Packages (1) yay-11.1.2-1

Total Installed Size:  7.79 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                     [####################################] 100%
(1/1) checking package integrity                                   [####################################] 100%
error: yay: signature from "lilac (build machine) <lilac@build.archlinuxcn.org>" is unknown trust
:: File /var/cache/pacman/pkg/yay-11.1.2-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
➜  ~
请问如何解决

离线

#2 2022-05-01 19:47:43

q234rty
会员
注册时间: 2017-10-01
帖子: 41

Re: 本论坛软件源(archlinuxcn)无法正常导入PGP密钥

先安装 keyring:

sudo pacman -Sy archlinuxcn-keyring

如果安装 keyring 时报错,先保证系统时间正确,然后尝试

sudo rm -rf /etc/pacman.d/gnupg
sudo pacman-key --init
sudo pacman-key --populate

离线

#3 2022-05-01 21:22:06

jjjttwkr
会员
注册时间: 2021-04-26
帖子: 6

Re: 本论坛软件源(archlinuxcn)无法正常导入PGP密钥

感谢,已解决。

离线

页脚