Can't Update pacman, Timeout in all the mirrors

Hello, I just installed Manjaro from a live USB a few hours ago, but when I tried to update pacman using

`sudo pacman -Syu`

I got this error

: Sincronizando las bases de datos de los paquetes...
 no se pudo descargar core.db
error: no se pudo obtener el archivo «core.db» desde mirrors.manjaro.org: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror2.sandyriver.net: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde repo.ialab.dsu.edu: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde manjaro.mirrors.uk2.net: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirrors.colocall.net: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.moson.org: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde manjaro.moson.eu: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.alwyzon.net: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.easyname.at: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.cyberhost.uk: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde manjaro.kyberorg.fi: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde ftp.gwdg.de: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.alpix.eu: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde manjaro.c3sl.ufpr.br: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde ftp.tsukuba.wide.ad.jp: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.init7.net: Resolving timed out after 10000 milliseconds
error: no se han podido sincronizar todas las bases de datos (error de la biblioteca de descarga)

So, searching in the forums I found this entry https://forum.manjaro.org/t/i-get-connection-timed-out-on-all-mirrors/40784 (Srry, I can't use links), I decided to use the solution of the same but I got the problem persists

[loki@Loki-Code ~]$ sudo pacman-mirrors --country all --api --protocols all --set-branch stable && sudo pacman -Syyu
[sudo] contraseña para loki: 
::INFO Branch in config is changed
::INFO Protocols in config is changed
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  ..... Austria        : https://mirror.easyname.at/manjaro/
  ..... Austria        : https://mirror.alwyzon.net/manjaro/
  ..... Brazil         : https://manjaro.c3sl.ufpr.br/
  ..... Bulgaria       : https://manjaro.ipacct.com/manjaro/
  ..... Canada         : https://osmirror.org/manjaro/
  ..... Chile          : http://manjaro.dcc.uchile.cl/
  ..... Costa_Rica     : https://mirrors.ucr.ac.cr/manjaro/
  ..... Finland        : https://manjaro.kyberorg.fi/
  ..... Germany        : https://mirror.alpix.eu/manjaro/
  ..... Germany        : https://ftp.gwdg.de/pub/linux/manjaro/
  ..... Germany        : https://manjaro.moson.eu/
  ..... Germany        : https://mirror.moson.org/manjaro/
  ..... Global         : https://mirrors.manjaro.org/repo/
  ..... Hungary        : https://quantum-mirror.hu/mirrors/pub/manjaro/
  ..... Japan          : http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/
  ..... MENA           : https://mirror.arvancloud.com/manjaro/
  ..... Netherlands    : https://manjaro.mirrors.lavatech.top/
  ..... Netherlands    : https://ftp.nluug.nl/pub/os/Linux/distr/manjaro/
  ..... Netherlands    : https://mirror.koddos.net/manjaro/
  ..... Poland         : https://repo.skni.umcs.pl/manjaro/
  ..... Portugal       : https://mirrors.up.pt/pub/manjaro/
  ..... Sweden         : https://ftp.lysator.liu.se/pub/manjaro/
  ..... Sweden         : https://mirror.zetup.net/manjaro/
  ..... Switzerland    : https://mirror.init7.net/manjaro/
  ..... Ukraine        : http://mirrors.colocall.net/manjaro/
  ..... Ukraine        : https://fastmirror.pp.ua/manjaro/
  ..... United_Kingdom : https://mirror.cyberhost.uk/sites/manjaro/
  ..... United_Kingdom : http://manjaro.mirrors.uk2.net/
  ..... United_States  : https://repo.ialab.dsu.edu/manjaro/
  ..... United_States  : https://mirror2.sandyriver.net/pub/manjaro/
  ..... United_States  : https://mirror.math.princeton.edu/pub/manjaro/
