Archilinux / Manjaro解决keyring 签名错误 signature from “Christian Hesse <[email protected]>“ is unknown

出错信息:

 sudo pacman -S archlinux-keyring
[sudo] password for gateman: 
warning: archlinux-keyring-20230504-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) archlinux-keyring-20230504-1

Total Download Size:   1.14 MiB
Total Installed Size:  1.61 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 archlinux-keyring-20230504-1-any                                                         1164.5 KiB  1559 KiB/s 00:01 [########################################################################] 100%
(1/1) checking keys in keyring                                                                                         [########################################################################] 100%
(1/1) checking package integrity                                                                                       [########################################################################] 100%
error: archlinux-keyring: signature from "Christian Hesse " is unknown trust
:: File /var/cache/pacman/pkg/archlinux-keyring-20230504-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

解决方法:
rm -rf /etc/pacman.d/gnupg
pacman-key --init
pacman-key --populate

你可能感兴趣的:(linux,archlinux,linux)