Gentlemen,

You are both clearly right, and you have given me the clues to put it together. 
For some reason I need to use active-mode rather than passive-mode ftp. I did 
away with the proxy file, and created a simple /etc/apt/apt.conf.d/ftp file 
with one directive and subscope:

Acquire
{
   ftp
   {
      passive "false";
   };
};

Adam, your observation about the IP address proved vital. I do not know why I 
am being redirected, but replacing the domain name with IP addresses proved 
necessary.

Phibo your suggestion to use wget lead me to the discovery that passive fpt was 
not working.

With your input and the examples in 
/usr/share/doc/apt/examples/configure-index.gz, I was able to resolve this. 
This was all because I wanted to get the Apache update, and just figured it was 
time to make apt retrieve the updates.

For anyone else that may be following this, in addition to the above file, my 
/etc/apt/sources.list now reads:

deb ftp://130.89.149.226/debian squeeze main
deb ftp://128.31.0.36/debian-security/ squeeze/updates main

I imagine anyone using a properly functioning name server will not have to use 
IP addresses. And I've discovered a problem with that of my organization.

Thanks to both of you!

Nelson

> Date: Tue, 30 Aug 2011 23:38:56 +0200
> From: [email protected]
> To: [email protected]
> Subject: Re: security updates using ftp
> 
> On Tue, 30 Aug 2011 13:56:48 -0500
> Nelson Last <[email protected]> wrote:
> 
> > 
> > Good afternoon,
> > 
> > I have a system that does not have http access, due to firewall 
> > restrictions. I do, however, have ftp access. I apparently am able to 
> > update aptitude with no problem, but I can never get security updates. I 
> > always get an error about not being able to open the file:
> > Err ftp://security.debian.org squeeze/updates/main i386 Packages   Unable 
> > to fetch file, server said 'Failed to open file.  ' [IP: 130.89.149.226 21]
> > W: Failed to fetch 
> > ftp://security.debian.org/dists/squeeze/updates/main/binary-i386/Packages.gz
> >   Unable to fetch file, server said 'Failed to open file.  ' [IP: 
> > 130.89.149.226 21]
> > 
> > The contents of /etc/apt/sources.list is fairly simple:
> > deb ftp://ftp.debian.org/debian squeeze main
> > deb ftp://security.debian.org/ squeeze/updates main
> > 
> > And I have a proxy defined for anonymous access (/etc/apt/apt.conf.d/proxy):
> > Acquire::ftp
> > {
> >    Proxy "ftp://ftp.debian.org/debian:21";;
> >    ProxyLogin
> >    {
> >       "USER anonymous";
> >       "PASS [email protected]";
> >    }
> > }
> 
> Why do you use a proxy for anonymous ftp access to security.d.o? I doubt 
> ftp://ftp.debian.org/debian:21 is acting as a proxy. Try to download the file 
> manually with wget like this: 
> 
> wget 
> ftp://security.debian.org/debian-security/dists/squeeze/updates/main/binary-i386/Packages.gz
> 
> If that succeeds, you can safely drop the file /etc/apt/apt.conf.d/proxy. 
> 
> Cheers,
> Phil
> 
> 
> -- 
> To UNSUBSCRIBE, email to [email protected]
> with a subject of "unsubscribe". Trouble? Contact [email protected]
> Archive: http://lists.debian.org/[email protected]
> 
                                          

Reply via email to