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!
#Pacman pgp errors on every installation operation, cannot be resolved
76 messages · Page 1 of 1 (latest)
Would it be possible to get the exact PGP error message?
yeah, do you want all of them or just one
I should only need one of them, if it is the problem I am thinking of.
:: 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
keyring may be outdated
I tried to reinstall but got similar errors
Try running pacman -Syy archlinux-keyring, if you haven't already.
:: 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
just hit yes to delete it
:: 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
try running the command again
same output
hmmm
That is quite odd. Would it be possible to try a manual download and installation from the repository?
i was gonna suggest that but realized it would also probably have a pgp error
this might work tho
My thought is that there could be a bad mirror or similar.
that’s possible
the archlinux-keyring right?
Believe so.
Think the entire command, run from the download folder is pacman -U archlinux-keyring-20221110-1-any.pkg.tar.zst.
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
Now try your system upgrade.
same errors
Remove them all, then try again.
My suspicion is that you need to change your pacman mirror from the one you are currently using, as it appears to be corrupted.
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.
Not after the existing things, and not with this sort of issue from what I recall.
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?
I am currently checking what is needed to regenerate a mirrorlist. I am almost certain this is a mirror issue.
okay, thanks
Would you be willing to give my mirrorlist a try?
yeah
Grabbing it now. It is a bit old, but has served me well so far.
sounds good
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
I put it in my mirrorlist file, is there anything that I need to do to refresh pacman
Just run pacman -Syyuu and it should pick it up.
double u or just one u?
The double u, since it will allow potential downgrades if a mirror isn't updated yet.
Give it a try.
That is very odd. I am not sure what else to do then.
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
Just hope that a reinstall helps with the issue.
I hope so as well, thank you very much for all your help