Skip to main content
Topic: No login screen "error: failed to synchronize all databases (invalid url for... (Read 3453 times) previous topic - next topic
0 Members and 5 Guests are viewing this topic.

No login screen "error: failed to synchronize all databases (invalid url for...

I haven't updated a computer that had Artix installed in a while and now I can't login after updating today. I've looked around the forum and online for fixes and nothing seems to work. The error that's the closest to mine is this.

> https://forum.artixlinux.org/index.php/topic,4155.msg26772.html#msg26772

 

Re: No login screen "error: failed to synchronize all databases (invalid url for...

Reply #1
I did some experimentation and typed "sudo pacman -S" and I saw that the database files for everything is gone. What should I do?


Re: No login screen "error: failed to synchronize all databases (invalid url for...

Reply #3
Yeah that's the first command I tried. It only syncs up to system and gives me a bunch of database not found errors.

Re: No login screen "error: failed to synchronize all databases (invalid url for...

Reply #4
I've looked at all the mirrors too and they match up to this.

> https://gitea.artixlinux.org/packagesA/artix-mirrorlist/src/branch/master/trunk/mirrorlist

I think there's something wrong with my pacman file communicating with other things after I updated. My pacman file also matches on what it should be too. I can't install anything or update I just get database not found errors. I've also tried to validate the keys, removed expired keys and so forth and it doesn't work either.


Re: No login screen "error: failed to synchronize all databases (invalid url for...

Reply #6
Are the mirrors still syncing? When I go to the websites where the mirrors are they all return with 404s.

Re: No login screen "error: failed to synchronize all databases (invalid url for...

Reply #7
Are the mirrors still syncing? When I go to the websites where the mirrors are they all return with 404s.
Yes everything is fine.
Below is the content of my /etc/pacman.conf file
Code: [Select]
cat /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

#IgnorePkg   =
#IgnorePkg   =
#IgnorePkg   =
#IgnorePkg   =
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
Color
#TotalDownload
CheckSpace
#VerbosePkgLists

# 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 Artix Linux
# packagers with `pacman-key --populate artix`.

#
# 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 gremlins 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.

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

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

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

#[galaxy-gremlins]
#Include = /etc/pacman.d/mirrorlist

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

[universe]
Server = https://universe.artixlinux.org/$arch
Server = https://mirror1.artixlinux.org/universe/$arch
Server = https://mirror.pascalpuffke.de/artix-universe/$arch


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

#[lib32-gremlins]
#Include = /etc/pacman.d/mirrorlist

#[lib32]
#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

#
# ARCHLINUX
#

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

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

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

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

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

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

I'm in France and here's what I have in /etc/pacman.d/mirrorlist and /etc/pacman.d/mirrorlist-arch :

Code: [Select]
cat /etc/pacman.d/mirrorlist
##
## Artix Linux repository mirrorlist
## Generated on 2021-10-21
##

# Artix mirrors


## Europe
#Server = https://mirrors.dotsrc.org/artix-linux/repos/$repo/os/$arch
#Server = http://ftp.ntua.gr/pub/linux/artix-linux/$repo/os/$arch
#Server = https://ftp.cc.uoc.gr/mirrors/linux/artixlinux/$repo/os/$arch
#Server = https://quantum-mirror.hu/mirrors/pub/artix-linux/$repo/os/$arch
#Server = https://ftp.sh.cvut.cz/artix-linux/$repo/os/$arch
#Server = https://artix.unixpeople.org/repos/$repo/os/$arch
#Server = https://artix.cccp.io/$repo/os/$arch
#Server = https://mirror.linux.pizza/artix-linux/$repo/os/$arch
#Server = http://mirrors.redcorelinux.org/artixlinux/$repo/os/$arch
#Server = https://mirror.one.com/artix/$repo/os/$arch
#Server = https://mirror.pascalpuffke.de/artix-linux/$repo/os/$arch
#Server = https://artixlinux.qontinuum.space:4443/$repo/os/$arch
#Server = https://ftp.ludd.ltu.se/mirrors/artix/$repo/os/$arch
Server = http://mirror1.artixlinux.org/repos/$repo/os/$arch
#Server = https://eu-mirror.artixlinux.org/repos/$repo/os/$arch


## North America
Server = https://artix.wheaton.edu/repos/$repo/os/$arch
#Server = https://mirror.clarkson.edu/artix-linux/repos/$repo/os/$arch
#Server = https://us-mirror.artixlinux.org/$repo/os/$arch
#Server = http://www.nylxs.com/mirror/repos/$repo/os/$arch
#Server = https://mirrors.nettek.us/artix-linux/$repo/os/$arch


## Asia
#Server = https://mirrors.tuna.tsinghua.edu.cn/artixlinux/$repo/os/$arch
#Server = https://mirrors.cloud.tencent.com/artixlinux/$repo/os/$arch
#Server = https://artix.funami.tech/artix/$repo/os/$arch


Code: [Select]
cat /etc/pacman.d/mirrorlist-arch
Server = https://appuals.com/archlinux/$repo/os/$arch
Server = https://arch.jensgutermuth.de/$repo/os/$arch
Server = https://arch.mirror.zachlge.org/$repo/os/$arch
Server = https://arch.unixpeople.org/$repo/os/$arch
Server = https://arch.yourlabs.org/$repo/os/$arch



Re: No login screen "error: failed to synchronize all databases (invalid url for...

Reply #8
Alright I'll wait then, I thought an update bricked my system because nothing connected and I can't access my desktop.


Re: No login screen "error: failed to synchronize all databases (invalid url for...

Reply #10
I've got the same configuration.

Re: No login screen "error: failed to synchronize all databases (invalid url for...

Reply #11
I keep getting "error: failed retrieving file 'system.db' ..." when doing -Syyu.


Re: No login screen "error: failed to synchronize all databases (invalid url for...

Reply #13
: : Synchronizing package databases . . .
error: failed to synchronize all databases (invalid url for server) 

Re: No login screen "error: failed to synchronize all databases (invalid url for...

Reply #14
are you able to connect to the internets at least?
this is the machine you are on and typing to us from?

Also if awhile has been more that a year since you last updated your system, a clean install might be the best thing for you
Cat Herders of Linux