apt-get a http proxy


To Debian CZ/SK project discussion list <czdebian-l zavinac debian bod cz>
From Vitezslav Kotrla <vitko zavinac post bod cz>
Date Wed, 11 Oct 2006 21:26:07 +0200

Ahoj,

jak používáte apt s proxy?

Zkusil jsem

# export http_proxy=172.22.1.1:3128

a wget to bere (ehm, evolution mi zalamuje řádky, snad to bude čitelné):

# wget
http://cz.archive.ubuntu.com/ubuntu/pool/main/g/gdb/gdb_6.4-1ubuntu5_i386.deb
--09:47:34--
http://cz.archive.ubuntu.com/ubuntu/pool/main/g/gdb/gdb_6.4-1ubuntu5_i386.deb
           => `gdb_6.4-1ubuntu5_i386.deb'
Connecting to 172.22.1.1:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 2,700,054 (2.6M) [text/plain]

100%[====================================>] 2,700,054    197.63K/s   ETA
00:00

09:47:47 (219.43 KB/s) - `gdb_6.4-1ubuntu5_i386.deb' saved
[2700054/2700054]

ale apt se chová podivně

# apt-get install gdb
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
  gdb
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2700kB of archives.
After unpacking 5513kB of additional disk space will be used.
Err http://cz.archive.ubuntu.com dapper/main gdb 6.4-1ubuntu5
  Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22
Invalid argument)
Failed to fetch
http://cz.archive.ubuntu.com/ubuntu/pool/main/g/gdb/gdb_6.4-1ubuntu5_i386.deb
Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22
Invalid argument)
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?


Co se stalo? Proč?

Vítězslav Kotrla



Partial thread listing: