manjaro-更新报错-signature-unknown-trust,关联
- 参考
- Cannot update Manjaro Linux: Unknown trust with Archlinux-keyring
- Pacman’s always failed when upgrading (unknown trust)
- Manjaro is unable to update (GPGME & keyring errors)
- Mitigate and prevent GPGME error when syncing your system
- Update of manjaro-keyring gave errors
- Unable to update my system due to signing key errors
1 2 3 4 5 | error: archlinux-keyring: signature from "Christian Hesse (Arch Linux Package Signing) <arch@eworm.de>" is unknown trust :: File /var/cache/pacman/pkg/archlinux-keyring-20221123-1-any.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) Errors occurred, no packages were upgraded. |
解决办法
- 修改 pacman 设置,先不要检查签名
- 修改
sudo vi /etc/pacman.conf
[options]
部分,SigLevel
改为Optional TrustAll
- 修改
- 重建 keyring
1 2 3 4 5 6 7
sudo rm -r /etc/pacman.d/gnupg sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring sudo pacman-key --init sudo pacman-key --populate archlinux manjaro # refresh-keys 这一步等挺长时间的 sudo pacman-key --refresh-keys sudo pacman -Sc
- 为了安全
SigLevel
改为Required DatabaseOptional
- 更新系统
sudo pacman -Syyu