Unable to update due to invalid or corrupted package (PGP signature)

Hi guys
I live in Iran, and in the past 90 days, the government cut off the internet, so I set an internal mirror to update my OS ( this mirror is not listed in the Manjaro repo ).
7 days ago, the government just released part of the internet, so I tried to update my OS and all my packages from the default mirror, and I got lots of errors
After I download all package i face this error for almost every package

:: File /var/cache/pacman/pkg/gnupg-2.4.9-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]

I searched, and I found this
Failed to commit transaction (invalid or corrupted package (PGP signature))

But after this command

pacman-key --refresh-keys

I waited for almost 7 hours, but it didn’t finish!

Then I try these steps

[HowTo] Solve Keyring Related Issues in Manjaro

But after this command

sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring

I got the same invalid or corrupted package

Try:

sudo pacman-mirrors --continent && sudo pacman -Syu

Or:

pamac update --no-aur --force-refresh
1 Like

this doesn’t help

sudo pacman-mirrors --continent && sudo pacman -Syu

but this one fix my problem

pamac update --no-aur --force-refresh

thanks

1 Like

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