fhins
5 March 2025 13:53
1
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:
Difficulty: ★☆☆☆☆
This script is the result of people here in the forum having problems with Manjaro installations that haven’t been updated for more than 2 months or booting an old ISO plus installing it which is older than 2 months. I was a bit tired of explaining how to solve that issue and created a script, which does the job.
Methods
Method 1 - Basic
Remove lock files of pamac and pacman
Refresh Package Database
Populate local keyrings to the GnuPG Database of pacman
Refresh GnuPG Data…
1 Like
fhins
5 March 2025 17:41
4
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)?
fhins
5 March 2025 18:31
6
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
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.
BG405
5 March 2025 18:58
9
Moved to a dedicated topic. Please feel free to change the title if desired.
Cheers!
5 Likes
fhins
5 March 2025 19:04
10
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
fhins
5 March 2025 20:23
13
I just did, but still getting an error message.
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))
1 Like
BG405
5 March 2025 20:34
14
Hi @fhins I moved the previous posts on this to a dedicated thread .
fhins
6 March 2025 00:00
15
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
fhins
7 March 2025 02:00
19
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!
#[community]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist
system
Closed
10 March 2025 02:00
20
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.