::INFO Writing mirror list
::Global          : https://mirrors.manjaro.org/repo/stable
::United_States   : https://mirror2.sandyriver.net/pub/manjaro/stable
::United_States   : https://repo.ialab.dsu.edu/manjaro/stable
::Canada          : https://osmirror.org/manjaro/stable
::United_Kingdom  : http://manjaro.mirrors.uk2.net/stable
::Chile           : http://manjaro.dcc.uchile.cl/stable
::Costa_Rica      : https://mirrors.ucr.ac.cr/manjaro/stable
::United_States   : https://mirror.math.princeton.edu/pub/manjaro/stable
::Ukraine         : http://mirrors.colocall.net/manjaro/stable
::United_Kingdom  : https://mirror.cyberhost.uk/sites/manjaro/stable
::Netherlands     : https://manjaro.mirrors.lavatech.top/stable
::Germany         : https://mirror.moson.org/manjaro/stable
::Germany         : https://manjaro.moson.eu/stable
::Switzerland     : https://mirror.init7.net/manjaro/stable
::Austria         : https://mirror.alwyzon.net/manjaro/stable
::Austria         : https://mirror.easyname.at/manjaro/stable
::Netherlands     : https://mirror.koddos.net/manjaro/stable
::Finland         : https://manjaro.kyberorg.fi/stable
::Ukraine         : https://fastmirror.pp.ua/manjaro/stable
::Sweden          : https://ftp.lysator.liu.se/pub/manjaro/stable
::MENA            : https://mirror.arvancloud.com/manjaro/stable
::Germany         : https://mirror.alpix.eu/manjaro/stable
::Japan           : http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/stable
::Germany         : https://ftp.gwdg.de/pub/linux/manjaro/stable
::Sweden          : https://mirror.zetup.net/manjaro/stable
::Netherlands     : https://ftp.nluug.nl/pub/os/Linux/distr/manjaro/stable
::Poland          : https://repo.skni.umcs.pl/manjaro/stable
::Hungary         : https://quantum-mirror.hu/mirrors/pub/manjaro/stable
::Brazil          : https://manjaro.c3sl.ufpr.br/stable
::Bulgaria        : https://manjaro.ipacct.com/manjaro/stable
::Portugal        : https://mirrors.up.pt/pub/manjaro/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Sincronizando las bases de datos de los paquetes...
 no se pudo descargar core.db
error: no se pudo obtener el archivo «core.db» desde mirrors.manjaro.org: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror2.sandyriver.net: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde repo.ialab.dsu.edu: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde osmirror.org: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde manjaro.mirrors.uk2.net: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde manjaro.dcc.uchile.cl: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirrors.ucr.ac.cr: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.math.princeton.edu: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirrors.colocall.net: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.cyberhost.uk: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde manjaro.mirrors.lavatech.top: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.moson.org: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde manjaro.moson.eu: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.init7.net: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.alwyzon.net: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.easyname.at: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.koddos.net: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde manjaro.kyberorg.fi: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde fastmirror.pp.ua: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde ftp.lysator.liu.se: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.arvancloud.com: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.alpix.eu: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde ftp.tsukuba.wide.ad.jp: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde ftp.gwdg.de: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.zetup.net: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde ftp.nluug.nl: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde repo.skni.umcs.pl: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde quantum-mirror.hu: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde manjaro.c3sl.ufpr.br: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde manjaro.ipacct.com: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirrors.up.pt: Resolving timed out after 10000 milliseconds
error: no se han podido sincronizar todas las bases de datos (error de la biblioteca de descarga)

I don`t know what to do

You have dns configuration issues - the message indicates that resolving a hostname to and IP address times out.

This indicates incorrect DNS setup or a general network connection error.

Try:

sudo pacman-mirrors -f
sudo pacman -Syyu

I don’t think the connection in general is the problem since the web browser works perfectly, by any chance do you have a link to guide me with the DNS problem?

I’m relatively new to Linux in general

the error persists

If network is not the issue - try the following command

  1. it uses api mode to set the url
  2. it set the mirror url to CDN77 global mirror
  3. it sync database and run a full system sync
sudo pacman-mirrors --api --url https://mirrors.manjaro.org/repo
sudo pacman -Syu
loki@Loki-Code ~]$ sudo pacman-mirrors --api --url https://mirrors.manjaro.org/repo
[sudo] contraseña para loki: 
::INFO Writing mirror list
::BUILDMIRROR     : https://mirrors.manjaro.org/repo/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
[loki@Loki-Code ~]$ sudo pacman -Syu
:: Sincronizando las bases de datos de los paquetes...
 no se pudo descargar core.db
error: no se pudo obtener el archivo «core.db» desde mirrors.manjaro.org: Resolving timed out after 10000 milliseconds
error: no se han podido sincronizar todas las bases de datos (error de la biblioteca de descarga)

Well maybe it is a network problem, I’m gonna follow your guide

It seems to only be the CDN mirrors

Try another mirror - I checked the below mirror - if this doesn’t work it is a location issue - most likely a routing issue. You could try using the –continent argument which will then only take mirror from countries within your geo continent.

sudo pacman-mirrors --api --url https://manjaro.moson.eu/
sudo pacman -Syyu

The lucassymons.net mirror is also available

sudo pacman-mirrors --api --url https://manjaro.lucassymons.net/

Same error in both mirrors, and I can’t install the network tools because

advertencia: database file for 'core' does not exist (use '-Sy' to download)
advertencia: database file for 'extra' does not exist (use '-Sy' to download)
advertencia: database file for 'community' does not exist (use '-Sy' to download)
advertencia: database file for 'multilib' does not exist (use '-Sy' to download)

-Sy throws the same error

Don’t use just -S when installing - always use -Syu ane in the case of changing mirror - force the database download with a doubled y

sudo pacman -Syyu

Check if there is a mirror in your country

pacman-mirrors --country-list

Then create a mirrorlist with a single mirror from your country - but use --interactive and --random to avoid testing the mirrors

sudo pacman-mirrors --continent --no-status  --method random --interactive

If this cannot create a connection to a mirror - I don’t know what can.

[loki@Loki-Code ~]$ sudo pacman-mirrors --continent --no-status --random --interactive
Version 4.23.2
USAGE:
 pacman-mirrors [-h] [-f [NUMBER]] [-i [-d]] [-m METHOD] [--status]
		[-c COUNTRY [COUNTRY...] | [--geoip] | [--continent]]
		[-l] [-lc] [-q] [-t SECONDS] [-v] [-n]
		[--api] [-S/-B BRANCH] [-p PREFIX]
			[-P PROTO [PROTO...]] [-R] [-U URL]
pacman-mirrors: error: unrecognized arguments: --random
[loki@Loki-Code ~]$ sudo pacman-mirrors --continent --no-status
[sudo] contraseña para loki: 
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO User generated mirror list
::------------------------------------------------------------
::INFO Custom mirror file saved: /var/lib/pacman-mirrors/custom-mirrors.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  ..... Brazil         : https://manjaro.c3sl.ufpr.br/
  ..... Chile          : http://manjaro.dcc.uchile.cl/
  ..... Chile          : https://mirror.ufro.cl/manjaro/
  ..... Chile          : https://mirror1.cl.netactuate.com/manjaro/
  ..... Uruguay        : https://manjaro.repo.cure.edu.uy/
::INFO Writing mirror list
::Chile           : http://manjaro.dcc.uchile.cl/stable
::Chile           : https://mirror1.cl.netactuate.com/manjaro/stable
::Brazil          : https://manjaro.c3sl.ufpr.br/stable
::Chile           : https://mirror.ufro.cl/manjaro/stable
::Uruguay         : https://manjaro.repo.cure.edu.uy/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
::WARNING You have chosen to override the status for your system branch.
::WARNING Servers in the mirror list might not be up-to-date.
[loki@Loki-Code ~]$ sudo pacman -Syyu
:: Sincronizando las bases de datos de los paquetes...
 no se pudo descargar core.db
error: no se pudo obtener el archivo «core.db» desde manjaro.dcc.uchile.cl: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror1.cl.netactuate.com: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde manjaro.c3sl.ufpr.br: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde mirror.ufro.cl: Resolving timed out after 10000 milliseconds
error: no se pudo obtener el archivo «core.db» desde manjaro.repo.cure.edu.uy: Resolving timed out after 10000 milliseconds
error: no se han podido sincronizar todas las bases de datos (error de la biblioteca de descarga)

same error :face_exhaling:

:thinking:

try using this command:
sudo pacman -Fy
and:
sudo pacman -Syyu

if it doesnt work try:
sudo pacman -Syy
sudo pacman -Syu

I’m pretty sure it must be some kind of connection problem, but not sure what it is. Disable IPv6 can come to my mind for example.

But in an old thread there was a similar problem, and the solution was to enable an alternative download method:

Enable this in /etc/pacman.conf:

XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

Yes, this works. Thank you so much :grinning:

While that may be true, and it solved your immediate issue - there is still the question of why the default doesn’t work in your case - but does in every other instance.

Are you living in a geofenced country?
Are you proxying your connection in any way?

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