Never seen this many servers fail on an update before!

 Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 community.db failed to download
 multilib is up to date
error: failed retrieving file 'community.db' from losangeles.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from america.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from us.arch.niranjan.co : The requested URL returned error: 404
error: failed retrieving file 'community.db' from london.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from taipei.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from berlin.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.lcarilla.de : The requested URL returned error: 404
error: failed retrieving file 'community.db' from singapore.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from johannesburg.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.theash.xyz : TLS connect error: error:0A0000C6:SSL routines::packet length too long
error: failed to synchronize all databases (download library error)
 -> error refreshing databases - exit status 1

How do I fix this?

Edit /etc/pacman.conf. Find the line [community] and comment it out, and the Include... mentioned below it, by inserting a # in front of them, like this:

#[community]
#Include = /etc/pacman.d/mirrorlist

Save, and retry.

Around two years ago, we’ve merged the [community] repository into [extra] as part of the git migration. In order to not break user setups, we kept these repositories around in an unused and empty state. We’re going to clean up these old repositories on 2025-03-01 .

Source

8 Likes

community !!! if (TLDR )

 Cleaning up old repositories

2025-02-17

Around two years ago, we've merged the [community] repository into [extra] as part of the git migration. In order to not break user setups, we kept these repositories around in an unused and empty state. We're going to clean up these old repositories on 2025-03-01.

On systems where /etc/pacman.conf still references the old [community] repository, pacman -Sy will return an error on trying to sync repository metadata.

The following deprecated repositories will be removed: [community], [community-testing], [testing], [testing-debug], [staging], [staging-debug].

Please make sure to remove all use of the aforementioned repositories from your /etc/pacman.conf (for which a .pacnew was shipped with pacman>=6.0.2-7)!

better remove 
 # out ok . cleaner if remove

Yes this is the solution to fix the issue!

To OP @crilglay please mark it as the solution for users who search this issue.

2 Likes

Since this was front page news on the Arch Linux website for the last two weeks, it should not get too many questions! :rofl: :stuck_out_tongue:

To look at the latest Arch news:

eos-update --show-upstream-news
1 Like

Sure but it should be marked as solution nonetheless.
To be more helpful and to continue to serve as important info on this forum.

I never miss any news, thanks to this tool. In case anyone uses/wants to install

apdatifier

, a nice applet for KDE/Arch, can save a lot of hassle. It gets you notified of updates, install, integrates yay/paru, brings up KDE & Arch linux news. There’s a wide variety of options in its settings.
Personally, I DON"T use it to update, because I want full control of my command line. But I DO use it as a notifier for updates, to:

  • check & get an idea of what updates are available
  • get the latest KDE & Arch linux news
  • update my widgets from the KDE store at a glance (the only instance I use it to install anything). It even lets you know if plasma shell needs a restart & does so.
    https://store.kde.org/p/2135796
1 Like

I was wondering how to comment out and save is there a way to open the file ?

sudo nano /etc/pacman.conf

Make the changes, then press CTRL + O to save changes, and CTRL + X to exit nano.

1 Like

What @Bink said :point_up_2:

Or use Dolphin just copy " /etc/pacman.conf " into the "address " field find the line(aka [community]) and add # to them.

Oh and add @Bink original post as the solution.

1 Like

I gave that a go. On mine at least, it comes up “Loading canceled”. It would work pasting it into the address field in Kate’s “Open” dialogue though.

Or have Kate open it via command line (will be prompted for password on saving):

kate /etc/pacman.conf

I tried that and it doesn’t let me exit File Name to Write: /etc/pacman.conf now what?

Odd. For me I can either save as-is or save under a new name.

So I tried sudo nano /etc/pacman.conf I commented out Community and include = /etc/pacman.d/mirrorlist used Ctrl o to save and Ctrl x to exit and I see a line that says File Name to Write: /etc/pacman.conf and it doesn’t exit so I closed the Terminal and tried to update using sudo pacman -Syu and this happens " Synchronizing package databases

endeavouros 12.3 KiB 139 KiB/s 00:00 [--------------------------------] 100%
core 115.4 KiB 796 KiB/s 00:00 [--------------------------------] 100%
extra 7.7 MiB 26.6 MiB/s 00:00 [--------------------------------] 100%
community is up to date
multilib 130.2 KiB 986 KiB/s 00:00 [--------------------------------] 100%
error: failed retrieving file ‘community.db’ from mirror.qctronics.com : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from america.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from arch.mirror.constant.com : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from us.arch.niranjan.co : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from iad.mirrors.misaka.one : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from mirror.quantum5.ca : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from mirrors.bjg.at : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from mirror.theash.xyz : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from repo.ialab.dsu.edu : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from arch.hu.fo : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from mirror.clarkson.edu : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from mirrors.vectair.net : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from mirrors.lug.mtu.edu : The requested URL returned error: 404
:: Starting full system upgrade

resolving dependencies

looking for conflicting packages

what am I doing Wrong?

So do I have to save it under a new name?

What’s the output of:

cat -n /etc/pacman.conf | grep -E '\[|Include' | grep -v \#

cat -n /etc/pacman.conf | grep -E ‘[|Include’ | grep -v #
9 [options]
75 [endeavouros]
77 Include = /etc/pacman.d/endeavouros-mirrorlist
82 [core]
83 Include = /etc/pacman.d/mirrorlist
85 [extra]
86 Include = /etc/pacman.d/mirrorlist
91 [community]
92 Include = /etc/pacman.d/mirrorlist
100 [multilib]
101 Include = /etc/pacman.d/mirrorlist

You shouldn’t need to save it under a new name.

So lines 91-92 need to be commented out (or deleted).

sudo nano /etc/pacman.conf

Then press CTRL+SHIFT+_ (underscore) and type in 91 to jump to that line.

Insert the hash at the start of the lines, to read as so:

#[community]
#Include = /etc/pacman.d/mirrorlist

Press CTRL+O and hit Enter to save. Then CTRL+X to exit.

1 Like