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

Re: Proxy and APT



I persume that you are running squid (3128)?

I have not used squid myself, do you require to "login"?  Do you have access
to the squid logs?  What is your client sending?

You can add, at the bottom of apt.conf:

Debug
{
  Acquire::Ftp "true";    // Show ftp command traffic
}

Sorry, I cant think of anything more right now, the Debian boxes I
administer are all either directly on the Net, or IP Masq-ed.

-----Original Message-----
From: Javier Castillo <castillo@alhsys.es>
To: Sanjeev Gupta <ghane@iname.com>
Cc: Debian-Isp <lista correo> <debian-isp@lists.debian.org>
Date: Wednesday, April 05, 2000 8:01 PM
Subject: Re: Proxy and APT


My problem is:
alhmngsrv:/home/javier# apt-get update
Err ftp://ftp.fr.debian.org frozen/main Packages
  Protocol corruption


            <Similar stuff snipped>

This is my apt.conf file:

Acquire
{
  Queue-Mode "host";       // host|access
  Retries "0";
  Source-Symlinks "true";

  // HTTP method configuration
  http
  {
    Proxy "http://javier:alhsys@192.168.1.180:3128/";;
    Timeout "120";
    Pipeline-Depth "5";

    // Cache Control. Note these do not work with Squid 2.0.2
    No-Cache "false";
    Max-Age "86400";     // 1 Day age on index files
    No-Store "false";    // Prevent the cache from storing archives
  };
  ftp
  {
    Proxy "ftp://192.168.1.180:3128/";;
    ProxyLogin
    {
"USER $(PROXY_USER)";
"PASS $(PROXY_PASS)";
    };
  };
};

And this is my sources.list file:
deb ftp://ftp.fr.debian.org/debian frozen main contrib non-free


Ihave the env variables:
export PROXY_USER=javier
export PROXY_PASS=alhsys


Sanjeev Gupta wrote:
>
> The following is from a mail I sent to a neo-Debian, her proxy did NOT
have
> authentication.
>
> Add to, or replace, your /etc/apt/apt.conf:
>
> Acquire
> {
>   Queue-Mode "host";       // host|access
>   Retries "0";
>   Source-Symlinks "true";
>
>   // HTTP method configuration
>   http
>   {
>     Proxy "http://ghane:space@192.168.200.85:8080";;
>     Timeout "120";
>     Pipeline-Depth "5";
>
>     // Cache Control. Note these do not work with Squid 2.0.2
>     No-Cache "false";
>     Max-Age "86400";     // 1 Day age on index files
>     No-Store "false";    // Prevent the cache from storing archives
>   };
> };
>
> -----Original Message-----
> From: Javier Castillo <castillo@alhsys.es>


> To: Debian-Isp <lista correo> <debian-isp@lists.debian.org>
> Date: Wednesday, April 05, 2000 7:11 PM
> Subject: Proxy and APT
>
> > Hi there,
> >
> > Anoy of you know how can I use apt using our Proxy?. I want to
> >configure APT to download debs using FTP and my Proxy. Can you give an
> >apt.conf?.
> >
> >Thanks.
> >
> >--
> >Javier Castillo Alcíbar. castillo@alhsys.es
> >Alhambra Systems, S.A. http://www.alhsys.es
> >Telf: 34 - 1 - 91 304 18 00
> >Fax: 34 - 1 - 91 327 31 31
> >
> >
> >--
> >To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
> >with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> >
> >

--
Javier Castillo Alcíbar. castillo@alhsys.es
Alhambra Systems, S.A. http://www.alhsys.es
Telf: 34 - 1 - 91 304 18 00
Fax: 34 - 1 - 91 327 31 31



Reply to: