Re: apt-get problem
On Mon, Jan 14, 2008 at 10:02:33AM -0600, Don Montgomery wrote:
> Wow, a lot of output, but I suspect the first few lines
> tell the tale:
>
> root@duop:/etc/apt/apt.conf.d# env|grep 4001
> http_proxy=http://localhost:4001
> HTTP_PROXY=http://localhost:4001
> root@duop:/etc/apt/apt.conf.d# grep 4001 -r /etc/
> grep: /etc/alternatives/javac: No such file or directory
> /etc/rc1.d/K20anon-proxy:[ -z "$PORT" ] && PORT="4001"
> /etc/rc5.d/S20anon-proxy:[ -z "$PORT" ] && PORT="4001"
> /etc/rc4.d/S20anon-proxy:[ -z "$PORT" ] && PORT="4001"
> /etc/popularity-contest.conf:MY_HOSTID="f763d78f15bb4001b5315c9e2423a993"
> /etc/rc3.d/S20anon-proxy:[ -z "$PORT" ] && PORT="4001"
> /etc/rc0.d/K20anon-proxy:[ -z "$PORT" ] && PORT="4001"
> /etc/rc6.d/K20anon-proxy:[ -z "$PORT" ] && PORT="4001"
> /etc/environment:HTTP_PROXY=http://localhost:4001 # +ANON_MARK+
> /etc/environment:http_proxy=http://localhost:4001 # +ANON_MARK+
So that there just set an entironment variable making most programs that
are properly written try to use it as a proxy. apt is properly written
so it does as it is told and tries to use your proxy.
Now the question is why does your proxy not work. I also see the
anon-proxy script in rc#.d and init.d apparently providing a proxy on
that port. Maybe it's misconfigured or it simply doesn't work.
So either fix the proxy so it works, or stop using it as a global proxy
setting and only enable it for those programs where it actually works.
--
Len Sorensen
Reply to: