System/ArchLinux

From LunaSys
Jump to navigation Jump to search

Troubleshooting

Invalid signature causing update to fail

E.g.:

(254/254) checking package integrity
[####################################################################] 100%
error: highway: signature from "Daniel Bermond <dbermond@archlinux.org>" is marginal trust
:: File /var/cache/pacman/pkg/highway-1.3.0-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 

If `pacman-key --refresh-keys` does not fix the issue, this should be resolved by recreating the entire keyring folder:

sudo mv /etc/pacman.d/gnupg /root/backup_dir_gnupg
sudo pacman-key --init
sudo pacman-key --populate archlinux manjaro
sudo pacman -Syu