Error updating packages/softwares and etc

I can’t seem to update my system using sudo pacman -Syyu, it returns an error of ‘failed to synchronize all databases (invalid or corrupted database (PGP signature))’

This just happened today.

The exact error in the terminal is:

error: GPGME error: No data
:: Synchronizing package databases…
core 140.5 KiB 207 KiB/s 00:01 [##############################] 100%
extra 7.9 MiB 6.19 MiB/s 00:01 [##############################] 100%
multilib 142.0 KiB 216 KiB/s 00:01 [##############################] 100%
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))

What I tried :

sudo pacman -Scc
sudo pacman -Syyu
–same result

sudo pacman-key --init
sudo pacman-key --populate archlinux manjaro
sudo pacman-key --refresh-keys
sudo pacman -Syyu
–same result

Any other tips? I am also facing an error when I update it via Add/Remove Software

Note: The only workaround for me to update is to set the SigLevel to ‘Never’ in pacman.conf

I also followed this advise to no avail:

1st file

Refresh keyring when corrupt

sudo rm -rf /etc/pacman.d/gnupg
sudo rm -R /root/.gnupg/
sudo pacman-key --init

Manjaro

sudo pacman-key --populate archlinux manjaro
sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring
sudo pacman-key --refresh-keys
2nd file

Refresh keyring when corrupt

sudo rm -rf /etc/pacman.d/gnupg
sudo rm -R /root/.gnupg/
sudo pacman-key --init
sudo pacman-key --populate archlinux manjaro
sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring
sudo pacman-key --refresh-keys

Remove packages from cache? No

sudo pacman -Sc
sudo pacman -Syyu

Did you try to open Pamac (GUI) and click TOP Right drop down menue> Refresh Data Base?

Doesn’t sudo pacman -Syyu downgrade packages?

sudo pacman -Syu is the update command?

No.

look at
man pacman
to see what -yy actually does

yes

Just reading the man now. what a rabbit hole for me. Thanks

yeah, it works - as long as the ‘Siglevel’ is set to Never. But if it’s in the Required DatabaseOptional - it wouldn’t work. I really don’t want to change it every time I upgrade, I can leave it to ‘never’ but I’ve read somewhere that it is not recommended to do so.

pacman -Syu > refreshes repo that needs to be refreshed, saving bandwidth from both sides.

pacman -Syyu> refreshes all repo, and is not reco to use, however, it’s fine if something screwy is going on. The functionality is there for a reason. Just don’t use it regularly, only when needed.

The error when I tried updating via GUI is 'invalid or corrupted database (PGP signature)
Failed to synchronize databases

This has been going on for a week now - I’m considering to have a fresh install instead :confused:

This can be remedied easily.

Look for it here in the forum.
Has been asked and discussed like a million times only.

1 Like

Welcome to the forum! :vulcan_salute:

Please see this guide below… :point_down:

I’ll try this out! Will give an update on this thread

Search results for ‘invalid or corrupted database (PGP signature)’ status:solved - Manjaro Linux Forum

it worked, thanks!

1 Like

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