Monday, May 29, 2017

keyring issues

While trying to bring in updates in Antergos the other day (with the pacman -Syu command), I saw the following error messages:

error: antergos-keyring: signature from "Antergos Build Server (Automated Package Build System) " is unknown trust
:: File /var/cache/pacman/pkg/antergos-keyring-20170524-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: antergos-mirrorlist: signature from "Antergos Build Server (Automated Package Build System) " is unknown trust
:: File /var/cache/pacman/pkg/antergos-mirrorlist-20170527-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: pamac: signature from "Antergos Build Server (Automated Package Build System) " is unknown trust
:: File /var/cache/pacman/pkg/pamac-4.3.6-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]


I typed n for "no" at each of those prompts. Result:

error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.


I got things fixed, but only after having to dig through a few threads at the Antergos forums. Today, I see the issue mentioned in the "Pacman & Package Upgrade" section at the main page of the Antergos forums (at the moment, there's a link to the "Error during updating" thread). Too bad that there wasn't an "official" announcement posted somewhere.

In any case, the commands I used here to fix the problem:

wget http://mirrors.antergos.com/antergos/x86_64/antergos-keyring-20170524-1-any.pkg.tar.xz
sudo pacman -U antergos-keyring-20170524-1-any.pkg.tar.xz
sudo pacman -Scc
sudo pacman-key --refresh-keys
sudo pacman -Syu

The above-mentioned "Error during updating" thread contains posts showing a similar set of commands -- slightly different than what I ended up using here, though:

wget http://mirrors.antergos.com/antergos/x86_64/antergos-keyring-20170524-1-any.pkg.tar.xz
wget http://mirrors.antergos.com/antergos/x86_64/antergos-keyring-20170524-1-any.pkg.tar.xz.sig
pacman-key --verify antergos-keyring-20170524-1-any.pkg.tar.xz.sig
pacman -U antergos-keyring-20170524-1-any.pkg.tar.xz
sudo pacman -Scc
sudo pacman-key --refresh-keys
sudo pacman -Syu


Or, to "skip the sig-check":

wget http://mirrors.antergos.com/antergos/x86_64/antergos-keyring-20170524-1-any.pkg.tar.xz
pacman -U antergos-keyring-20170524-1-any.pkg.tar.xz
sudo pacman -Scc
sudo pacman-key --refresh-keys
sudo pacman -Syu


Good luck, Antergos users!

1 comment:

Misha said...

Thanks! It helped!