Can't update system, invalid or corrupted database

I get the following error

My system uses kde, i am on the testing branch

Refresh your mirror list.

1 Like

Doing so through the gui and terminal didnt fix anything. But after disabling and re-enabling aur support through the gui, the problem dissapered there, but not when updating from the command line

Problems with the community.db ?

sudo pacman -Syyu
:: Synchronizing package databases...
 core                                                    169.1 KiB  1581 KiB/s 00:00 [------------------------------------------------] 100%
 extra                                                  1854.6 KiB  4.72 MiB/s 00:00 [------------------------------------------------] 100%
 community.db failed to download
 multilib                                                182.1 KiB  1182 KiB/s 00:00 [------------------------------------------------] 100%
error: failed retrieving file 'community.db' from mirror.moson.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from manjaro.moson.eu : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.alpix.eu : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirrors.xtom.de : The requested URL returned error: 404
error: failed retrieving file 'community.db' from ftp.gwdg.de : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.23m.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from ftp.tu-chemnitz.de : The requested URL returned error: 403
error: failed retrieving file 'community.db' from ftp.halifax.rwth-aachen.de : The requested URL returned error: 403
error: failed to synchronize all databases (failed to retrieve some files)

I’d rather say it’s a problem with you mirror(s) or something of the sort. Please refresh your mirror list:

sudo pacman-mirrors -f5 --fasttrack

Hi,

Getting exactly the same for ‘community.db’ and refreshing mirrors does not work either. Have even tried with using:

✗  sudo pacman-mirrors -f5 --fasttrack && sudo pacman -Syyu
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO Using custom mirror file
::INFO Querying mirrors - This may take some time
  0.737 Sweden         : https://ftp.lysator.liu.se/pub/manjaro/
::INFO Writing mirror list
::Sweden          : https://ftp.lysator.liu.se/pub/manjaro/testing/$repo/$arch
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases...
 core                                     169.1 KiB   534 KiB/s 00:00 [#######################################] 100%
 extra                                   1854.6 KiB  3.40 MiB/s 00:01 [#######################################] 100%
 community.db failed to download
 multilib                                 182.1 KiB   535 KiB/s 00:00 [#######################################] 100%
error: failed retrieving file 'community.db' from ftp.lysator.liu.se : The requested URL returned error: 404
error: failed to synchronize all databases (unexpected error)

Think its been like this for at least since yesterday.

nope … isn´t my mirror problem … Switzerland, Germany, Netherlands …

sudo pacman -Syyu
:: Synchronizing package databases...
 core                                                    169.1 KiB   546 KiB/s 00:00 [------------------------------------------------] 100%
 extra                                                  1854.6 KiB  3.25 MiB/s 00:01 [------------------------------------------------] 100%
 community.db failed to download
 multilib                                                182.1 KiB   607 KiB/s 00:00 [------------------------------------------------] 100%
error: failed retrieving file 'community.db' from mirrors.ft.uam.es : The requested URL returned error: 404
error: failed retrieving file 'community.db' from ftp.caliu.cat : The requested URL returned error: 404
error: failed to synchronize all databases (unexpected error)

Community-DB are corrupt? …or not available?

Switzerland
sudo pacman -Syyu
:: Synchronizing package databases...
 core                                                    169.1 KiB   745 KiB/s 00:00 [------------------------------------------------] 100%
 extra                                                  1854.6 KiB  4.61 MiB/s 00:00 [------------------------------------------------] 100%
 community.db failed to download
 multilib                                                182.1 KiB  1273 KiB/s 00:00 [------------------------------------------------] 100%
error: failed retrieving file 'community.db' from mirror.init7.net : The requested URL returned error: 404
error: failed to synchronize all databases (unexpected error)
Netherlands
sudo pacman -Syyu
:: Synchronizing package databases...
 core                                                    169.1 KiB  1272 KiB/s 00:00 [------------------------------------------------] 100%
 extra                                                  1854.6 KiB   340 KiB/s 00:05 [------------------------------------------------] 100%
 community.db failed to download
 multilib                                                182.1 KiB   615 KiB/s 00:00 [------------------------------------------------] 100%
error: failed retrieving file 'community.db' from manjaro.mirrors.lavatech.top : The requested URL returned error: 404
error: failed to synchronize all databases (unexpected error)

Global-Mirror is reachable

sudo pacman -Syyu
:: Synchronizing package databases...
 core                                                    169.1 KiB   745 KiB/s 00:00 [------------------------------------------------] 100%
 extra                                                  1854.6 KiB  3.16 MiB/s 00:01 [------------------------------------------------] 100%
 community                                                 5.7 MiB  4.56 MiB/s 00:01 [------------------------------------------------] 100%
 multilib                                                182.1 KiB  1090 KiB/s 00:00 [------------------------------------------------] 100%
:: Starting full system upgrade...
 there is nothing to do

Then it might be that the mirrors are busy syncing…

Me too, you are not alone. Using the testing branch:

❯ sudo pacman -Syyu
:: Synchronizing package databases...
 core                                                                                                        169,1 KiB  2014 KiB/s 00:00 [###################################################################################] 100%
 extra                                                                                                      1854,6 KiB  5,79 MiB/s 00:00 [###################################################################################] 100%
 community.db failed to download
error: failed retrieving file 'community.db' from manjaro.moson.eu : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.moson.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.alpix.eu : The requested URL returned error: 404
error: failed retrieving file 'community.db' from ftp.halifax.rwth-aachen.de : The requested URL returned error: 403
error: failed retrieving file 'community.db' from ftp.gwdg.de : The requested URL returned error: 404
error: failed to synchronize all databases (failed to retrieve some files)

If you are using the stable branch, no issue.
But try to switch to the testing branch, you would get the errors 404 and 403.

I can confirm that I tested two different branches in VM. Only testing branch has the problem

That might explain it then…

:man_shrugging:

Same issue here…updating mirrors doesn’t help.

Same issue.

Please have a look at:

hey, run these commands:
sudo rm -f /var/lib/pacman/sync/*
next:
sudo pacman -Syyu
that should fix it

That’s not going to fix anything.

1 Like

if you have nothing constructive to say, say nothing… and yes, these commands are the simplest solution to fix ‘invalid or corrupted database (PGP signature)’ … if they dont work for OP, then we try different ones…

He’s right though. :wink:
This particular problem with the community repo in the testing branch exists on all mirrors and needs to be fixed on the main mirror (and then propagate down to all syncing mirrors).

There is nothing the user can do about it (well, except of switching branches)

1 Like

you are correct, i didnt notice that OP is on testing branch, my mistake…