[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get and proxies

On Tuesday 20 November 2001 08:53 am, Svante Signell wrote:
> Hi,
> I'm trying to use apt-get both via direct connection to Internet and
> via a proxy-server. After reading the apt.conf manual page and the
> examples linked to there I'm getting either direct connection _or_ via
> proxy working. The situation is summarized as follows:
> 1: No proxy setting in /etc/apt/apt.conf
> Direct connection works, not via proxy. According to the manual page
> setting the http_proxy environment variable should enable proxy, it
> does not! (wget works with the http_proxy and ftp_proxy settings)
this works perfectly for me. perhaps you aren't exporting the http_proxy 

-- snip --
# echo $http_proxy
# apt-get update
Get:1 http://non-us.debian.org woody/non-US/main Packages [67.5kB]
Fetched 99.6kB in 10s (9764B/s)
Reading Package Lists... Done
Building Dependency Tree... Done
# tail -1 /var/log/squid/access.log
1006289600.235     83 my.private.ip.here TCP_MISS/304 279 GET 
-- snip --

using apt 0.5.4 on a current woody system.

> 2: Proxy setting in /etc/apt/apt.conf
> Connection via proxy works, not direct connection. Setting for example
> Proxy::http.us.debian.org "DIRECT"; restores the direct connection to
> this address but disables proxy. However, having proxy defined in
> apt.conf and setting the http_proxy environment variable _disables_
> proxy support, and enables direct connection. This is in contrast with
> expectations and what is written in the manual pages.
though i don't put proxy settings in the apt.conf file, i have done it 
before, and it seemed to work fine.

Reply to: