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@ftp.leg.uct.ac.za 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.
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,
Just a quick note here : The http apt URLs for ayo.freshrpms.net do not work with the same paths through ftp. In fact, the main Red Hat Linux and Fedora Core files aren't accessible through ftp on ayo.freshrpms.net currently because of symlinks outside the ftp tree, which the http server follows.
Why not use a proxy for the http files? Most users who don't have access to both http and ftp only have http and not the other way around.
Matthias
On Mon, 2004-03-01 at 13:23, Matthias Saou wrote:
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,
Just a quick note here : The http apt URLs for ayo.freshrpms.net do not work with the same paths through ftp. In fact, the main Red Hat Linux and Fedora Core files aren't accessible through ftp on ayo.freshrpms.net currently because of symlinks outside the ftp tree, which the http server follows.
Why not use a proxy for the http files? Most users who don't have access to both http and ftp only have http and not the other way around.
No, its a funny policy at my university. They actually prefer people to use the ftp proxy. ftp can be at least twice as fast, and faster then http because of that. We have access to both ftp and http through proxy, different proxies at that. I just needed to know how to do it for those sites which I can use ftp for. I am sure the official fedora archives can be accessed via ftp.
Maynard Kuona wrote :
[...] I am sure the official fedora archives can be accessed via ftp.
Absolutely, I was just saying that the apt-enabled tree available through http on ayo.freshrpms.net wasn't available through ftp (at the moment). So even if you were able to fix the problem you initially posted, it wouldn't have worked in the end anyway.
Matthias
On Mon, 2004-03-01 at 16:23, Matthias Saou wrote:
Maynard Kuona wrote :
[...] I am sure the official fedora archives can be accessed via ftp.
Absolutely, I was just saying that the apt-enabled tree available through http on ayo.freshrpms.net wasn't available through ftp (at the moment). So even if you were able to fix the problem you initially posted, it wouldn't have worked in the end anyway.
No i haven't actually fixed it per se. I am still using http when i would be using my bandwidth more effectively by using ftp.
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@ftp.leg.uct.ac.za 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@ftp.leg.uct.ac.za"; "PASS xxxx"; }
- Panu -