Strange, but I’m having this issue as well in a pre-installed Xfce while switching from Unstable to Stable. Regular pacman-key commands aren’t helping so I guess I’ll try @SlowMotion’s fix first. It seems the safest…
and the last command ended in an error…the --refresh-keys command.
gpg: Total number processed: 146
gpg: unchanged: 116
gpg: new user IDs: 1
gpg: new signatures: 47
gpg: signatures cleaned: 105
gpg: user IDs cleaned: 2
gpg: public key DB323392796CA067 is 3037 days newer than the signature
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 25 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1 valid: 25 signed: 85 trust: 0-, 0q, 0n, 25m, 0f, 0u
gpg: depth: 2 valid: 77 signed: 25 trust: 77-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2021-08-02
==> ERROR: A specified local key could not be updated from a keyserver.
and still fails to update
:: Proceed with installation? [Y/n]
(239/239) checking keys in keyring
[################################] 100%
(239/239) checking package integrity
[################################] 100%
error: confuse: key "Baptiste Jonglez <baptiste@bitsofnetworks.org>" is disabled
:: File /var/cache/pacman/pkg/confuse-3.3-2-x86_64.pkg.tar.zst is corrupted (invalid or
corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
I guess I will have to trust it if I want back into Stable Branch, which I need to do if I want my system tray back, I think. (long story here)