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

Re: apt-get and proxy setting



On Tue, Jul 15, 2003 at 04:18:07PM +0200, debian-user-request@lists.debian.org wrote:
> Hello,
> 
> I am facing some problems in getting apt-get to retrieve files through 
> http proxy setting. I tried the following:
> 
>    1. Set the environment variable as
> 
>          export  HTTP_PROXY="http://203.195.221.129:3128";
> 
>       Still when I give apt-get update, I get messages telling that
>       connection is refused from the hosts (www.debian.org,
>       marillat.free.fr, et al.)
> 
>    2. Created /etc/apt.conf as below:
> 
>         APT {
>           Acquire {
>              http {
>                Proxy "http://203.195.221.129:3128";;
>              };
>           };
>         };
> 
>       Still the same result.
> 
> Browsing the docs threw up the second solution. 
> 
> My question is how can I make apt-get to retrieve the files with the
> above setting? FWIW, I am able to download files using wget by putting
> the above setting in /etc/wgetrc.

AFAIK you also have to make sure that the sources.list contains
repositories with the correct fetch method, i.e. http.

/M

-- 
Magnus Therning  mailto:therning@sourceforge.natlab.research.philips.com
PGP:0xD3BC7468  +31-40-2745179  http://pww.innersource.philips.com/magnus/

The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it.
     -- Michelangelo

Attachment: pgpWm_C1riJpk.pgp
Description: PGP signature


Reply to: