Help with apt and ftp

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

 



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.
Err ftp://ayo.freshrpms.net fedora/linux/1/i386 release
  Login script command 'USER ' failed, server said: Missing user name.
Err ftp://download.fedora.us fedora/1/i386 release
  Login script command 'USER ' failed, server said: Missing user name.
Get:1 http://www-ccrma.stanford.edu fedora/1/i386 release [1812B]
Get:2 http://people.redhat.com arjanv/2.6 release [533B]
Fetched 2345B in 2s (1153B/s)
Err ftp://apt.sw.be redhat/fc1/en/i386/dag pkglist
  Login script command 'USER ' failed, server said: Missing user name.
Err ftp://ayo.freshrpms.net fedora/linux/1/i386/core pkglist
  Login script command 'USER ' failed, server said: Missing user name.
Err ftp://apt.sw.be redhat/fc1/en/i386/dag release
  Login script command 'USER ' failed, server said: Missing user name.
Err ftp://download.fedora.us fedora/1/i386/os pkglist
  Login script command 'USER ' failed, server said: Missing user name.
Err ftp://ayo.freshrpms.net fedora/linux/1/i386/core release
  Login script command 'USER ' failed, server said: Missing user name.
Err ftp://download.fedora.us fedora/1/i386/os release
  Login script command 'USER ' failed, server said: Missing user name.
Err ftp://ayo.freshrpms.net fedora/linux/1/i386/updates pkglist
  Login script command 'USER ' failed, server said: Missing user name.
Err ftp://download.fedora.us fedora/1/i386/updates pkglist
  Login script command 'USER ' failed, server said: Missing user name.
Err ftp://ayo.freshrpms.net fedora/linux/1/i386/updates release
  Login script command 'USER ' failed, server said: Missing user name.
Err ftp://ayo.freshrpms.net fedora/linux/1/i386/freshrpms pkglist
  Login script command 'USER ' failed, server said: Missing user name.
Err ftp://download.fedora.us fedora/1/i386/updates release
  Login script command 'USER ' failed, server said: Missing user name.
Err ftp://ayo.freshrpms.net fedora/linux/1/i386/freshrpms release
  Login script command 'USER ' failed, server said: Missing user name.
Err ftp://download.fedora.us fedora/1/i386/stable pkglist
  Login script command 'USER ' failed, server said: Missing user name.
Err ftp://download.fedora.us fedora/1/i386/stable release
  Login script command 'USER ' failed, server said: Missing user name.
Err ftp://download.fedora.us fedora/1/i386/testing pkglist
  Login script command 'USER ' failed, server said: Missing user name.
Err ftp://download.fedora.us fedora/1/i386/testing release
  Login script command 'USER ' failed, server said: Missing user name.
Hit http://people.redhat.com arjanv/2.6/kernel pkglist
Hit http://people.redhat.com arjanv/2.6/kernel release
98% [Connecting to cache22.uct.ac.za (137.158.128.107)]
//

Any ideas on how to go about this. I reaslly want to use the ftp proxy
because its faster for us, our http speeds have been capped very low.




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

  Powered by Linux