From: Gettert, W. <Wol...@fc...> - 2004-03-04 09:59:12
|
Hi, I try to run apt-proxy in our company. I was successfully at home with the same configuration file (apt-proxy.conf). I use apt-proxy 1.3.6. When I try to run apt-get update on the local machine I get: tim:/etc/apt-proxy# apt-get update Err http://tim stable/main Packages 503 Service Unavailable Ign http://tim stable/main Release Err http://tim stable/non-free Packages 503 Service Unavailable Ign http://tim stable/non-free Release Err http://tim stable/contrib Packages 503 Service Unavailable Ign http://tim stable/contrib Release Failed to fetch http://tim:9999/debian/dists/stable/main/binary-i386/Packages.gz 503 Service Unavailable Failed to fetch http://tim:9999/debian/dists/stable/non-free/binary-i386/Packages.gz 503 Service Unavailable Failed to fetch http://tim:9999/debian/dists/stable/contrib/binary-i386/Packages.gz 503 Service Unavailable Reading Package Lists... Done W: Couldn't stat source package list http://tim stable/main Packages (/var/lib/apt/lists/tim:9999_debian_dists_stable_main_binary-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list http://tim stable/non-free Packages (/var/lib/apt/lists/tim:9999_debian_dists_stable_non-free_binary-i386_Packag es) - stat (2 No such file or directory) W: Couldn't stat source package list http://tim stable/contrib Packages (/var/lib/apt/lists/tim:9999_debian_dists_stable_contrib_binary-i386_Package s) - stat (2 No such file or directory) W: You may want to run apt-get update to correct these problems E: Some index files failed to download, they have been ignored, or old ones used instead. My /var/cache/apt-proxy.log is empty after this call of apt-get update. The permissions of the log file are OK. -rw-r--r-- 1 aptproxy root 0 Mar 4 10:41 /var/log/apt-proxy.log The permissions of /var/cache/apt-proxy are OK as well: tim:/etc/apt-proxy# ls -al /var/cache/apt-proxy/ total 48 drwxr-xr-x 5 aptproxy root 4096 Mar 3 15:08 . drwxr-xr-x 9 root root 4096 Jan 29 08:45 .. drwxr-xr-x 2 aptproxy nogroup 4096 Mar 3 11:04 debian drwxr-xr-x 2 aptproxy nogroup 4096 Mar 3 11:04 non-US drwxr-xr-x 2 aptproxy nogroup 4096 Mar 3 11:11 security -rw-r--r-- 1 root root 24857 Mar 3 15:07 test My /etc/apt/sources.list looks like this deb http://tim:9999/debian/ stable main non-free contrib My /etc/inetd.conf looks contains this line ----------8<---- 9999 stream tcp nowait.400 aptproxy /usr/sbin/tcpd /usr/sbin/apt-proxy -l /var/log/apt-proxy.log ----------8<---- My /etc/apt-proxy/apt-proxy.conf looks like this (please tell me if you want to have the complete file) ----------8<---- add_backend /debian/ \ $APT_PROXY_CACHE/debian/ \ http://ftp.us.debian.org/debian/ \ http://ftp.de.debian.org/debian/ \ http://ftp.uk.debian.org/debian/ \ ftp.us.debian.org::debian/ ----------8<---- I can successfully get the files with wget like this: wget http://ftp.de.debian.org/debian/dists/stable/Release I can successfully connect to apt-proxy with telnet tim 9999 I see all the things I type in the telnet session in /var/log/apt-proxy.log But apt-get update still fails. Has anyone a good idea what I am doing wrong. Thanks for any help. Wolfram |