You are not logged in.

#1 2010-05-27 07:57:54

Nichollan
Member
From: Stavanger, Norway
Registered: 2010-05-18
Posts: 110

[Solved] Pacman repeatedly queries unavailable mirror

Below is the output from a recent use of pacman.

While the web server at the second-level domain archlinux.no is clearly running, the associated package mirror doesn't appear to be accessible to my pacman command at the moment. The reason for the paired queries to archlinux.no is probably because I've uncommented both the FTP and HTTP entry in my /etc/pacman.d/mirrorlist file, which I now see merely makes pacman use more time if the mirror happens to be unavailable. Pacman finally finds <strike>the Danish</strike> some other mirror available, but then starts all over again quering the Norwegian mirror which it repeatedly fails to access – each time taking about 15 seconds.

I wonder if I could configure pacman so that it rather queries the first mirror that happens to be available, or if this is a part of pacman that has a significant potential for improvement.

Sorry to nag if this hardly makes priority.

ivar@ivar-laptop> sudo pacman -Syu                                                                                                                /etc/pacman.d
:: Synchronizing package databases...
error: failed retrieving file 'core.db.tar.gz' from mirror.archlinux.no : Network is unreachable
error: failed retrieving file 'core.db.tar.gz' from mirror.archlinux.no : Network is unreachable
 core is up to date
error: failed retrieving file 'extra.db.tar.gz' from mirror.archlinux.no : Network is unreachable
error: failed retrieving file 'extra.db.tar.gz' from mirror.archlinux.no : Network is unreachable
 extra                    449.9K  329.0K/s 00:00:01 [######] 100%
error: failed retrieving file 'community.db.tar.gz' from mirror.archlinux.no : Network is unreachable
error: failed retrieving file 'community.db.tar.gz' from mirror.archlinux.no : Network is unreachable
 community                371.1K  342.9K/s 00:00:01 [######] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (5): gnome-icon-theme-2.30.3-1  libmodplug-0.8.8.1-1  
             mpd-0.15.9-6  nss-3.12.6-3  xterm-258-2  

Total Download Size:    9.98 MB
Total Installed Size:   21.57 MB

Proceed with installation? [Y/n] Y
:: Retrieving packages from extra...
error: failed retrieving file 'gnome-icon-theme-2.30.3-1-any.pkg.tar.xz' from mirror.archlinux.no : Network is unreachable
error: failed retrieving file 'gnome-icon-theme-2.30.3-1-any.pkg.tar.xz' from mirror.archlinux.no : Network is unreachable
 gnome-icon-theme-2....     8.1M  228.3K/s 00:00:36 [######] 100%
error: failed retrieving file 'libmodplug-0.8.8.1-1-x86_64.pkg.tar.xz' from mirror.archlinux.no : Network is unreachable
error: failed retrieving file 'libmodplug-0.8.8.1-1-x86_64.pkg.tar.xz' from mirror.archlinux.no : Network is unreachable
 libmodplug-0.8.8.1-...   151.8K  160.4K/s 00:00:01 [######] 100%
error: failed retrieving file 'mpd-0.15.9-6-x86_64.pkg.tar.xz' from mirror.archlinux.no : Network is unreachable
error: failed retrieving file 'mpd-0.15.9-6-x86_64.pkg.tar.xz' from mirror.archlinux.no : Network is unreachable
 mpd-0.15.9-6-x86_64...   163.0K  269.0K/s 00:00:01 [######] 100%
error: failed retrieving file 'nss-3.12.6-3-x86_64.pkg.tar.xz' from mirror.archlinux.no : Network is unreachable
error: failed retrieving file 'nss-3.12.6-3-x86_64.pkg.tar.xz' from mirror.archlinux.no : Network is unreachable
 nss-3.12.6-3-x86_64...  1386.8K  244.8K/s 00:00:06 [######] 100%
error: failed retrieving file 'xterm-258-2-x86_64.pkg.tar.xz' from mirror.archlinux.no : Network is unreachable
error: failed retrieving file 'xterm-258-2-x86_64.pkg.tar.xz' from mirror.archlinux.no : Network is unreachable
 xterm-258-2-x86_64....   217.6K  247.4K/s 00:00:01 [######] 100%
checking package integrity...
(5/5) checking for file conflicts                   [######] 100%
(1/5) upgrading gnome-icon-theme                    [######] 100%
(2/5) upgrading libmodplug                          [######] 100%
(3/5) upgrading mpd                                 [######] 100%
(4/5) upgrading nss                                 [######] 100%
(5/5) upgrading xterm                               [######] 100%

Last edited by Nichollan (2010-05-27 12:34:59)

Offline

#2 2010-05-27 11:04:59

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [Solved] Pacman repeatedly queries unavailable mirror

Do you have it multiple times in you /etc/pacman.d/mirrorlist file

Offline

#3 2010-05-27 11:30:17

Nichollan
Member
From: Stavanger, Norway
Registered: 2010-05-18
Posts: 110

Re: [Solved] Pacman repeatedly queries unavailable mirror

These are the uncommented lines in the mirrorlist file as it was at the time I used pacman, in their respective sequence:

Server = ftp://ftp.klid.dk/archlinux/$repo/os/x86_64
Server = ftp://mirror.archlinux.no/$repo/os/x86_64
Server = http://mirror.archlinux.no/$repo/os/x86_64
Server = ftp://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/x86_64
Server = http://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/x86_64
Server = ftp://ftp.gigabit.nu/$repo/os/x86_64
Server = http://ftp.gigabit.nu/$repo/os/x86_64

As said, I suspected that the reason why queries to mirror.archlinux.no came in pairs is because I have both the FTP and HTTP entry uncommented. What bothers me is that it continues to query mirrors that it doesn't manage to access.

Last edited by Nichollan (2010-05-27 11:38:16)

Offline

#4 2010-05-27 12:07:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Pacman repeatedly queries unavailable mirror

> it continues to query mirrors that it doesn't manage to access
Well, they're in the mirrorlist.

Maybe you can use reflector:  'pacman -S reflector'

Offline

#5 2010-05-27 12:33:45

Nichollan
Member
From: Stavanger, Norway
Registered: 2010-05-18
Posts: 110

Re: [Solved] Pacman repeatedly queries unavailable mirror

That appears to be what I was looking for, thanks!

Offline

Board footer

Powered by FluxBB