You are not logged in.
Pages: 1
Can someone please get me a copy of mirrorlist because the rankmirrors script blanked mine and now I can't use pacman.
Thanks.
Offline
why not reinstalling pacman-mirrorlist, fetching from a mirror like ftp.archlinux.org or better from mir.archlinux.org
Last edited by wonder (2009-05-23 16:08:25)
Give what you have. To someone, it may be better than you dare to think.
Offline
#
# Arch Linux repository mirrorlist
# Generated on 2009-05-09
#
# Australia
#Server = ftp://mirror.aarnet.edu.au/pub/archlinux/$repo/os/x86_64
#Server = http://mirror.aarnet.edu.au/pub/archlinux/$repo/os/x86_64
#Server = ftp://ftp.iinet.net.au/pub/archlinux/$repo/os/x86_64
#Server = http://ftp.iinet.net.au/pub/archlinux/$repo/os/x86_64
#Server = ftp://mirror.internode.on.net/pub/archlinux/$repo/os/x86_64
#Server = http://mirror.internode.on.net/pub/archlinux/$repo/os/x86_64
#Server = ftp://mirror.pacific.net.au/linux/archlinux/$repo/os/x86_64
#Server = http://mirror.pacific.net.au/linux/archlinux/$repo/os/x86_64
# Austria
#Server = ftp://gd.tuwien.ac.at/opsys/linux/archlinux/$repo/os/x86_64
#Server = http://gd.tuwien.ac.at/opsys/linux/archlinux/$repo/os/x86_64
# Belgium
#Server = ftp://ftp.belnet.be/packages/archlinux/$repo/os/x86_64
#Server = http://ftp.belnet.be/mirror/archlinux.org/$repo/os/x86_64
# Brazil
#Server = http://archlinux.c3sl.ufpr.br/$repo/os/x86_64
#Server = ftp://archlinux.c3sl.ufpr.br/archlinux/$repo/os/x86_64
#Server = ftp://ftp.las.ic.unicamp.br/pub/archlinux/$repo/os/x86_64
#Server = http://www.las.ic.unicamp.br/pub/archlinux/$repo/os/x86_64
# Bulgaria
#Server = http://archlinux.igor.onlinedirect.bg/$repo/os/x86_64
# Canada
#Server = ftp://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/x86_64
#Server = http://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/x86_64
#Server = ftp://mirrors.portafixe.com/archlinux/$repo/os/x86_64
#Server = http://mirrors.portafixe.com/archlinux/$repo/os/x86_64
# Chile
#Server = ftp://mirror.archlinux.cl/$repo/os/x86_64
# Czech Republic
#Server = ftp://ftp.sh.cvut.cz/MIRRORS/arch/$repo/os/x86_64
#Server = http://ftp.sh.cvut.cz/MIRRORS/arch/$repo/os/x86_64
# Denmark
#Server = ftp://ftp.klid.dk/archlinux/$repo/os/x86_64
# Estonia
#Server = http://ftp.estpak.ee/pub/archlinux/$repo/os/x86_64
#Server = ftp://ftp.estpak.ee/pub/archlinux/$repo/os/x86_64
# France
#Server = http://mir.archlinux.fr/$repo/os/x86_64
#Server = ftp://mir1.archlinuxfr.org/archlinux/$repo/os/x86_64
#Server = http://mir1.archlinuxfr.org/archlinux/$repo/os/x86_64
#Server = ftp://mir2.archlinuxfr.org/archlinux/$repo/os/x86_64
#Server = http://mir2.archlinuxfr.org/archlinux/$repo/os/x86_64
#Server = http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/$repo/os/x86_64
#Server = ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/$repo/os/x86_64
#Server = ftp://ftp.free.fr/mirrors/ftp.archlinux.org/$repo/os/x86_64
#Server = ftp://ftp.rez-gif.supelec.fr/Linux/archlinux/$repo/os/x86_64
# Germany
#Server = ftp://ftp.archlinuxppc.org/x86_64/$repo/os/i686
#Server = ftp://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/x86_64
#Server = http://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/x86_64
#Server = ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/x86_64
#Server = http://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/x86_64
#Server = ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/$repo/os/x86_64
#Server = http://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/$repo/os/x86_64
#Server = ftp://mirrors.igprolin-online.org/archlinux/$repo/os/x86_64
#Server = ftp://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/$repo/os/x86_64
#Server = http://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/$repo/os/x86_64
#Server = ftp://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/x86_64
#Server = http://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/x86_64
#Server = ftp://ftp.uni-bayreuth.de/pub/linux/archlinux/$repo/os/x86_64
#Server = http://ftp.uni-bayreuth.de/linux/archlinux/$repo/os/x86_64
#Server = ftp://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/x86_64
#Server = http://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/x86_64
#Server = ftp://ftp.wh-stuttgart.net/archlinux/$repo/os/x86_64
# Great Britain
#Server = ftp://mirror.lividpenguin.com/pub/archlinux/$repo/os/x86_64
#Server = http://mirror.lividpenguin.com/pub/archlinux/$repo/os/x86_64
#Server = http://www.mirrorservice.org/sites/ftp.archlinux.org/$repo/os/x86_64
#Server = ftp://mirrors.uk2.net/pub/archlinux/$repo/os/x86_64
#Server = http://archlinux.mirrors.uk2.net/$repo/os/x86_64
# Greece
#Server = ftp://ftp.ntua.gr/pub/linux/archlinux/$repo/os/x86_64
#Server = http://ftp.ntua.gr/pub/linux/archlinux/$repo/os/x86_64
# Hungary
#Server = ftp://ftp.mfa.kfki.hu/pub/mirrors/ftp.archlinux.org/$repo/os/x86_64
# Indonesia
#Server = ftp://archlinux.cbn.net.id/pub/archlinux/$repo/os/x86_64
#Server = http://archlinux.cbn.net.id/$repo/os/x86_64
#Server = ftp://mirror.unej.ac.id/archlinux/$repo/os/x86_64
#Server = http://mirror.unej.ac.id/archlinux/$repo/os/x86_64
# Ireland
#Server = ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/$repo/os/x86_64
#Server = http://ftp.heanet.ie/mirrors/ftp.archlinux.org/$repo/os/x86_64
# Israel
#Server = http://mirror.isoc.org.il/pub/archlinux/$repo/os/x86_64
# Italy
#Server = ftp://mi.mirror.garr.it/mirrors/archlinux/$repo/os/x86_64
#Server = http://mi.mirror.garr.it/mirrors/archlinux/$repo/os/x86_64
# Japan
#Server = ftp://ftp.yz.yamagata-u.ac.jp/pub/linux/archlinux/$repo/os/x86_64
#Server = http://ftp.yz.yamagata-u.ac.jp/pub/linux/archlinux/$repo/os/x86_64
# Lithuania
#Server = ftp://atviras.lt/archmirror/$repo/os/x86_64
#Server = http://atviras.lt/archmirror/$repo/os/x86_64
# Netherlands
#Server = ftp://ftp.nluug.nl/pub/metalab/distributions/archlinux/$repo/os/x86_64
#Server = http://ftp.nluug.nl/pub/metalab/distributions/archlinux/$repo/os/x86_64
#Server = ftp://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/$repo/os/x86_64
#Server = http://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/$repo/os/x86_64
# Norway
#Server = ftp://mirror.archlinux.no/$repo/os/x86_64
#Server = http://mirror.archlinux.no/$repo/os/x86_64
#Server = ftp://jane.tihlde.org/pub/archlinux/$repo/os/x86_64
#Server = http://jane.tihlde.org/pub/archlinux/$repo/os/x86_64
# Poland
#Server = ftp://mirror.icis.pcz.pl/archlinux/$repo/os/x86_64
#Server = ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/x86_64
#Server = http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/x86_64
#Server = ftp://ftp.pwsz.elblag.pl/pub/linux/distributions/archlinux/$repo/os/x86_64
#Server = http://ftp.pwsz.elblag.pl/pub/linux/distributions/archlinux/$repo/os/x86_64
#Server = http://unix.net.pl/archlinux.org/$repo/os/x86_64
# Portugal
#Server = http://cesium.di.uminho.pt/pub/archlinux/$repo/os/x86_64
#Server = ftp://cesium.di.uminho.pt/pub/archlinux/$repo/os/x86_64
#Server = http://darkstar.ist.utl.pt/archlinux/$repo/os/x86_64
#Server = ftp://ftp.nux.ipb.pt/pub/dists/archlinux/$repo/os/x86_64
#Server = http://ftp.nux.ipb.pt/pub/dists/archlinux/$repo/os/x86_64
# Romania
#Server = ftp://ftp.iasi.roedu.net/mirrors/archlinux.org/$repo/os/x86_64
#Server = http://ftp.iasi.roedu.net/mirrors/archlinux.org/$repo/os/x86_64
# Russia
#Server = http://archlinux.freeside.ru/$repo/os/x86_64
#Server = http://mirror.yandex.ru/archlinux/$repo/os/x86_64
#Server = ftp://mirror.yandex.ru/archlinux/$repo/os/x86_64
# Sweden
#Server = http://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/x86_64
#Server = ftp://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/x86_64
#Server = http://ftp.gigabit.nu/$repo/os/x86_64
#Server = ftp://ftp.gigabit.nu/$repo/os/x86_64
# Switzerland
#Server = ftp://archlinux.puzzle.ch/$repo/os/x86_64
#Server = http://archlinux.puzzle.ch/$repo/os/x86_64
# Turkey
#Server = ftp://ftp.linux.org.tr/archlinux/$repo/os/x86_64
# Ukraine
#Server = ftp://archlinux.hell.org.ua/archlinux/$repo/os/x86_64
#Server = http://archlinux.hell.org.ua/archlinux/$repo/os/x86_64
#Server = http://ftp.linux.kiev.ua/pub/Linux/ArchLinux/$repo/os/x86_64
#Server = ftp://ftp.linux.kiev.ua/pub/Linux/ArchLinux/$repo/os/x86_64
# United States
#Server = http://mirror.archlinux.com.ve/$repo/os/x86_64
#Server = http://archlinux.unixheads.org/$repo/os/x86_64
#Server = http://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/x86_64
#Server = ftp://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/x86_64
#Server = http://mirrors.easynews.com/linux/archlinux/$repo/os/x86_64
#Server = ftp://mirrors.easynews.com/linux/archlinux/$repo/os/x86_64
#Server = http://mirrors.gigenet.com/archlinux/$repo/os/x86_64
#Server = http://www.gtlib.gatech.edu/pub/linux/distributions/archlinux/$repo/os/x86_64
#Server = ftp://ftp.gtlib.gatech.edu/pub/linux/distributions/archlinux/$repo/os/x86_64
#Server = ftp://mirrors.hosef.org/archlinux/$repo/os/x86_64
#Server = http://mirrors.hosef.org/archlinux/$repo/os/x86_64
#Server = http://distro.ibiblio.org/pub/linux/distributions/archlinux/$repo/os/x86_64
#Server = ftp://ibiblio.org/pub/linux/distributions/archlinux/$repo/os/x86_64
#Server = ftp://locke.suu.edu/linux/dist/archlinux/$repo/os/x86_64
#Server = ftp://mirror.rit.edu/archlinux/$repo/os/x86_64
#Server = http://mirror.rit.edu/archlinux/$repo/os/x86_64
#Server = http://schlunix.org/archlinux/$repo/os/x86_64
#Server = http://mirror.sourceshare.org/archlinux/$repo/os/x86_64
#Server = http://archlinux.umflint.edu/$repo/os/x86_64
#Server = http://mirror.umoss.org/archlinux/$repo/os/x86_64
# Venezuela
#Server = http://mirror2.archlinux.com.ve/$repo/os/x86_64
# Vietnam
#Server = ftp://ftp.indochinalinux.com/archlinux/$repo/os/x86_64
#Server = ftp://202.78.230.5/archlinux/$repo/os/x86_64
#Server = ftp://mirror-fpt-telecom.fpt.net/archlinux/$repo/os/x86_64
#Server = http://mirror-fpt-telecom.fpt.net/archlinux/$repo/os/x86_64
oz
Offline
Rankmirrors probably did not "blank" your file. I'd be willing to bet that you tried to open mirrorlist with rankmirrors and then redirect the output back to the same file. This is a no-no.
Offline
wonder, ozar: Thanks.
fflarex: Yes that is what I did, and it blanked it.
Offline
Oops... hope the 64-bit mirrorlist works for you. Didn't think about that when I posted it!
oz
Offline
I went and looked this up because it was bothering me today. Here is what you would do to open a file for both reading AND writing:
4<>/etc/pacman.d/mirrorlist rankmirrors /dev/fd/4 >&4
where you can replace 4 with another number if you want (except that /dev/fd/[0-3] already existed on my system). This syntax is skimmed over or simply omitted from most documentation and tutorials on using the shell, but I can think of a lot of times where it would have been useful if I had known it before.
Last edited by fflarex (2009-05-23 22:27:04)
Offline
ozar: Lucky you said that; I just did pacman -Syu and it came up with loads of errors so I cancelled. (I use i686).
fflarex: That's interresting, do you think it's possible for the script to be changed to do this automatically?
Offline
i just don't understand why you don't want to do it with pacman
mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist_backup
pacman -U ftp://ftp.archlinux.org/core/os/i686/pacman-mirrorlist-20090509-1-i686.pkg.tar.gz
is simple
Give what you have. To someone, it may be better than you dare to think.
Offline
Of course it would be possible for the script to do it automatically. But I think it was probably a design choice not to overwrite the file by default. Maybe a new option (possibly -i, --in-place like sed's option) would be a good idea, since I've done this exact same thing before.
Rankmirrors is written in python though, and I wouldn't know how to make the changes.
Last edited by fflarex (2009-05-23 22:37:05)
Offline
wonder: Because I didn't know the full url of the package :S
fflarex: Why would it be intentionally designed to blank the file instead of overwritting it? I think it's more likely they didn't include such a feature the make the script simpler. I will attempt to make the changes myself.
Offline
No no no, you misunderstood. It isn't the script that blanked the file. YOU blanked the file through a misuse of the shell. As a general rule of thumb, you cannot use the same file for input and output simultaneously in a shell command (unless the program is specifically written to do it). The one-liner I gave above circumvents this problem though.
Offline
When I try to overwrite an existing file with other programs (such as pngcrush) it aborts with an error; rankmirrors just blanked the file.
Offline
Oh I understand now, I just tried the 4<>/etc/pacman.d/mirrorlist rankmirrors /dev/fd/4 >&4 thing and it worked.
I will try to add a -i option to the script.
Offline
I still think it's rankmirrors fault for blanking my file though.
Offline
Why would it be intentionally designed to blank the file instead of overwritting it?
rankmirrors - read a list of mirrors from a file and rank them by speed
rankmirrors is designed to "do what it says on the tin" i.e. rank mirrors by speed. The only writing it does is to stdout.
Offline
The tin doesn't say blank my file though does it?
Offline
No, you said to blank your file. If you're going to complain about anything, complain about bash, not rankmirrors. Also you could add
set -o noclobber
to your ~/.bashrc.
Last edited by SamC (2009-05-24 19:48:06)
Offline
OK it's bash'es fault.
Thanks for the set -o noclobber idea.
Last edited by xdnxgxe9 (2009-05-24 21:29:49)
Offline
Pages: 1