You are not logged in.

#1 2023-01-02 16:26:41

chuv
Member
Registered: 2022-10-22
Posts: 5

Pacman failed to synchronize all databases error

When I run

$ pacman -Sy

It gives me this:

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

My mirrorlist:

##
## Arch Linux repository mirrorlist
## Generated on 2023-01-02
##

## Russia
#Server = http://mirror.kamtv.ru/archlinux/$repo/os/$arch
#Server = https://mirror.kamtv.ru/archlinux/$repo/os/$arch
#Server = http://mirror.lebedinets.ru/archlinux/$repo/os/$arch
#Server = https://mirror.lebedinets.ru/archlinux/$repo/os/$arch
#Server = http://mirror.surf/archlinux/$repo/os/$arch
#Server = https://mirror.surf/archlinux/$repo/os/$arch
#Server = http://mirror.nw-sys.ru/archlinux/$repo/os/$arch
#Server = https://mirror.nw-sys.ru/archlinux/$repo/os/$arch
#Server = http://mirrors.powernet.com.ru/archlinux/$repo/os/$arch
#Server = http://mirror.rol.ru/archlinux/$repo/os/$arch
#Server = https://mirror.rol.ru/archlinux/$repo/os/$arch
#Server = http://mirror.truenetwork.ru/archlinux/$repo/os/$arch
#Server = https://mirror.truenetwork.ru/archlinux/$repo/os/$arch
#Server = https://mirror.yal.sl-chat.ru/archlinux/$repo/os/$arch
#Server = http://mirror.yandex.ru/archlinux/$repo/os/$arch
#Server = https://mirror.yandex.ru/archlinux/$repo/os/$arch
#Server = http://archlinux.zepto.cloud/$repo/os/$arch

My 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

Offline

#2 2023-01-02 16:39:49

StJimmy
Member
From: De Lage Landen
Registered: 2020-02-26
Posts: 71

Re: Pacman failed to synchronize all databases error

First off, *don't* run pacman -Sy on its own; this will lead to partial upgrades if followed up by pacman -S without having run pacman -Su beforehand, which can wreck havoc on your system.  It's also unsupported.

Pacman also more or less tells you exactly what's wrong; you haven't configured any mirrors.  You need to actually uncomment the ones you want to use in your mirrorlist.  Which to me also begs the question: how did you install Arch?

Last edited by StJimmy (2023-01-02 16:40:16)


Nanos gigantum humeris insidentes.

Offline

#3 2023-01-02 16:42:48

chuv
Member
Registered: 2022-10-22
Posts: 5

Re: Pacman failed to synchronize all databases error

Tysm, didn't notice comments. Maybe I'm blind ¯\_(ツ)_/¯

Offline

#4 2024-06-28 14:03:45

ayadseghiri
Member
From: Algeria
Registered: 2024-05-10
Posts: 3
Website

Re: Pacman failed to synchronize all databases error

try this

sudo rm /var/lib/pacman/db.lck

Offline

#5 2024-06-28 14:09:36

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

Re: Pacman failed to synchronize all databases error

That has nothing to do with anything, and this was solved a year and a half ago. 2 posts, both necro of already solved topics.

Offline

#6 2024-06-28 14:13:37

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,260

Re: Pacman failed to synchronize all databases error

Closing.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB