On 25/03/09 00:15, Eduard Bloch wrote:

hostname and as last resort it assumes that "debrep" itself is the
hostname.

This is the source of the confusion I think. I certainly didn't understand the error concerning 
"debrep". Is there any situation where "debrep" would be the correct hostname to 
use? I think not. If the internal cache-to-weblocation resolver cannot find a hostname then it should 
stop with an error message explaining the problem. This would be a lot clearer than continuing and give 
a strange error message about debrep" not being found.

To check if the assumption is true, please run $ find /var/cache/apt-cacher-ng/debrep/dists/ -name '*Packages.bz2.head' | xargs grep X-Orig | cut -f2 -d' '
and probably there are some invalid URLs (without hostname) in that
list.

:; find /var/cache/apt-cacher-ng/debrep/dists/ -name '*Packages.bz2.head' | 
xargs grep X-Orig | cut -f2 -d' '
http://ftp.fr.debian.org//debian/dists/squeeze/main/binary-i386/Packages.bz2
http://ftp.debian.org//debian/dists/lenny/main/binary-i386/Packages.bz2
http://ftp.fr.debian.org//debian/dists/sid/main/binary-i386/Packages.bz2

explanation why it does not work for you. I just tried to reproduce:

let me try again

: root; > /etc/apt-cacher-ng/backends_debian
: root; dpkg-reconfigure apt-cacher-ng
Stopping apt-cacher-ng: apt-cacher-ng.
Starting apt-cacher-ng: apt-cacher-ng.
: root; grep fr.deb /etc/apt-cacher-ng/backends_debian
: root; zgrep ftp.fr.debian.org /usr/lib/apt-cacher-ng/deb_mirrors.gz | sort -u
Archive-upstream: ftp.fr.debian.org
Site: ftp.fr.debian.org
: root; sed -ne 's/#.*//' -e /./p /etc/apt/sources.list
deb ftp://ftp.fr.debian.org/debian/ unstable main contrib
deb-src ftp://ftp.fr.debian.org/debian/ unstable main contrib
deb ftp://ftp.fr.debian.org/debian/ testing main contrib
deb-src ftp://ftp.fr.debian.org/debian/ testing main contrib
deb-src ftp://ftp.fr.debian.org/debian/ stable main contrib
deb ftp://ftp.fr.debian.org/debian/ stable main contrib
deb http://security.debian.org/ testing/updates main contrib
deb http://security.debian.org/ stable/updates main contrib
: root; ls -l /etc/apt-cacher-ng/backends_debian
-rw-r--r-- 1 root root 0 2009-03-25 09:11 /etc/apt-cacher-ng/backends_debian

Okay... I changed the code for the next release to print the name from
the failed lookup immediately, this should make the problem
identification easier.

As explained above, I would prefer another solution.

thanks
Stuart




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to