You are not logged in.

#1 2011-01-24 11:51:20

red123
Member
Registered: 2011-01-06
Posts: 8

reflector

I tried to do reflector -c %own% -f 6 > mirrorlist on a new Arch install and for some odd reason I am only getting 2 mirrors. Is anyone getting this issue? I live in the US

Offline

#2 2011-01-24 12:52:57

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

Re: reflector

Any particular two?

Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch
Server = ftp://mirrors.kernel.org/archlinux/$repo/os/$arch

?

It used to work https://bbs.archlinux.org/viewtopic.php … 63#p833763
I have no idea why it's not working now:

[karol@black ~]$ reflector --country %own% -o mirrorlist
[karol@black ~]$ cat mirrorlist 
# 2011-01-24 13:56 
# generated by reflector
Server = ftp://mirrors.kernel.org/archlinux/$repo/os/$arch
Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch

Last edited by karol (2011-01-24 12:55:48)

Offline

#3 2011-01-24 16:32:06

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: reflector

Specifying the country seems to work so it must be related to the %own% variable.

Offline

#4 2011-01-24 21:03:15

red123
Member
Registered: 2011-01-06
Posts: 8

Re: reflector

Yeah, it returned those two for me as well. I tried doing -c United States and I got the same two mirrors.

Offline

#5 2011-01-24 21:16:08

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

Re: reflector

red123 wrote:

Yeah, it returned those two for me as well. I tried doing -c United States and I got the same two mirrors.

You're doing it wrong! :-)

[karol@black ~]$ reflector --country United States -o mirrorlist
[karol@black ~]$ cat mirrorlist 
# 2011-01-24 22:17 
# generated by reflector
Server = ftp://mirrors.kernel.org/archlinux/$repo/os/$arch
Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch
[karol@black ~]$ reflector --country "United States" -o mirrorlist
[karol@black ~]$ cat mirrorlist 
# 2011-01-24 22:17 
# generated by reflector
Server = ftp://mirror.rit.edu/archlinux/$repo/os/$arch
Server = http://mirror.rit.edu/archlinux/$repo/os/$arch
Server = ftp://ftp.archlinux.org/$repo/os/$arch
Server = ftp://mirrors.kernel.org/archlinux/$repo/os/$arch
Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch
Server = ftp://ftp.gtlib.gatech.edu/pub/linux/distributions/archlinux/$repo/os/$arch
Server = http://www.gtlib.gatech.edu/pub/linux/distributions/archlinux/$repo/os/$arch
Server = http://mirrors.cat.pdx.edu/archlinux/$repo/os/$arch
Server = ftp://locke.suu.edu/linux/dist/archlinux/$repo/os/$arch
Server = http://mirror.ece.vt.edu/archlinux/$repo/os/$arch
Server = ftp://mirrors.hosef.org/archlinux/$repo/os/$arch
Server = http://mirrors.hosef.org/archlinux/$repo/os/$arch
Server = http://hpc.arc.georgetown.edu/mirror/archlinux/$repo/os/$arch
Server = http://mirror.yellowfiber.net/archlinux/$repo/os/$arch
Server = ftp://mirrors.xmission.com/archlinux/$repo/os/$arch
Server = http://schlunix.org/archlinux/$repo/os/$arch
Server = ftp://ftp.osuosl.org/pub/archlinux/$repo/os/$arch
Server = http://mirrors.xmission.com/archlinux/$repo/os/$arch
Server = http://ftp.osuosl.org/pub/archlinux/$repo/os/$arch
Server = http://distro.ibiblio.org/pub/linux/distributions/archlinux/$repo/os/$arch
Server = ftp://lug.mtu.edu/archlinux/ftpfull/$repo/os/$arch
Server = http://lug.mtu.edu/archlinux/ftpfull/$repo/os/$arch

The space between 'United' and 'States' messes things up.

Quoting "%own%" doesn't help.


Can someone remind me how does reflector tries to guess what to use instead of '%own%'? Where is it set?

Last edited by karol (2011-01-24 21:19:48)

Offline

#6 2011-01-24 22:13:30

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: reflector

"%own%" is no longer supported, at least not for now.

The JSON interface for retrieving mirror status at archlinux.de has been deprecated in favor of the new one at archlinux.org. The old interface included country code information along with the request which allowed reflector to guess the user's country. That information is not available from the new interface.

Sorry for any confusion. I forgot to update the reflector package itself when I pushed the new version of perl-xyne-arch to [community].



*edit*
I've updated reflector. It now sorts the mirror list by country (unless the list is ranked by rankmirrors).

I've also added a new option to list available countries: "--list-countries".

You can get the latest version from the repo on my site. I'll push the update to [community] after a bit more testing.

Last edited by Xyne (2011-01-24 23:45:07)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#7 2011-01-25 01:02:24

red123
Member
Registered: 2011-01-06
Posts: 8

Re: reflector

glad to hear, Xyne smile

Offline

Board footer

Powered by FluxBB