From: Gettert, W. <Wol...@fc...> - 2004-03-09 13:44:40
|
Hi Michael, thanks. No it was something else. The problem was in sources.list. For some reason which I don't know yet. apt-get has proplem with resolving tim (which is the name of the computer) but it can resolve tim.xxx.de. Even if I put the IP address of the computer into the sources.list it does not work. deb http://tim.xxx.de:9999/debian/ <---OK deb http://192.168.60.24:9999/debian/ <---- does not work deb http://tim:9999/debian/ <---- does not work Wolfram -----Original Message----- From: micha [mailto:mic...@gm...] Sent: Dienstag, 9. Marz 2004 12:51 Cc: apt...@li... Subject: Re: [Apt-proxy-users] 503 Service Unavailable etc/hosts.allow / deny ? example: lan0 (machines puck, piro only) and local (woody) /etc/hosts.allow: << apt-proxy: woody,piro.lan0,puck.lan0 /usr/sbin/apt-proxy -l /var/log/apt-proxy.log >> /etc/hosts.deny: << # All services will be denied for non-lan0 requests (except talk): ALL EXCEPT in.talkd: ALL EXCEPT piro.lan0,puck.lan0:DENY # secure: # ALL:DENY >> Gettert, Wolfram wrote: > 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. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Apt-proxy-users mailing list Apt...@li... https://lists.sourceforge.net/lists/listinfo/apt-proxy-users |