May 29, 2009

Cannot initiate the connection to 8080:80

$ export http_proxy=10.0.192.102:8080

$ sudo apt-get install apache2
Failed to fetch
http://ubuntu.cn99.com/ubuntu/pool/main/a/apache2/apache2.2-common_2.2.9-7ubuntu3_i386.deb
Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22
Invalid argument)

$ wget
http://ubuntu.cn99.com/ubuntu/pool/main/a/apache2/apache2.2-common_2.2.9-7ubuntu3_i386.deb
// 却可以下载

也就是 wget可以下载,apt-get可以获得软件包地址,但无法下载

查了下,apt-get要求把代理设成如下形式:
$ export http_proxy=http://10.0.192.102:8080

现在, wget apt-get 都可以使用了...

No comments:

Post a Comment

您的评论将使我blog更有动力~