Getting error File /var/cache/pacman/pkg/garuda-setup-assistant-r24.1ab4be6-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature))

New to Garuda and Arch linux in general. Trying to update the system. Any guidance or help will be appreciated.

Run the command sudo pacman -Syyuu (which was suggested in another forum for this issue) I get the following:

Total Download Size:      0.01 MiB
Total Installed Size:  5337.80 MiB
Net Upgrade Size:        48.18 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 garuda-setup-assistant-r24.1ab4be6-1-any                        10.3 KiB  0.00   B/s 00:00 [------------------------------------------------------]  99%
(478/478) checking keys in keyring                                                          [------------------------------------------------------] 100%
(478/478) checking package integrity                                                        [------------------------------------------------------] 100%
error: garuda-setup-assistant: signature from "Pedro Henrique Lara Campos <[email protected]>" is invalid
:: File /var/cache/pacman/pkg/garuda-setup-assistant-r24.1ab4be6-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
2 Likes

What happens of you just delete the corrupted package?
And welcome btw :smiley:

Package deleted and downloaded again but same Error

1 Like

Looks like an issue with the ChaoticAUR package database.... @pedrohlc ?

1 Like

I just installed Garuda on a new system for the first time. Did experience the upgrade failure referenced here: https://forum.garudalinux.org/t/pacman-upgrade-failure-garuda-hooks-maximum-file-size-exceeded/3928

And I'm now getting this error too. It may have been a result of the rebuild mentioned in the above thread. I have cleared my package cache, and rebuilt the database as suggested. I am still receiving the same error as the OP.

1 Like

I rebuild the package, try again please
On my system it installs fine :eyes:

4 Likes

It is now working on my system. Whatever you did, you did it well. Thank-you

1 Like

This has been a reoccurring issue, I had to ask a Chaotic-AUR to rebuild a few packages recently too, I wonder what's causing this :thinking:

2 Likes

there seems to be a few threads on this

I assume it involves keyrings, but the repo maintainers should know better.

2 Likes

Essentially, the entry in the database does not match the package on disk.

This normally results in one of two things:

  1. Signature does not match (“invalid or corrupted package”); file is same size or smaller than database entry;
  2. File size does not match (“filesize exceeded”); file is larger than database entry filesize.
1 Like

Thank you, whatever you did worked. I only just now got to try updating again and it all worked.

2 Likes

Yea, but that doesn't really answer WHY it's happening in the first place :thinking:

3 Likes

Possibly a race condition on the builder (e.g. two repo-add operations running at the same time)?

3 Likes

Hi, IDK if it's proper for me to just bump this thread. I can make a new post if needed, or if no one seems to respond here after a while. So, I'm having this exact problem myself on a fresh install. The only difference is the packages failing are signed by "Nico Jensch". I can post a terminal output if needed, I'm on a different pc atm, but it looks exactly like his just the authors are different. It's failing for Black Arch repo, Virtualbox, Wine, and a couple others that I dont remember off the top. Is there any fix for this? Or can someone let Nico know that his cert/keys whatever they're called are invalid/expired. Or something? Lol. TIA.

Yes, please, open a new topics, providing as much info as possible (terminal output).

2 Likes