[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Access to the ftp site with the http protocol ?
I did set it and it did not work. Apt reports about protocol corruption.
I hope that my problem is that I do not set the other fields correctly. Can
you advise what should I do with those:
/* 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)";
};
Timeout "120";
/* Passive mode control, proxy, non-proxy and per-host. Pasv mode
is prefered if possible */
Passive "true";
Proxy::Passive "true";
Passive::http.us.debian.org "true"; // Specific per-host setting
};
They are taken from /usr/share/doc/apt/examples/configure-index.gz. I do not
have permission to login to the proxy server (ftp://Proxy.israsrv.net.il:8080),
the ftp server is of course ftp.linux.org.il, it requires Name to be
anonymous and a guest password of shaulk@israsrv.net.il.
Here a typescript of my last attempt:
[21:10:55 /tmp]$ cat typescript
Script started on Sat Feb 19 21:09:37 2000
[21:09:37 /tmp]# cat /etc/apt/apt.conf
/* In some instances involving filenames it is possible to set the default
directory when the path is evaluated. This means you can use relative
paths within the sub scope.
The configuration directives are specified in a tree with {} designating
a subscope relative to the tag before the {}. You can further specify
a subscope using scope notation eg,
APT::Architecture "i386";
This is prefixed with the current scope. Scope notation must be used
if an option is specified on the command line with -o.
*/
// Options for the downloading routines
Acquire
{
// HTTP method configuration
http
{
Proxy "http://Proxy.israsrv.net.il:8080";
Timeout "120";
};
// FTP method configuration
ftp
{
Proxy "ftp://Proxy.israsrv.net.il:8080";
Timeout "120";
};
};
DPkg
{
// Auto re-mounting of a readonly /usr
Pre-Invoke {"mount -o remount,rw /usr";};
Post-Invoke
{
"apt-cache dumpavail > /var/lib/dpkg/available";
"mount -o remount,ro /usr";
};
}
// Pre-configure all packages before they are installed.
// (Automatically added by debconf.)
DPkg::Pre-Install-Pkgs {"dpkg-preconfigure --apt";};
[21:09:47 /tmp]# apt-get update
0% [Working]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
0% [Logging in]
Err ftp://ftp.linux.org.il unstable/main Packages
Protocol corruption
0% [Working]
Err ftp://ftp.linux.org.il unstable/main Release
Protocol corruption
0% [Working]
Err ftp://ftp.linux.org.il unstable/contrib Packages
Protocol corruption
0% [Working]
Err ftp://ftp.linux.org.il unstable/contrib Release
Protocol corruption
0% [Working]
Err ftp://ftp.linux.org.il unstable/non-free Packages
Protocol corruption
0% [Working]
Err ftp://ftp.linux.org.il unstable/non-free Release
Protocol corruption
0% [Working]
Err ftp://ftp.linux.org.il unstable/main Sources
Protocol corruption
0% [Working]
Err ftp://ftp.linux.org.il unstable/main Release
Protocol corruption
0% [Working]
Err ftp://ftp.linux.org.il unstable/contrib Sources
Protocol corruption
0% [Working]
Err ftp://ftp.linux.org.il unstable/contrib Release
Protocol corruption
0% [Working]
Err ftp://ftp.linux.org.il unstable/non-free Sources
Protocol corruption
0% [Working]
Err ftp://ftp.linux.org.il unstable/non-free Release
Protocol corruption
0% [Working]
Failed to fetch ftp://ftp.linux.org.il/mirrors/distro/debian/dists/unstable/main/binary-i386/Packages
Protocol corruption
Failed to fetch ftp://ftp.linux.org.il/mirrors/distro/debian/dists/unstable/main/binary-i386/Release
Protocol corruption
Failed to fetch ftp://ftp.linux.org.il/mirrors/distro/debian/dists/unstable/contrib/binary-i386/Packages
Protocol corruption
Failed to fetch ftp://ftp.linux.org.il/mirrors/distro/debian/dists/unstable/contrib/binary-i386/Release
Protocol corruption
Failed to fetch ftp://ftp.linux.org.il/mirrors/distro/debian/dists/unstable/non-free/binary-i386/Packages
Protocol corruption
Failed to fetch ftp://ftp.linux.org.il/mirrors/distro/debian/dists/unstable/non-free/binary-i386/Release
Protocol corruption
Failed to fetch ftp://ftp.linux.org.il/mirrors/distro/debian/dists/unstable/main/source/Sources
Protocol corruption
Failed to fetch ftp://ftp.linux.org.il/mirrors/distro/debian/dists/unstable/main/source/Release
Protocol corruption
Failed to fetch ftp://ftp.linux.org.il/mirrors/distro/debian/dists/unstable/contrib/source/Sources
Protocol corruption
Failed to fetch ftp://ftp.linux.org.il/mirrors/distro/debian/dists/unstable/contrib/source/Release
Protocol corruption
Failed to fetch ftp://ftp.linux.org.il/mirrors/distro/debian/dists/unstable/non-free/source/Sources
Protocol corruption
Failed to fetch ftp://ftp.linux.org.il/mirrors/distro/debian/dists/unstable/non-free/source/Release
Protocol corruption
Reading Package Lists... 0%
Reading Package Lists... 100%
Reading Package Lists... Done
Building Dependency Tree... 0%
Building Dependency Tree... 0%
Building Dependency Tree... 50%
Building Dependency Tree... 50%
Building Dependency Tree... Done
W: Couldn't stat source package list 'ftp://ftp.linux.org.il unstable/main Packages' (/var/state/apt/lists/ftp.linux.org.il_mirrors_distro_debian_dists_unstable_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list 'ftp://ftp.linux.org.il unstable/contrib Packages' (/var/state/apt/lists/ftp.linux.org.il_mirrors_distro_debian_dists_unstable_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list 'ftp://ftp.linux.org.il unstable/non-free Packages' (/var/state/apt/lists/ftp.linux.org.il_mirrors_distro_debian_dists_unstable_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these missing files
E: Some index files failed to download, they have been ignored, or old ones used instead.
[21:10:26 /tmp]# exit
Script done on Sat Feb 19 21:10:34 2000
- To: linux-il@xxxxxxxxxxxx
- Subject: Re: Access to the ftp site with the http protocol ?
- From: Alex Shnitman <alexsh@xxxxxxxxxx>
- Date: Sat, 19 Feb 2000 18:30:04 +0200
- Delivered-To: linux.org.il-linux-il@linux.org.il
- Delivery-Date: Sat Feb 19 19:09:02 2000
- Envelope-to: shaul@localhost
- In-Reply-To: <E12MAna-0002uY-00@rakefet>; from shaulk@israsrv.net.il on Sat, Feb 19, 2000 at 04:23:52PM +0200
- Mail-Followup-To: linux-il@linux.org.il
- References: <E12MAna-0002uY-00@rakefet>
- User-Agent: Mutt/1.0i
Hi, Shaul!
On Sat, Feb 19, 2000 at 04:23:52PM +0200, you wrote the following:
> The problem is that I am behind a firewall and must use socks or in order to
> have an ftp connection. Yet debian's APT does not work with socks and the
> proxy server seems to connect to me with http when I tries to connect to an
> ftp site. (It has a line like
> <!-- HTML listing generated by Squid 2.2.STABLE4 -->).
No problem -- set the ftp_proxy environment variable before running
apt to http://wwwproxy:8080/ or whatever. Then apt will use the
FTP-over-HTTP-proxy thing. It's documented in the apt.conf man page.
--
Alex Shnitman | http://www.debian.org
alexsh@hectic.net, alexsh@linux.org.il +-----------------------
http://alexsh.hectic.net UIN 188956 PGP key on web page
E1 F2 7B 6C A0 31 80 28 63 B8 02 BA 65 C7 8B BA
"Xenix is the pinnacle of modern UNIX design, and will be used for
many years to come."
-- Xenix OS API manual
PGP signature
Shaul Karl shaulk@israsrv.net.il
An elephant is a mouse with an operating system.