On 26/03/09 21:41, Eduard Bloch wrote:
Weird. Ok, what does $ sh -x /var/lib/dpkg/info/apt-cacher-ng.postinst configure
: root; sh -x /var/lib/dpkg/info/apt-cacher-ng.postinst configure + NAME=apt-cacher-ng + CDIR=/var/cache/apt-cacher-ng + LDIR=/var/log/apt-cacher-ng + SLIST=/etc/apt/sources.list + CFG=/etc/apt-cacher-ng + '[' configure = configure ']' + adduser --quiet --system --group --no-create-home --home /var/cache/apt-cacher-ng apt-cacher-ng + for x in '$CDIR' '$LDIR' + '[' '!' -d /var/cache/apt-cacher-ng ']' + for x in '$CDIR' '$LDIR' + '[' '!' -d /var/log/apt-cacher-ng ']' + 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:' + read a b c + echo ftp://ftp.fr.debian.org/debian/ + grep -q '^http:' + read a b c + echo ftp://ftp.fr.debian.org/debian/ + grep -q '^http:' + read a b c + echo ftp://ftp.fr.debian.org/debian/ + grep -q '^http:' + read a b c + echo ftp://ftp.fr.debian.org/debian/ + grep -q '^http:' + read a b c + echo ftp://ftp.fr.debian.org/debian/ + grep -q '^http:' + read a b c + echo http://security.debian.org/ + grep -q '^http:' + '[' u = '' ']' ++ echo http://security.debian.org/ ++ sed -e 's,http://,,; s, ftp://,,; s,/debian$,,; s,/debian/$,,; ' + site=security.debian.org/ + test -n security.debian.org/ + zgrep -q 'Site: security.debian.org/$' /usr/lib/apt-cacher-ng/deb_mirrors.gz + read a b c + echo http://security.debian.org/ + grep -q '^http:' + '[' u = '' ']' ++ echo http://security.debian.org/ ++ sed -e 's,http://,,; s, ftp://,,; s,/debian$,,; s,/debian/$,,; ' + site=security.debian.org/ + test -n security.debian.org/ + zgrep -q 'Site: security.debian.org/$' /usr/lib/apt-cacher-ng/deb_mirrors.gz + read a b c + gen_mirror_list /etc/apt-cacher-ng/backends_ubuntu u + test -r /etc/apt/sources.list + test -s /etc/apt-cacher-ng/backends_ubuntu + 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:' + read a b c + echo ftp://ftp.fr.debian.org/debian/ + grep -q '^http:' + read a b c + echo ftp://ftp.fr.debian.org/debian/ + grep -q '^http:' + read a b c + echo ftp://ftp.fr.debian.org/debian/ + grep -q '^http:' + read a b c + echo ftp://ftp.fr.debian.org/debian/ + grep -q '^http:' + read a b c + echo ftp://ftp.fr.debian.org/debian/ + grep -q '^http:' + read a b c + echo http://security.debian.org/ + grep -q '^http:' + '[' u = u ']' + grep http://security.debian.org/ /usr/lib/apt-cacher-ng/ubuntu_mirrors + true + read a b c + echo http://security.debian.org/ + grep -q '^http:' + '[' u = u ']' + grep http://security.debian.org/ /usr/lib/apt-cacher-ng/ubuntu_mirrors + true + read a b c + rm -f /etc/apt-cacher-ng/in.acng /etc/apt-cacher-ng/mount.acng ++ dpkg-statoverride --list /etc/apt-cacher-ng/security.conf + '[' -z 'apt-cacher-ng apt-cacher-ng 600 /etc/apt-cacher-ng/security.conf' ']' + '[' -x /etc/init.d/apt-cacher-ng ']' + update-rc.d apt-cacher-ng defaults ++ which invoke-rc.d + '[' -x /usr/sbin/invoke-rc.d ']' + invoke-rc.d apt-cacher-ng start Starting apt-cacher-ng: apt-cacher-ngCouldn't bind socket: Address already in use No socket(s) could be create/prepared. Check the network, check or unset the BindAddress directive. failed! : root; ls -l /etc/apt-cacher-ng/*back* -rw-r--r-- 1 root root 0 2009-03-25 09:11 /etc/apt-cacher-ng/backends_debian -rw-r--r-- 1 root root 0 2009-03-24 23:05 /etc/apt-cacher-ng/backends_ubuntu After a (very) quick read, the script seems to be grepping for http but I use ftp. regards Stuart -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

