You are not logged in.

#1 2023-05-04 12:14:25

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

[SOLVED]failed to synchronize all databases (no servers configured...

hello everyone smile noob here.

was having problems updating with pacman -Syu apparently because of libgpg so i tried removing the package that was using it and i ended up uninstalling pacman by accident, then i followed the instructions here: https://archlinux.org/pacman/

and got it installed but now, the config might be wrong? coz when i try to update again with pacman -Syu i get an error saying

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

this is currently my /etc/pacman.conf

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
#ParallelDownloads = 5

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
#SigLevel    = Required DatabaseOptional
#LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

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

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

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

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

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

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

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

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

please help me lmao i borked it even more trying to fix it

Last edited by Bluish9992 (2023-05-26 08:27:56)

Offline

#2 2023-05-04 12:22:53

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,081

Re: [SOLVED]failed to synchronize all databases (no servers configured...

See /etc/pacman.d/mirrorlist, you need a mirror uncommented.

Also note that you don't have multilib enabled, but have the include uncommented, that's not causing the error, but it's wrong.

Last edited by Scimmia (2023-05-04 12:24:13)

Offline

#3 2023-05-04 12:23:41

seth
Member
Registered: 2012-09-03
Posts: 58,676

Re: [SOLVED]failed to synchronize all databases (no servers configured...

If you removed pacman, chances are you also removed pacman-mirrorlist and now non is configured (inspect /etc/pacman.d/mirrorlist)

Make sure to have a valid mirrorlist, stop flailing around and please also don't open new topics for each of your mishaps, this only dissolves the situation and makes it hard/impossible to follwo the status quo.

Perhaps report your threads for merging.

Offline

#4 2023-05-04 13:19:49

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: [SOLVED]failed to synchronize all databases (no servers configured...

@scimmia
ty this worked  i uncommented some of the servers in the mirrorlist /etc/pacman.d/mirrorlist

@seth
i truly thought posting a specific issue on a thread was preferable over using one topic and posting different problems on it but i'll keep what you said in mind. about me flailing around, well i also wish i that for myself. i appreciate all the help

Last edited by Bluish9992 (2023-05-04 13:30:13)

Offline

#5 2023-05-04 14:14:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,187

Re: [SOLVED]failed to synchronize all databases (no servers configured...

That is the case for actually distinct problems but all of yours have the same original cause and are technically quite related. In any case if this is fixed, please mark all of them as [SOLVED] by editing the title in your first post.

Online

#6 2023-10-24 15:16:42

Code0x81
Member
Registered: 2023-10-24
Posts: 1

Re: [SOLVED]failed to synchronize all databases (no servers configured...

just uncomment  both

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

Offline

#7 2023-10-24 15:59:52

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,187

Re: [SOLVED]failed to synchronize all databases (no servers configured...

Which was already mentioned when the topic was solved 5 months ago. Please don't bump already solved topics only to confirm the solution.

Closing.

Online

Board footer

Powered by FluxBB