Invalid or corrupted database (PGP signature) - 2025-03-05 Stable Update

I’m getting an invalid or corrupted database (PGP signature)
Failed to synchronize database.
error: failed to synchronize all databases (invalid or corrupted database (PGP signature)

System:
Kernel: 6.12.12-2-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
Desktop: KDE Plasma v: 6.2.5

1 Like

isnt that the problem already has a solution here? delete COMMUNITY from /etc/pacman.conf
or replace it with /etc/pacman.conf.pacnew

If you have not already done so, you could try the approach detailed here:

1 Like

How do you remove lock files of pamac and pacman?
I tried “sudo rm /var/lib/pacman/db.lck” but it didn’t work.

It will help if you post the exact command and the output you are seeing.

Perhaps the lock file does not exist.

What do you see which says there is a lock file (and again, posting the command and the output makes it a lot easier to help you)?

I get this:
rm: cannot remove ‘/var/lib/pacman/db.lck’: No such file or directory

It’s a common mistake, you probably haven’t updated the databases much in a while until the most recent update came out.

My recommendation before deleting those sync packages would be:

sudo pacman-mirrors -f

And then a

sudo pacman -Syyu

:kangaroo:

1 Like

So if the lock file does not exist I would suggest you skip that step and try doing the steps which follow on from that.

You can see that the script on that page does a find to see if the lock file exists before trying to remove it, so it should be safe to skip that step.

Moved to a dedicated topic. Please feel free to change the title if desired.

Cheers! :wink:

5 Likes

I get “invalid or corrupted database” when I tried to install electron34-bin.
Perhaps it’s going to get resolved in the next update!

I have same issue too, with the same output from that command

there is no such file (anymore)

It does not exist in the first place - therefore it can’t be removed.

3 Likes

I just did, but still getting an error message.
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))

1 Like

Hi @fhins I moved the previous posts on this to a dedicated thread. :slightly_smiling_face:

This resolved the issue:
https://bbs.archlinux.org/viewtopic.php?pid=1983577
sudo rm -R /var/lib/pacman/sync
sudo -E pacman -Syu

Thanks for your help!

1 Like

This does not solve it for me.

I tried the following commands

sudo rm -R /var/lib/pacman/sync
sudo -E pacman -Syu
sudo rm /var/lib/pacman/db.lck
sudo -E pacman -Sy archlinux-keyring
sudo rm -R /var/lib/pacman/sync
sudo rm -R /var/lib/pacman/sync

I’m still getting the below and failing to update. Via terminal

:: Synchronizing package databases...
 core                                                                                                                                                                                                     139.9 KiB  48.9 KiB/s 00:03 [##################################################################################################################################################] 100%
 extra                                                                                                                                                                                                      8.3 MiB  1605 KiB/s 00:05 [##################################################################################################################################################] 100%
 community.db failed to download
error: failed retrieving file 'community.db' from fosszone.csd.auth.gr : The requested URL returned error: 404
error: failed retrieving file 'community.db' from ftp.cc.uoc.gr : The requested URL returned error: 404
error: failed to synchronize all databases (failed to retrieve some files)

and via pamac GUI

Manjaro Linux Forum

see the pinned post at the top of the “latest” page - the link takes you there

1 Like

This worked, thank you!

I’m having the same problem with my laptop. I did the following which worked on my desktop but not this laptop.
sudo rm -R /var/lib/pacman/sync
sudo -E pacman -Syu
Here’s the error message I get:
Checking inter-conflicts…
Error: Failed to prepare transaction:
could not satisfy dependencies:

  • removing lib32-libffi breaks dependency ‘lib32-libffi’ required by lib32-glib2
  • removing lib32-pcre2 breaks dependency ‘lib32-pcre2’ required by lib32-glib2
  • removing lib32-libffi breaks dependency ‘libffi.so=8-32’ required by lib32-glib2

I’m in the nano /etc/pacman.conf file and I have the exact same command listed in the suggestion, so I don’t know what else to do or try! :confused:
#[community]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

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