[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#699310: apt: mirror method doesn't seem to work



Package: apt
Version: 0.9.7.7
Severity: normal

I set up the (undocumented) mirror method in my sources.list:

deb mirror://localhost/debian/mirrors.txt sid main

and created /var/www/debian/mirrors.txt with a handful of mirrors

it seemed to work, it pulled a mirror from that list when I did an apt-get update.

However, when I tested a fail-over scenario, it just didn't work at all. I
changed my /etc/hosts to send one of the mirrors to an RFC1918 address that I
knew wasn't in use and then did an apt-get update and it gave an error. Worse
was that when it did manage to fall through to one of the other mirrors, it
hit an ipv6 one and got stuck in an infinate loop.

i've got an automated setup that has a sources.list with http.debian.net
configured, and if that fails for whatever reason it will move an alternate
sources.list with ftp.debian.org entries in place and try that, but that is
rather crude, I was hoping there would be a better fail-over mechanism that
I could use, but it seems like mirror:// isn't quite there either.


-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt depends on:
ii  debian-archive-keyring  2012.4
ii  gnupg                   1.4.12-7
ii  libapt-pkg4.12          0.9.7.7
ii  libc6                   2.13-38
ii  libgcc1                 1:4.7.2-5
ii  libstdc++6              4.7.2-5

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc     <none>
ii  aptitude    0.6.8.2-1
ii  dpkg-dev    1.16.9
ii  python-apt  0.8.8.1
ii  xz-utils    5.1.1alpha+20120614-2

-- no debconf information


Reply to: