Every pgp file shows corrupt

Hey, im new to linux and i just installed it.
Whenever i tried updating the system it kept showing pgp files are corrupted i searched everywhere and they all say use this command

Sudo pacman -S archlinux-keyrings

╭─spx_h@hanzo in ~ as 🧙 took 246ms
[🔴] × sudo pacman -S archlinux-keyring
resolving dependencies...
looking for conflicting packages...

Package (1)             Old Version  New Version  Net Change  Download Size

core/archlinux-keyring  20231026-1   20231207-1     0.02 MiB       1.15 MiB

Total Download Size:   1.15 MiB
Total Installed Size:  1.64 MiB
Net Upgrade Size:      0.02 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
archlinux-keyring-20231207-1-any     1180.2 KiB  1720 KiB/s 00:01 [------------------------------------] 100%
(1/1) checking keys in keyring                                     [------------------------------------] 100%
(1/1) checking package integrity                                   [------------------------------------] 100%
error: archlinux-keyring: signature from "Christian Hesse <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/archlinux-keyring-20231207-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]

However when i use this command aswell it shows “christian hesse” is corrupted and i cant use that command either

I tried reinstalling all packages but that didnt help either i dont even know how to reinstall linux from scratch to try and fix this problem

Follow up with…

# pacman-key --refresh-keys

I did it shows errors upon errors and stays in a loop…

╭─spx_h@hanzo in ~ as 🧙 took 4s
[🔴] × sudo pacman-key --refresh-keys
gpg: checking the trustdb
gpg: packet(2) too short
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: keydb_search failed: Invalid keyring
gpg: public key B5DB77409B11B601 is 18924 days newer than the signature
gpg: packet(2) too short
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keyring_get_keyblock failed: Invalid keyring
gpg: failed to rebuild keyring cache: Invalid keyring
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: public key B5DB77409B11B601 is 18924 days newer than the signature
gpg: packet(2) too short
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: validate_key_list failed
gpg: checking the trustdb
gpg: packet(2) too short
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: keydb_search failed: Invalid keyring
gpg: public key B5DB77409B11B601 is 18924 days newer than the signature
gpg: packet(2) too short
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keyring_get_keyblock failed: Invalid keyring
gpg: failed to rebuild keyring cache: Invalid keyring
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: public key B5DB77409B11B601 is 18924 days newer than the signature
gpg: packet(2) too short
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: validate_key_list failed
gpg: public key B5DB77409B11B601 is 18924 days newer than the signature
gpg: packet(2) too short
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: checking the trustdb
gpg: packet(2) too short
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: keydb_search failed: Invalid keyring
gpg: public key B5DB77409B11B601 is 18924 days newer than the signature
gpg: packet(2) too short
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keyring_get_keyblock failed: Invalid keyring
gpg: failed to rebuild keyring cache: Invalid keyring
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: public key B5DB77409B11B601 is 18924 days newer than the signature
gpg: packet(2) too short
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: validate_key_list failed
gpg: checking the trustdb
gpg: packet(2) too short
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: keydb_search failed: Invalid keyring
gpg: public key B5DB77409B11B601 is 18924 days newer than the signature
gpg: packet(2) too short
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keyring_get_keyblock failed: Invalid keyring
gpg: failed to rebuild keyring cache: Invalid keyring
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: public key B5DB77409B11B601 is 18924 days newer than the signature
gpg: packet(2) too short
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: validate_key_list failed
gpg: key A6234074498E9CEE: "Christian Hesse <[email protected]>" 2 new signatures
gpg: Total number processed: 1
gpg:         new signatures: 2
gpg: packet(2) too short
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: keydb_search failed: Invalid keyring
gpg: public key B5DB77409B11B601 is 18924 days newer than the signature
gpg: packet(2) too short
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keyring_get_keyblock failed: Invalid keyring
gpg: failed to rebuild keyring cache: Invalid keyring
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: public key B5DB77409B11B601 is 18924 days newer than the signature
gpg: packet(2) too short
gpg: keyring_get_keyblock: read error: Invalid packet
gpg: keydb_get_keyblock failed: Invalid keyring
gpg: validate_key_list failed
pub   rsa2048 2011-08-12 [SC]
02FD1C7A934E614545849F19A6234074498E9CEE
uid           [ unknown] Christian Hesse <[email protected]>
uid           [ unknown] Christian Hesse (Arch Linux Package Signing) <[email protected]>
sub   rsa2048 2011-08-12 [E]
sub   ed25519 2019-08-29 [S]
sub   cv25519 2019-08-29 [E]

Post the required garuda-inxi please. Follow the template.

2 Likes

The command to fix these kinds of issues is simply update remote keyring.

8 Likes

Thanks for your help its working now and everything is fixed!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.