failed retrieving file ‘community.db’ 404 error
by Logan Rogers-Follis on Mar.08, 2025, under Linux, Techie
If you have been running an Arch-based distro (like Manjaro) for a few years now, you might suddenly be getting the following errors (when running sudo pacman -Syyuu
from CLI):
error: failed retrieving file 'community.db' from geo.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirrors.aggregate.org : The requested URL returned error: 404
error: failed retrieving file 'community.db' from arch.mirror.square-r00t.net : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.wdc1.us.leaseweb.net : The requested URL returned error: 404
error: failed to synchronize all databases (failed to retrieve some files)
This is because the commuinity repo was replaced with extra
repo a few years ago. Recently the community report was completely removed (though it has been empty for a while). Generally speaking if you are seeing these errors (or getting some other odd errors when using the the GUI version of the package manager) then you will need to manually edit your pacman.conf file as listed below. According to what I have read, this would have automatically updated (provided you weren’t really far behind) unless you had already edited the pacman.conf file yourself (which I did).
Below is what I did to fix this:
kate /etc/pacman.conf
Search for the following lines and comment them out:
BEFORE:
[community]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist
AFTER:
#[community]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist
Then save and close the file. You will now be able to update your machine again.