I am trying to update an Arch Linux installation:
sudo pacman -Syu
It goes on for a while and then starts to write error messages such as:
(691/691) checking keys in keyring [##############################################################################################] 100%
(691/691) checking package integrity [##############################################################################################] 100%
error: libtiff: signature from "Levente Polyak (anthraxx) <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/libtiff-4.1.0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: krb5: signature from "Levente Polyak (anthraxx) <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/krb5-1.17.1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
I tried both, to answer these questions with Y
and n
.
Yet, in both cases, the installation bails out with the final error message:
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
I have no idea how I can fix this and proceed with the installation.
pacman-key --refresh-keys