Package: approx Version: 5.5-1 Severity: important Dear Maintainer,
I have used approx for years to service a variety of Debian and Ubuntu computers. Recently I was trying to upgrade several computers and I noticed that I was downloading the packages off the net repeatedly and my rather pathetic DSL speed instead of getting files from my local server's cache at 11+ MBps. apt seems to imply that approx is working properly, e.g. Get:1 http://server:9999/security/ jessie/updates/main perl amd64 5.20.2-3+deb8u10 I enabled verbose logging in /etc/approx/approx.conf /var/log/syslog seems to report that some of the files are being delivered from the cache and some are not. My experience is that the vast majority are not being cached, while some packages download at normal fast LAN speed. Here is a snippet of the syslog: May 4 20:41:22 server approx[28108]: close cache debian/pool/main/l/linux/linux-image-4.9.0-0.bpo.6-amd64_4.9.82-1+deb9u3~bpo8+1_amd64.deb May 4 20:41:22 server approx[28108]: setting mtime to Tue, 17 Apr 2018 15:28:42 GMT May 4 20:41:22 server approx[28108]: http://mirrors.kernel.org/debian//pool/main/l/linux/linux-image-4.9.0-0.bpo.6-amd64_4.9.82-1+deb9u3~bpo8+1_amd64.deb: delivered May 4 20:41:22 server approx[28108]: Connection from 192.168.1.101 port 34662 May 4 20:41:22 server approx[28108]: Request: GET /debian/pool/main/l/linux-latest/linux-image-amd64_4.9%2b80%2bdeb9u4%7ebpo8%2b1_amd64.deb May 4 20:41:22 server approx[28108]: Host: server:9999 May 4 20:41:22 server approx[28108]: User-Agent: Debian APT-HTTP/1.3 (1.0.9.8.4) May 4 20:41:22 server approx[28108]: => cache miss May 4 20:41:22 server approx[28108]: Command: /usr/bin/curl --fail --silent --header "Pragma: no-cache" --include "http://mirrors.kernel.org/debian//pool/main/l/linux-latest/linux-image-amd64_4.9+80+deb9u4~bpo8+1_amd64.deb" May 4 20:41:23 server approx[28108]: HTTP/1.1 200 OK May 4 20:41:23 server approx[28108]: Server: nginx May 4 20:41:23 server approx[28108]: Date: Sat, 05 May 2018 03:41:22 GMT May 4 20:41:23 server approx[28108]: Content-Type: application/octet-stream May 4 20:41:23 server approx[28108]: Content-Length: 7332 May 4 20:41:23 server approx[28108]: Last-Modified: Sun, 22 Apr 2018 14:59:59 GMT May 4 20:41:23 server approx[28108]: Accept-Ranges: bytes May 4 20:41:23 server approx[28108]: X-Frame-Options: DENY May 4 20:41:23 server approx[28108]: X-Content-Type-Options: nosniff May 4 20:41:23 server approx[28108]: open cache debian/pool/main/l/linux-latest/linux-image-amd64_4.9+80+deb9u4~bpo8+1_amd64.deb May 4 20:41:23 server approx[28108]: Proxy response May 4 20:41:23 server approx[28108]: Content-Type: text/plain May 4 20:41:23 server approx[28108]: Status: 200 May 4 20:41:23 server approx[28108]: Last-Modified: Sun, 22 Apr 2018 14:59:59 GMT May 4 20:41:23 server approx[28108]: Content-Length: 7332 May 4 20:41:23 server approx[28108]: close cache debian/pool/main/l/linux-latest/linux-image-amd64_4.9+80+deb9u4~bpo8+1_amd64.deb May 4 20:41:23 server approx[28108]: setting mtime to Sun, 22 Apr 2018 14:59:59 GMT May 4 20:41:23 server approx[28108]: http://mirrors.kernel.org/debian//pool/main/l/linux-latest/linux-image-amd64_4.9+80+deb9u4~bpo8+1_amd64.deb: delivered May 4 20:41:23 server approx[28108]: Connection from 192.168.1.101 port 34662 May 4 20:41:23 server approx[28108]: Request: GET /security/pool/updates/main/l/linux/linux-libc-dev_3.16.56-1_amd64.deb May 4 20:41:23 server approx[28108]: Host: server:9999 May 4 20:41:23 server approx[28108]: User-Agent: Debian APT-HTTP/1.3 (1.0.9.8.4) May 4 20:41:23 server approx[28108]: => delivering from cache May 4 20:41:23 server approx[28108]: Local response May 4 20:41:23 server approx[28108]: Last-Modified: Mon, 30 Apr 2018 08:57:06 GMT May 4 20:41:23 server approx[28108]: Content-Type: text/plain May 4 20:41:23 server approx[28108]: Content-Length: 1096066 May 4 20:41:23 server approx[28108]: Connection from 192.168.1.101 port 34662 May 4 20:41:23 server approx[28108]: Request: GET /security/pool/updates/main/m/mysql-5.5/mysql-server-core-5.5_5.5.60-0%2bdeb8u1_amd64.deb May 4 20:41:23 server approx[28108]: Host: server:9999 May 4 20:41:23 server approx[28108]: User-Agent: Debian APT-HTTP/1.3 (1.0.9.8.4) May 4 20:41:23 server approx[28108]: => delivering from cache May 4 20:41:23 server approx[28108]: Local response May 4 20:41:23 server approx[28108]: Last-Modified: Thu, 19 Apr 2018 10:28:18 GMT May 4 20:41:23 server approx[28108]: Content-Type: text/plain May 4 20:41:23 server approx[28108]: Content-Length: 3416750 May 4 20:41:23 server approx[28108]: Connection from 192.168.1.101 port 34662 May 4 20:41:23 server approx[28108]: Request: GET /palemoon8/./amd64/palemoon_27.9.0%7erepack-1_amd64.deb May 4 20:41:23 server approx[28108]: Host: server:9999 May 4 20:41:23 server approx[28108]: User-Agent: Debian APT-HTTP/1.3 (1.0.9.8.4) May 4 20:41:23 server approx[28108]: => delivering from cache May 4 20:41:23 server approx[28108]: Local response May 4 20:41:23 server approx[28108]: Last-Modified: Tue, 17 Apr 2018 18:16:16 GMT May 4 20:41:23 server approx[28108]: Content-Type: text/plain May 4 20:41:23 server approx[28108]: Content-Length: 36643284 I did a approx-gc, which took quite a long time, since I have been using approx for years. After running it approx seemed to work fine for a few minutes, but when I connected another machine later it was back to its old tricks. Also, the approx-gc did not seem to remove all of the old packages in the cache, it reduced its total size by about 10%, but there were plenty of old packages that are no longer available online that are still in the cache, e.g. /var/cache/approx/ubuntu/pool/universe/x/xubuntu-docs/xubuntu-docs_12.04.2_all.deb /var/cache/approx/ubuntu/pool/universe/x/xubuntu-docs/xubuntu-docs_14.04.1_all.deb /var/cache/approx/ubuntu/pool/universe/x/xubuntu-docs/xubuntu-docs_15.10.1_all.deb /var/cache/approx/ubuntu/pool/universe/x/xubuntu-docs/xubuntu-docs_16.04.4_all.deb /var/cache/approx/ubuntu/pool/universe/x/xubuntu-docs/xubuntu-docs_16.04_all.deb /var/cache/approx/ubuntu/pool/universe/x/xubuntu-docs/xubuntu-docs_18.04.1_all.deb It seems like the 12.04 and 15.10 should have been purged, since precise & wily have not been supported or available for download for some time. My server is running old-stable jessie, & I guess I could upgrade it to current stable stretch, it seems like there are a number of dependencies, so I probably couldn't just download a more recent version and do a "dpkg -i newerversion.deb" Would the maintainer (Eric Cooper) recommend a server upgrade to solve the problem? Or is there something else I can try? *** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? * What exactly did you do (or not do) that was effective (or ineffective)? * What was the outcome of this action? * What outcome did you expect instead? *** End of the template - remove these template lines *** -- System Information: Debian Release: 8.10 APT prefers oldstable-updates APT policy: (500, 'oldstable-updates'), (500, 'oldstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.9.0-0.bpo.5-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages approx depends on: ii adduser 3.113+nmu3 ii bzip2 1.0.6-7+b3 ii curl 7.38.0-4+deb8u10 ii debconf [debconf-2.0] 1.5.56+deb8u1 ii libc6 2.19-18+deb8u10 ii libpcre3 2:8.35-3.3+deb8u4 ii openbsd-inetd [inet-superserver] 0.20140418-2 ii rsyslog [system-log-daemon] 8.4.2-1+deb8u2 ii update-inetd 4.43 ii xz-utils 5.1.1alpha+20120614-2+b3 approx recommends no packages. Versions of packages approx suggests: pn libconfig-model-approx-perl <none> -- Configuration Files: /etc/approx/approx.conf changed: $verbose true $debug true debian http://mirrors.kernel.org/debian/ security http://security.debian.org/debian-security/ multimedia http://www.deb-multimedia.org/ # added ejb aptosid http://oscar.aptosid.com/debian/ liquorix http://liquorix.net/debian/ mint http://packages.linuxmint.com/ mintextra http://extra.linuxmint.com mintdeb http://debian.linuxmint.com/incoming mintdebsec http://debian.linuxmint.com/incoming/security mintdebmult http://debian.linuxmint.com/incoming/multimedia debian-ice http://mozilla.debian.net/ vivaldi http://repo.vivaldi.com/stable/deb/ palemoon8 http://download.opensuse.org/repositories/home:/stevenpusser/Debian_8.0/ palemoon9 http://download.opensuse.org/repositories/home:/stevenpusser/Debian_9.0/ raspb http://mirrordirector.raspbian.org/raspbian/ raspi http://archive.raspberrypi.org/debian/ ubuntu http://us.archive.ubuntu.com/ubuntu/ ub-security http://security.ubuntu.com/ubuntu/ partner http://archive.canonical.com/ubuntu ubvbox http://download.virtualbox.org/virtualbox/debian ubzilla http://jaist.dl.sourceforge.net/project/ubuntuzilla/mozilla/apt/ torist http://deb.torproject.org/torproject.org/ nilar http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu handbrake http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu netrunnerp http://ppa.launchpad.net/netrunner-os/enigma-1312-packages/ubuntu netrunner http://ppa.launchpad.net/netrunner-os/enigma-1312/ubuntu netrunneru http://ppa.launchpad.net/netrunner-os/enigma-1312-updates/ubuntu netrunnerpt http://ppa.launchpad.net/netrunner-os/frontier-14-packages/ubuntu netrunnert http://ppa.launchpad.net/netrunner-os/frontier-14/ubuntu netrunnerut http://ppa.launchpad.net/netrunner-os/frontier-14-updates/ubuntu netrunnerw http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ opera https://deb.opera.com/opera-stable/ teamview http://linux.teamviewer.com/deb -- debconf information: approx/port: 9999