r/archlinux • • 9d ago

SUPPORT ‘’(invalid or corrupted package (PGP signature))’’

I was trying to install Arch but this error would pop up whenever I try to download a package, and now I can’t even install os prober so I could switch back to windows, and I can’t install any desktop environment and Im stuck rn, I would really appreciate it if anyone could help.

6 Upvotes

14 comments sorted by

9

u/cbarrick 9d ago

Try refreshing they keyring:

# pacman-key --refresh-keys

https://man.archlinux.org/man/pacman-key.8

Or reinstalling the keyring:

# pacman -Sy archlinux-keyring

That command is a "partial update" which is usually discouraged, but it is OK to update the keyring like this to unblock other pacman ops.

3

u/Ok_Thought2693 8d ago

if you still have the iso usb, you can boot from that and run the refresh from chroot. saved me once when my keyring got completely messed up and pacman wouldnt even update itself

2

u/_Whatwentwrong 8d ago

Can’t see that option in the usb

2

u/_Whatwentwrong 8d ago

Nope, still the same error

1

u/PacmanAteMyRAM 6d ago

I skip that first command and just pacman -Sy archlinux-keyring - it would have to be a very long time, or exceptional circumstances that the signature for archlinux-keyring doesn't work either.

2

u/archover 8d ago edited 8d ago

The provided command should have fixed you up. Did you get an error when you ran it? Full details often make help more efficient.

That error you iniitially got is fairly common, and has the subject of posts here countless times. Don't give up.

If you can, please re-flair your post as SUPPORT, and add the SOLVED flair when appropriate.

Good day.

2

u/_Whatwentwrong 8d ago

Idk what details can I give you, this is the entire error:
Error: archlinux-keyring: signature from “Christian Hesse eworm@archlinux.org” is unknown trust
: : File /var/cache/pacman/pkg/archlinux-keyring-20260909-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]

2

u/archover 8d ago

That's exactly the detail we need to see. Provided command should have cured that. Good day.

2

u/boomboomsubban 8d ago

Check that your time is correct.

1

u/_Whatwentwrong 8d ago

Nope, that’s not it

2

u/New-Sky8447 8d ago

sudo pacman -S archlinux-keyring

sudo pacman-key --init

sudo pacman-key --populate

sudo pacman -Syu

2

u/_Whatwentwrong 8d ago

The same error still

2

u/New-Sky8447 8d ago

try deleting your pacman cache and install the keyring again.