Error: failed to synchronize all databases (no servers configured for repository)

Dear all,

I ran into a problem, updating the system. I always do it via “Update Native Packages (eos-update)” in the Welcome app. I think the last time I accidentally launched one of the “Update Mirrors” apps (unfortunately, cannot recall which one), and now when running “Update Native Packages (eos-update)” I get:

==> eos-update --faillock-check
eos-update: package updater with additional features
Updating native apps...
[sudo] password for lesha: 
:: Synchronizing package databases...
error: failed to synchronize all databases (no servers configured for repository)

In /etc/pacman.conf I have the following under REPOSITORIES:

# REPOSITORIES
[endeavouros]
SigLevel = PackageRequired
Include = /etc/pacman.d/endeavouros-mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

[multilib]
Include = /etc/pacman.d/mirrorlist

However, I see that my /etc/pacman.d/endeavouros-mirrorlist is empty, and there are some *.pacnew entries (which I may have created by accident):

$ ls -l /etc/pacman.d/
total 80
-rw-r--r-- 1 root root     0 Nov  4 10:12 endeavouros-mirrorlist
-rw-r--r-- 1 root root  6663 May 29  2024 endeavouros-mirrorlist.bak
-rw-r--r-- 1 root root  8190 Jul 11 11:42 endeavouros-mirrorlist.pacnew
drwxr-xr-x 5 root root  4096 Oct 31 21:22 gnupg
-rw-r--r-- 1 root root  2069 Jun  4 11:17 mirrorlist
-rw-r--r-- 1 root root  2044 Jun  4 11:17 mirrorlist.bak
-rw-r--r-- 1 root root 51073 Oct 21 01:27 mirrorlist.pacnew

Would appreciate any help troubleshooting this!

P.S. I did look at a few similar threads, but nothing seemed directly applicable. If I overlooked something, would appreciate a pointer.

In the Welcome App, under “After installation,” please select “Update mirror server list” (EndeavourOS, eos-rankmirrors).

This restores the endeavouros mirrorlist.

[quote=“manuel, post:33, topic:50848, full:true”]
There has been reports about a missing file /etc/pacman.d/endeavouros-mirrorlist.
If the file is missing on your system, update the EndeavourOS mirrorlist with these commands:

sudo touch /etc/pacman.d/endeavouros-mirrorlist
eos-rankmirrors

[/quote].
Please try this.

Thank you, @shadow359 and @keescase,

This resolved the issue: /etc/pacman.d/endeavouros-mirrorlist is now populated, and I can run the usual update.

Should I do something with the *.bak and *.pacnew entries in /etc/pacman.d/? Are they needed, or an artifact of my previous mirror update?

Thanks,

Alex

2 Likes

If you got working mirrors now you could remove .bak and .pacnew lists.

2 Likes

Thank you.

2 Likes

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