Package: approx Version: 4.0-1 Severity: normal Hi,
I'm trying to use approx in offline mode to provide me with packages for VMs and such while I'm off 'net. Unfortunately, approx seems to have a strange problem where it will return "304 Not Modified" for files that exist, rather than just sucking it up and sending me the file. The same request, made while online, works fine. The file does already exist in the cache. I tried taking a look at the source, but I'm not really Ocaml literate. As best I can determine, it's taking curl's "I don't know what's going on here" response as "not found", as evidenced by the log: Apr 21 16:49:39 strumpet approx: Connection from 172.31.62.137 port 41298 Apr 21 16:49:39 strumpet approx: Request /debian/pool/main/a/apt-setup/apt-mirror-setup_0.40_all.udeb Apr 21 16:49:39 strumpet approx: Host: 172.31.62.254:9999 Apr 21 16:49:39 strumpet approx: User-Agent: Wget Apr 21 16:49:39 strumpet approx: Connection: close Apr 21 16:49:39 strumpet approx: => cache miss Apr 21 16:49:39 strumpet approx: Command: /usr/bin/curl --fail --silent --header "Pragma: no-cache" --include "http://mirror.internode.on.net/pub/debian/pool/main/a/apt-setup/apt-mirror-setup_0.40_all.udeb" Apr 21 16:49:39 strumpet approx: http://mirror.internode.on.net/pub/debian/pool/main/a/apt-setup/apt-mirror-setup_0.40_all.udeb: not found Apr 21 16:49:40 strumpet approx: Nethttpd: Broken pipe And yet also making that response mean "Not Modified" to the wget instance. The problem is easy to test: find a file you've got in the cache, down all your network interfaces, and then try to wget that file out of the cache. If there's any other info needed (strace, tcpdump, whatever) please let me know. - Matt -- System Information: Debian Release: 5.0 APT prefers stable APT policy: (990, 'stable'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages approx depends on: ii adduser 3.110 add and remove users and groups ii bzip2 1.0.5-1 high-quality block-sorting file co ii curl 7.18.2-8lenny2 Get a file from an HTTP, HTTPS or ii debconf [debconf-2.0] 1.5.24 Debian configuration management sy ii libc6 2.7-18 GNU C Library: Shared libraries ii libpcre3 7.8-2 Perl 5 Compatible Regular Expressi ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip ii openbsd-inetd [inet-super 0.20080125-2 The OpenBSD Internet Superserver ii update-inetd 4.31 inetd configuration file updater approx recommends no packages. approx suggests no packages. -- debconf information excluded -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org