Re: Help with apt and ftp

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

 



On Mon, 2004-03-01 at 12:19, Maynard Kuona wrote:
> I want to use ftp instead of http for apt, using a dedicated ftp proxy.
> However, I am unable to configure it to work properly. When I use gftp
> through the proxy, it gives the following, 
> 
> //
> Looking up ftp-proxy.uct.ac.za
> Trying ftp-proxy.uct.ac.za:21
> Connected to ftp-proxy.uct.ac.za:21
> 220-Welcome to the UCT FTP proxy server.
> 220-
> 220 ftp-proxy.uct.ac.za FTP server (Version 1.8 - 2002/01/14 20:09:00)
> ready.
> USER anonymous@xxxxxxxxxxxxxxxxx
> 331 Please specify the password.
> PASS xxxx
> 230 Login successful.
> TYPE I
> 200 Switching to Binary mode.
> PWD
> 257 "/"
> PASV
> 227 Entering Passive Mode (137,158,128,69,17,111).
> LIST -L
> 150 Here comes the directory listing.
> 226 Directory send OK.
> 
> My apt.conf files looks like this, at least the Acquire section.
> 
> //
> Acquire {
>     Retries "0";
>     Http {
>         Proxy "http://cache.uct.ac.za:8080";; // 
>     }
>   ftp
>   {
>     Proxy "ftp://ftp-proxy.uct.ac.za/";;
>     
>     /* Required script to perform proxy login. This example should work
>        for tisfwtk */
>     ProxyLogin
>     {
>        "USER $(PROXY_USER)";
>        "PASS $(PROXY_PASS)";
>        "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
>        "PASS $(SITE_PASS)";
>     };
> };
> 
> This is the output I get from running apt-get update -
> 
> //
> [root@albert maynard]# apt-get update
> Err ftp://apt.sw.be redhat/fc1/en/i386 release
>   Login script command 'USER ' failed, server said: Missing user name.

Try setting the ProxyLogin to something like this instead:

ProxyLogin
{
	"USER anonymous@xxxxxxxxxxxxxxxxx";
	"PASS xxxx";
}


	- Panu -




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux