hi Eduard

   * Added ftp: as possible pattern when looking for good mirrors in
     sources.list for backend definition creation (now really closes: #520824)

It still doesn't work for me.

: root; rm  /etc/apt-cacher-ng/backends_*
: root; dpkg-reconfigure apt-cacher-ng
Stopping apt-cacher-ng: apt-cacher-ng.
Starting apt-cacher-ng: apt-cacher-ng.
: root; ls -l  /etc/apt-cacher-ng/backends_*
-rw-r--r-- 1 root root 0 2009-03-29 13:46 /etc/apt-cacher-ng/backends_ubuntu

:; dpkg -s apt-cacher-ng | grep Version
Version: 0.3.6-1

If I run /var/lib/dpkg/info/apt-cacher-ng.postinst by hand I see

+ gen_mirror_list /etc/apt-cacher-ng/backends_debian
+ test -r /etc/apt/sources.list
+ test -s /etc/apt-cacher-ng/backends_debian
+ true
+ grep '^deb' '/etc/apt/sources.list.d/*' /etc/apt/sources.list
+ read a b c
+ echo ftp://ftp.fr.debian.org/debian/
+ grep -q '^\(http\|ftp\):'
+ '[' u = '' ']'
++ echo ftp://ftp.fr.debian.org/debian/
++ sed -e 's,http://,,; s, ftp://,,; s,/debian$,,; s,/debian/$,,; '
+ site=ftp://ftp.fr.debian.org
+ test -n ftp://ftp.fr.debian.org
+ zgrep -q 'Site: ftp://ftp.fr.debian.org$' 
/usr/lib/apt-cacher-ng/deb_mirrors.gz

"ftp.fr.debian.org" is in deb_mirrors.gz but without the "ftp://";.

:;  zgrep ftp.fr.debian.org /usr/lib/apt-cacher-ng/deb_mirrors.gz | grep -i site
Site: ftp.fr.debian.org

I think that there is an extra space, in "s, ftp", in the line "site=$( echo $b | 
sed -e 's,http://,,; s, ftp://,,; s,/debian$,,; s,/debian/$,,; ' )" in 
/var/lib/dpkg/info/apt-cacher-ng.postinst

If I remove this space and rerun "dpkg-reconfigure apt-cacher-ng" then 
/etc/apt-cacher-ng/backends_debian is no longer empty

:; cat /etc/apt-cacher-ng/backends_debian ftp://ftp.fr.debian.org/debian/
ftp://ftp.fr.debian.org/debian/
ftp://ftp.fr.debian.org/debian/
ftp://ftp.fr.debian.org/debian/
ftp://ftp.fr.debian.org/debian/
ftp://ftp.fr.debian.org/debian/

That is probably not the correct solution to the problem as even after this 
change /etc/cron.daily/apt-cacher-ng still doesn't work.
: root; sh /etc/cron.daily/apt-cacher-ng Error(s) occured while updating volatile index files for apt-cacher-ng.
Please visit http://kooka:3142/acng-report.html to rerun the
expiration manually or check the error message(s) in the current log file(s).

Check error messages in /var/log/apt-cacher-ng/maint_1237087862.log 
/var/log/apt-cacher-ng/maint_1237174261.log 
/var/log/apt-cacher-ng/maint_1237260662.log 
/var/log/apt-cacher-ng/maint_1237326404.log 
/var/log/apt-cacher-ng/maint_1237326689.log 
/var/log/apt-cacher-ng/maint_1237326728.log 
/var/log/apt-cacher-ng/maint_1237326800.log 
/var/log/apt-cacher-ng/maint_1237347061.log 
/var/log/apt-cacher-ng/maint_1237433462.log 
/var/log/apt-cacher-ng/maint_1237519861.log 
/var/log/apt-cacher-ng/maint_1237606261.log 
/var/log/apt-cacher-ng/maint_1237692661.log 
/var/log/apt-cacher-ng/maint_1237755299.log 
/var/log/apt-cacher-ng/maint_1237756232.log 
/var/log/apt-cacher-ng/maint_1237779181.log 
/var/log/apt-cacher-ng/maint_1237865581.log 
/var/log/apt-cacher-ng/maint_1237932129.log 
/var/log/apt-cacher-ng/maint_1237932529.log 
/var/log/apt-cacher-ng/maint_1237932625.log 
/var/log/apt-cacher-ng/maint_1237951981.log 
/var/log/apt-cacher-ng/maint_1238038382.log 
/var/log/apt-cacher-ng/maint_1238124782.lo
g /var/log/apt-cacher-ng/maint_1238211182.log 
/var/log/apt-cacher-ng/maint_1238293982.log 
/var/log/apt-cacher-ng/maint_1238327763.log 
/var/log/apt-cacher-ng/maint_1238327897.log

None of these log files are interesting (and are difficult to read because they 
contain HTML) but /var/log/apt-cacher-ng/apt-cacher.err ends with

Sun Mar 29 13:56:03 2009|Error resolving : 503 DNS error for hostname : Name or 
service not known

thanks
Stuart



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to