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

Hello.

I have a problem.

When I try to Download any package through the command line, then this type of error massage I received.

[ls@ls ~]$ sudo pacman -S gimp
warning: database file for 'archlinuxcn' does not exist (use '-Sy' to download)
error: failed to prepare transaction (could not find database)
[ls@ls ~]$ sudo pacman -Sy gimp
:: Synchronizing package databases...
error: failed to synchronize all databases (no servers configured for repository)


sudo pacman -Sy inkscape
:: Synchronizing package databases...
error: failed to synchronize all databases (no servers configured for repository)

Please help me.
I am new in Linux.

That would be a question for the 3rd party repo support which you added to your system :eyes:

3 Likes

Run upd command in terminal

2 Likes

upd alone won’t fix incorrectly configured mirrors. Didn’t the instructions you used to add the ArchlinuxCN repo to your system mention how to set mirrors correctly?

3 Likes

please tell me how to set mirrors correctly? I don't know about it

I ran upd command and this massage comes

[ls@ls ~]$ sudo update
Executed as root, using Pacman to update..
Refreshing mirrorlists..



[2021-08-18 21:14:52] WARNING: failed to rate http(s) download (https://mirror.telepoint.bg/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2021-08-18 21:14:58] WARNING: failed to rate http(s) download (https://archlinux.thaller.ws/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2021-08-18 21:15:06] WARNING: failed to rate http(s) download (https://mirrors.neusoft.edu.cn/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2021-08-18 21:15:12] WARNING: failed to rate http(s) download (https://mirror.pseudoform.org/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2021-08-18 21:15:20] WARNING: failed to rate http(s) download (https://archlinux.uk.mirror.allworldit.com/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With:       reflector --latest 5 --age 2 --fastest 5 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
# When:       2021-08-18 15:45:20 UTC
# From:       https://archlinux.org/mirrors/status/json/
# Retrieved:  2021-08-18 15:44:45 UTC
# Last Check: 2021-08-18 14:29:10 UTC

Server = https://mirror.telepoint.bg/archlinux/$repo/os/$arch
Server = https://archlinux.thaller.ws/$repo/os/$arch
Server = https://mirrors.neusoft.edu.cn/archlinux/$repo/os/$arch
Server = https://mirror.pseudoform.org/$repo/os/$arch
Server = https://archlinux.uk.mirror.allworldit.com/archlinux/$repo/os/$arch
Checking for keyring update before starting full system update..
:: Synchronizing package databases...
error: failed to synchronize all databases (no servers configured for repository)

Because:

And for this,

see this:

5 Likes

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