页次: 1
刚从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.
➜ ~
请问如何解决
离线
先安装 keyring:
sudo pacman -Sy archlinuxcn-keyring
如果安装 keyring 时报错,先保证系统时间正确,然后尝试
sudo rm -rf /etc/pacman.d/gnupg
sudo pacman-key --init
sudo pacman-key --populate
离线
感谢,已解决。
离线
页次: 1