You are not logged in.

#1 2022-04-19 18:54:49

Tv
Member
Registered: 2022-04-19
Posts: 4

Pacman Sync gives error: failed to synchronize all databases. [SOLVED]

I have tried multiple diffrent mirrorlist needer "arch mirror creator tool" work nor reflector:

/etc/pacman.d/mirrorlist wrote:

################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With:       reflector @/etc/xdg/reflector/reflector.conf
# When:       2022-04-19 18:08:35 UTC
# From:       https://archlinux.org/mirrors/status/json/
# Retrieved:  2022-04-19 18:08:35 UTC
# Last Check: 2022-04-19 18:02:16 UTC

Server = https://archlinux.thaller.ws/$repo/os/$arch
Server = https://mirror.moson.org/arch/$repo/os/$arch
Server = https://mirror.f4st.host/archlinux/$repo/os/$arch
Server = https://phinau.de/arch/$repo/os/$arch
Server = https://mirror.luzea.de/archlinux/$repo/os/$arch

I have observed the error coming when i try to refresh (Sy) something:

sudo pacman -Sy wrote:

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

(Thats the full message)
I can install some packages, for example reflector or dolphin, but libreoffice did not work:

sudo pacman -S libreoffice wrote:

:: There are 4 providers available for libreoffice:
:: Repository testing
   1) libreoffice-fresh  2) libreoffice-still
:: Repository extra
[t@IuseArchBTW ~]$ sudo pacman -S libreoffice
:: There are 4 providers available for libreoffice:
:: Repository testing
   1) libreoffice-fresh  2) libreoffice-still
:: Repository extra
   3) libreoffice-fresh  4) libreoffice-still

Enter a number (default=1): 2
resolving dependencies...
:: There are 2 providers available for libraptor2.so=0-64:
:: Repository testing
   1) raptor
:: Repository extra
   2) raptor

Enter a number (default=1): 2
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing icu (70.1-1) breaks dependency 'libicuuc.so=71-64' required by harfbuzz-icu

(i did try to remove testing and other repositories but because i culdent refresh then they are still here)

I have tried deleting "/var/lib/pacman/db.lck" but the file dos not exist and so it didn't work.
It stopped working after the computer froze for a memory shortage playing citys skylines and I was forced to forceshut the computer.
I use f2fs file system, don't know if it matter, just throwing it out there.
[solved]

Last edited by Tv (2022-04-19 19:23:39)

Offline

#2 2022-04-19 19:02:13

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Pacman Sync gives error: failed to synchronize all databases. [SOLVED]

Post the contents of your /etc/pacman.conf


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2022-04-19 19:04:14

Tv
Member
Registered: 2022-04-19
Posts: 4

Re: Pacman Sync gives error: failed to synchronize all databases. [SOLVED]

/etc/pacman.conf wrote:

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

#
# GENERAL OPTIONS
#
[options]
ILoveCandy
# 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

#4 2022-04-19 19:16:13

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Pacman Sync gives error: failed to synchronize all databases. [SOLVED]

Please use code tags instead of quote tags, thanks.

To disable the testing repos properly you need to comment out the [*testing] lines as well as the Include lines and then downgrade any relevant packages...
https://wiki.archlinux.org/title/Offici … positories


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2022-04-19 19:20:57

Tv
Member
Registered: 2022-04-19
Posts: 4

Re: Pacman Sync gives error: failed to synchronize all databases. [SOLVED]

That just solved my issue. Thanks for the help but altough I am a bit confused as it stopped working without me touching the conf file. Thanks anyways big_smile

Offline

#6 2022-04-19 19:22:09

Tv
Member
Registered: 2022-04-19
Posts: 4

Re: Pacman Sync gives error: failed to synchronize all databases. [SOLVED]

[solved]

Offline

Board footer

Powered by FluxBB