I have exactly the same problem: After updating from Lenny to Squeeze the file
/etc/default/approx is silently gone and approx doesn't work anymore.
If I don't use approx and enter the direct destinations in
/etc/apt/sources.list, apt-get is working fine (if I export the http_proxy
first).
I tried the two workarounds described above. First I created a file
/usr/sbin/approx_start with the following content:
#!/bin/sh
export http_proxy=http://DOMAIN\\username:[email protected]:8080/
exec /usr/sbin/approx
And modified the line in /etc/inetd.conf to:
9999 stream tcp nowait approx /usr/sbin/approx_start
/usr/sbin/approx_start
After this I restarted inetd.
But "apt-get update" still can't connect. I only get errors like this (german
localization):
Ign http://127.0.0.1 squeeze Release.gpg
Fehl http://127.0.0.1 squeeze/main Packages 301 Moved Permanently
....
I added the lines
$verbose true
$debug true
to the file /etc/approx/approx.conf to get any idea what the problem may be,
but nothing shows up in the logfiles. It's if approx isn't even started.
I also tried the other workaround and entered the line
export http_proxy=http://DOMAIN\\username:[email protected]:8080/
in a file /etc/default/openbsd-inetd and restartet the inetd, but no change at
all.
Installed versions:
ii approx 4.5-1 caching
proxy server for Debian archive files
ii openbsd-inetd 0.20080125-6 The
OpenBSD Internet Superserver
Any suggestions?
Or is it possible to start approx without inetd?
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]