#Pacman pgp errors on every installation operation, cannot be resolved

76 messages · Page 1 of 1 (latest)

radiant trench
#

Today I tried to do a full system upgrade using pacman -Syyu and I got pgp errors that files in the pacman cache are corrupted. I looked online and followed everything on the wiki and other sources that I could find to try and resolve the issue, but nothing has worked. Every time I try to install something using pacman I get more pgp errors and I do not know how to fix this. Please help me!

wide crater
#

Would it be possible to get the exact PGP error message?

radiant trench
#

yeah, do you want all of them or just one

wide crater
#

I should only need one of them, if it is the problem I am thinking of.

radiant trench
#
:: File /var/cache/pacman/pkg/xz-5.2.8-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] ```
#

I get that for every package

#

not package

#

key

solar kiln
#

keyring may be outdated

radiant trench
#

I tried to reinstall but got similar errors

wide crater
#

Try running pacman -Syy archlinux-keyring, if you haven't already.

radiant trench
#
:: File /var/cache/pacman/pkg/archlinux-keyring-20221110-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] ```
#

this is the output that I get

solar kiln
#

just hit yes to delete it

radiant trench
#
:: File /var/cache/pacman/pkg/archlinux-keyring-20221110-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.```
#

still does not work

solar kiln
#

try running the command again

radiant trench
#

same output

solar kiln
#

hmmm

wide crater
#

That is quite odd. Would it be possible to try a manual download and installation from the repository?

radiant trench
#

What exactly should I do?

#

Do you mean downloading and extracting manually?

solar kiln
solar kiln
wide crater
solar kiln
#

that’s possible

radiant trench
wide crater
radiant trench
#

downloading now

#

I should install it using pacman -U right?

wide crater
#

Believe so.

#

Think the entire command, run from the download folder is pacman -U archlinux-keyring-20221110-1-any.pkg.tar.zst.

radiant trench
#

is the download from the upstream url, the gitlab link?

#

is that where I download it?

#

I found it

#

the installation completed without an error

wide crater
#

Now try your system upgrade.

radiant trench
#

same errors

wide crater
#

Remove them all, then try again.

radiant trench
#

okay

#

same errors

wide crater
#

My suspicion is that you need to change your pacman mirror from the one you are currently using, as it appears to be corrupted.

radiant trench
#

ill try that

#

same errors

#

I just read something on the archlinux forums where someone asked the op if they had recently aborted a full system upgrade. I did today, would this cause any problems.

wide crater
#

Not after the existing things, and not with this sort of issue from what I recall.

radiant trench
#

hmmm

#

not really sure what to try next at this point after reading the relevant forum posts

#

might have to reinstall if I cannot fix this

#

in your opinion, what do you see as the best way to move forward?

wide crater
#

I am currently checking what is needed to regenerate a mirrorlist. I am almost certain this is a mirror issue.

radiant trench
#

okay, thanks

wide crater
#

Would you be willing to give my mirrorlist a try?

radiant trench
#

yeah

wide crater
#

Grabbing it now. It is a bit old, but has served me well so far.

radiant trench
#

sounds good

wide crater
#

Here is the entire contents of the file. ```
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

With: reflector @/etc/xdg/reflector/reflector.conf

When: 2022-02-01 04:30:36 UTC

From: https://archlinux.org/mirrors/status/json/

Retrieved: 2022-02-01 04:29:17 UTC

Last Check: 2022-02-01 03:51:01 UTC

Server = https://mirror.lty.me/archlinux/$repo/os/$arch
Server = https://mirror.osbeck.com/archlinux/$repo/os/$arch
Server = https://arch.mirror.constant.com/$repo/os/$arch
Server = https://mirror.pkgbuild.com/$repo/os/$arch
Server = https://archlinux.thaller.ws/$repo/os/$arch
Server = https://mirror.telepoint.bg/archlinux/$repo/os/$arch
Server = https://mirror.f4st.host/archlinux/$repo/os/$arch
Server = https://phinau.de/arch/$repo/os/$arch
Server = https://archmirror.it/repos/$repo/os/$arch
Server = https://mirror.cyberbits.asia/archlinux/$repo/os/$arch
Server = https://mirror.luzea.de/archlinux/$repo/os/$arch
Server = https://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch
Server = https://mirror.pseudoform.org/$repo/os/$arch
Server = https://pkg.adfinis.com/archlinux/$repo/os/$arch
Server = https://packages.oth-regensburg.de/archlinux/$repo/os/$arch
Server = https://archlinux.uk.mirror.allworldit.com/archlinux/$repo/os/$arch
Server = https://europe.mirror.pkgbuild.com/$repo/os/$arch
Server = https://america.mirror.pkgbuild.com/$repo/os/$arch
Server = https://mirror.theash.xyz/arch/$repo/os/$arch
Server = https://mirror.cyberbits.eu/archlinux/$repo/os/$arch

radiant trench
#

I put it in my mirrorlist file, is there anything that I need to do to refresh pacman

wide crater
#

Just run pacman -Syyuu and it should pick it up.

radiant trench
#

double u or just one u?

wide crater
#

The double u, since it will allow potential downgrades if a mirror isn't updated yet.

radiant trench
#

okay, running now

#

same errors, should I put Y for all

#

then re run

wide crater
#

Give it a try.

radiant trench
#

okay

#

same errors

wide crater
#

That is very odd. I am not sure what else to do then.

radiant trench
#

I guess im gonna have to reinstall then

#

thanks for all your help, im going to reinstall now after I back up all my files

wide crater
#

Just hope that a reinstall helps with the issue.

radiant trench
#

I hope so as well, thank you very much for all your help

azure fern
#

NO

#

@radiant trench

#
rm -r /var/lib/pacman/sync/
sudo pacman -Syyu