You are not logged in.

#1 2009-11-20 05:51:51

BewtsDaoc
Member
Registered: 2009-11-20
Posts: 8

Error involving rankmirrors command

Hello, I am new to Archlinux, and I have been reading off of your wiki to install. This is my 3rd time reinstalling and I always get to the same problem. I have made it to this part and  have done everything on this, including editing the mirrorlist.

Build a mirrorlist using the rankmirrors script

/usr/bin/rankmirrors is a python script which will attempt to detect the mirrors which are closest to the installation machine based on the mirrors specified in /etc/pacman.d/mirrorlist. Faster mirrors will dramatically improve pacman performance, and the overall Arch Linux experience. This script may be run periodically, especially if the chosen mirrors provide inconsistent throughput and/or updates.

First, use pacman to install python:

# pacman -Sy python 

cd to the /etc/pacman.d/ directory:

# cd /etc/pacman.d

Backup the existing /etc/pacman.d/mirrorlist:

# cp mirrorlist mirrorlist.backup

Edit mirrorlist.backup and uncomment all mirrors on the same continent or within geographical proximity to test with rankmirrors.

# nano mirrorlist.backup

Run the script against the mirrorlist.backup with the -n switch and redirect output to a new /etc/pacman.d/mirrorlist file:

# rankmirrors -n 6 mirrorlist.backup > mirrorlist

-n 6: rank the 6 fastest mirrors

Every time i get to the rankmirrors command it gives the following error:

: :  Synchronizing package databases...
error: failed to update core (no servers configured for repository)
error: failed to update extra (no servers configured for repository)
error: failed to update community (no servers configured for repository)

From what i can tell, I think it is a problem with /etc/pacman.conf but I'm no expert, so I am going to you guys for help. If anyone has any information on this please let me know. Thank you

Offline

#2 2009-11-20 05:52:33

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

Re: Error involving rankmirrors command

Uncomment some mirrors in /etc/pacman.d/mirrorlist

Offline

#3 2009-11-20 05:55:29

BewtsDaoc
Member
Registered: 2009-11-20
Posts: 8

Re: Error involving rankmirrors command

as of right now i have every mirror in the United States uncommented

Offline

#4 2009-11-20 06:01:11

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

Re: Error involving rankmirrors command

Post your /etc/pacman.conf and /etc/pacman.d/mirrorlist files

Offline

#5 2009-11-20 06:10:36

BewtsDaoc
Member
Registered: 2009-11-20
Posts: 8

Re: Error involving rankmirrors command

/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
HoldPkg     = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst   = pacman
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/curl %u > %o

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options (all disabled by default)
#NoPassiveFtp
#UseSyslog
#ShowSize
#UseDelta
#TotalDownload
#
# 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
#
# 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.
# 

# Testing is disabled by default.  To enable, uncomment the following
# two 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]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist 

[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs

and okay... this may sound wierd... but when i went to my laptop to read off the code /etc/pacman.d/mirrorlist is completely gone... just a blank file. I'm guessing i fudged on the # cp mirrorlist.backup or something... My friend who turned me on to Arch linux just told me that it'd be better off if I do # pacman -Syu python instead of just doing -Sy. Anyone else have any other ideas?

Offline

#6 2009-11-20 06:13:43

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

Re: Error involving rankmirrors command

OK, you are going to need that mirrorlist file.  It is in the pacman-mirrorlist package.   So check you cache for the package (/var/cache/pacman/pkg), otherwise download a coy directly from a mirror and install it with "pacman -U <file>"

Offline

#7 2009-11-20 06:23:01

BewtsDaoc
Member
Registered: 2009-11-20
Posts: 8

Re: Error involving rankmirrors command

Edit: Thank you very much, I have resolved my problem. Instead of finding the best mirrors i just chose 5 or 6 to use myself and it is working just fine. I reinstalled from scratch to get my files back and im having much better luck this time.

Last edited by BewtsDaoc (2009-11-20 07:28:10)

Offline

#8 2009-11-24 16:47:54

tzepu
Member
Registered: 2009-11-24
Posts: 2

Re: Error involving rankmirrors command

i discovered that lack of concentration ruines things
i have a clean install of archlinux but i managed somehow to ruin the mirrorlist (including the backup)(while changing rankmirrors  from the guide it hanged several times) an now all i have are two blank files
is there any way to get another copy of mirrorlist (or to add some mirrors manually) to get things rolling again?
i tried to add manually some mirrors but i thing  i make a mistake there (if my photographic memory(as poor as it is) tells me, i need to place something else before the url
please point me to where to begin
best regards
L.E. allan please explain what do you mean (if you want to give me a more detailed way to do so)

Last edited by tzepu (2009-11-24 17:26:24)

Offline

#9 2009-11-24 17:17:45

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: Error involving rankmirrors command

tzepu wrote:

i discovered that lack of concentration ruines things
i have a clean install of archlinux but i managed somehow to ruin the mirrorlist (including the backup)(while changing rankmirrors  from the guide it hanged several times) an now all i have are two blank files
is there any way to get another copy of mirrorlist (or to add some mirrors manually) to get things rolling again?
i tried to add manually some mirrors but i thing  i make a mistake there (if my photographic memory(as poor as it is) tells me, i need to place something else before the url
please point me to where to begin
best regards

Sent you a mail that contains my mirrorlist file.

Offline

#10 2009-11-24 17:27:49

tzepu
Member
Registered: 2009-11-24
Posts: 2

Re: Error involving rankmirrors command

thanks
you made my day

Offline

#11 2010-05-04 15:06:22

ancient_2010us
Member
Registered: 2010-05-04
Posts: 2

Re: Error involving rankmirrors command

Arch linux 2.6.30-Arch
[root@VMware-Arch ~]# pacman -Syu
Synchronizing package data bases.......
error: failed to update core (no servers  configured for repository)
error: failed to update extra(no servers configured for repository)
error: failed to update community (no servers configured for repository)
failed to synchronize any databases
[root@VMware-Arch ~]#

After installing the core a clean install ...... I tried add additional packages .... As you can see above that's the message  I constantly get ....

Offline

#12 2010-05-04 18:16:44

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Error involving rankmirrors command

Uncomment some repos in your /etc/pacman.d/mirrorlist file.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB