Package: apt-cacher Version: 1.6.12 Severity: important Hi,
I'm working on some d-i patches, and in order to avoid having to wait for the installer all the time while it downloads udebs or the base system, I installed apt-cacher on my laptop, so that the virtualbox instances where the installer was running could fetch their udebs from the apt-cacher cache. Originally I tried to run it from apache, and preseeded '10.0.2.2' as the hostname of my mirror. Unfortunately that didn't work; the apt-cacher error.log contains the following as a result of that attempt: Mon Jul 4 08:42:25 2011|info [11577]: Unable to connect to 10.0.2.2 Mon Jul 4 08:44:19 2011|info [22940]: Unable to connect to 10.0.2.2 Mon Jul 4 08:45:35 2011|info [22952]: Unable to connect to 10.0.2.2 For reference, 10.0.2.2 is the IP address that virtualbox hands to guest instances as their default route. Using it will reach you the host OS, but the host OS itself is not aware of that fact; virtualbox will do NAT for guest machines. So instead I added a name to my local DNS server that points to 10.0.2.2, and added it to the host OS' /etc/hosts, so that both the guest OS (through 10.0.2.2) and the host OS (through 127.0.0.1) have a common name. That didn't fix it either, and this time nothing appeared in the apt-cacher logfiles. The apache logfiles, however, showed this: ==> /var/log/apache2/error.log <== [Mon Jul 04 09:07:05 2011] [error] [client 127.0.0.1] File does not exist: /var/www/ftp.be.debian.org ==> /var/log/apache2/access.log <== 127.0.0.1 - - [04/Jul/2011:09:07:05 +0200] "GET /ftp.be.debian.org/debian/dists/wheezy/Release HTTP/1.1" 404 513 "-" "apt-cacher/1.6.12 libcurl/7.21.6 GnuTLS/2.10.5 zlib/1.2.3.4 libidn/1.22 librtmp/2.3" 127.0.0.1 - - [04/Jul/2011:09:07:05 +0200] "GET /apt-cacher/ftp.be.debian.org/debian/dists/wheezy/Release HTTP/1.1" 404 180 "-" "Wget" This is quite obviously wrong, but I don't know what exactly is going wrong. Using daemon mode instead fixes the problem, but I prefer not having to do that as I don't do d-i development _all_ the time... -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.39-2-amd64 (SMP w/4 CPU cores) Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages apt-cacher depends on: ii ed 1.4-3 The classic UNIX line editor ii libdigest-sha1-perl 2.13-2 NIST SHA-1 message digest algorith ii libfilesys-diskspace-perl 0.05-13 fetch filesystem size and usage in ii libfreezethaw-perl 0.5001-1 module to serialize and deserializ pn libio-compress-bzip2-perl <none> (no description available) ii libio-interface-perl 1.05-2+b1 socket methods to get/set interfac ii libwww-curl-perl 4.15-1+b1 Perl bindings to libcurl ii libwww-perl 6.02-1 simple and consistent interface to ii perl [libio-compress-zlib-per 5.12.4-1 Larry Wall's Practical Extraction Versions of packages apt-cacher recommends: ii libberkeleydb-perl 0.48-1 use Berkeley DB 4 databases from P Versions of packages apt-cacher suggests: pn libio-socket-inet6-perl <none> (no description available) -- Configuration Files: /etc/default/apt-cacher changed [not included] -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

