求助一个关于代理的问题~

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
LinHz
帖子: 12
注册时间: 2007-03-04 13:38

求助一个关于代理的问题~

#1

帖子 LinHz » 2007-03-09 14:02

我的网络是需要通过一个需要用户名和密码的HTTP代理才可以连接到外网的。
然后我需要怎么设置我的ubuntu才可以不用每一个软件都逐个设置代理。
就是比如说我现在用FF来访问网络,是在FF本身里设置了代理。
如何不通过FF本身,打开FF就可以直接连到网络?就是在系统本身上设置好代理,访问网络的时候直接用系统设置好的代理来访问?
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#2

帖子 skyx » 2007-03-09 14:09

不同的应用,会用到不同的协议,比如www 用 http ftp 用ftp , and so on ....(不过倒底是怎么回事从来没认真学习过。)

楼主的要求,在windows上也不能只设定一个http代理全部搞定。


不过使用socks5代理可行,系统设好后,其它程序都可不用再设定代理。
上次由 skyx 在 2007-03-09 14:21,总共编辑 2 次。
no security measure is worth anything if an attacker has physical access to the machine
ibearz
帖子: 80
注册时间: 2007-03-03 15:50

#3

帖子 ibearz » 2007-03-09 14:13

顶2楼
LinHz
帖子: 12
注册时间: 2007-03-04 13:38

#4

帖子 LinHz » 2007-03-09 14:24

意思就是说要着一个SOCKS5的代理设置软件就可以拉?
LinHz
帖子: 12
注册时间: 2007-03-04 13:38

#5

帖子 LinHz » 2007-03-09 14:28

最主要的原因是不知道怎么给终端设置代理。
然后看到那些需要apt-get install的程序都不能直接连上去下载,所以想问问看~~
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#6

帖子 skyx » 2007-03-09 14:29

LinHz 写了:意思就是说要着一个SOCKS5的代理设置软件就可以拉?
是这个意思,windows我用过 permo security driver .装好后,所以访问网络的软件都不用设定代理,全部直接上网。


linux下应该是 pxoxychains,这个我没试过,道理是一样的。
no security measure is worth anything if an attacker has physical access to the machine
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#7

帖子 skyx » 2007-03-09 14:35

LinHz 写了:最主要的原因是不知道怎么给终端设置代理。
然后看到那些需要apt-get install的程序都不能直接连上去下载,所以想问问看~~
明白你的意思了。


这个直接在系统----->首选项------>代理设定

一般情况下设好后apt-get 就可用,在我的电脑上通过。

也可编写配制文件。
no security measure is worth anything if an attacker has physical access to the machine
LinHz
帖子: 12
注册时间: 2007-03-04 13:38

#8

帖子 LinHz » 2007-03-09 15:08

这个代理设置我设置过,不过显示的是这样的:
ubuntu@ubuntu:~$ sudo apt-get update
获取:1 http://archive.ubuntu.com dapper Release.gpg
错误 http://archive.ubuntu.com dapper-updates Release.gpg
连接失败 [IP: 91.189.89.6 80]
忽略 http://archive.ubuntu.com dapper Release
忽略 http://archive.ubuntu.com dapper-updates Release
忽略 http://archive.ubuntu.com dapper/main Packages
忽略 http://archive.ubuntu.com dapper/restricted Packages
忽略 http://archive.ubuntu.com dapper/main Sources
忽略 http://archive.ubuntu.com dapper/restricted Sources
忽略 http://archive.ubuntu.com dapper-updates/main Packages
忽略 http://archive.ubuntu.com dapper-updates/restricted Packages
忽略 http://archive.ubuntu.com dapper-updates/main Sources
忽略 http://archive.ubuntu.com dapper-updates/restricted Sources
错误 http://archive.ubuntu.com dapper/main Packages
连接失败 [IP: 91.189.89.6 80]
错误 http://archive.ubuntu.com dapper/restricted Packages
连接失败 [IP: 91.189.89.6 80]
错误 http://archive.ubuntu.com dapper/main Sources
连接失败 [IP: 91.189.89.6 80]
错误 http://archive.ubuntu.com dapper/restricted Sources
连接失败 [IP: 91.189.89.6 80]
错误 http://archive.ubuntu.com dapper-updates/main Packages
连接失败 [IP: 91.189.89.6 80]
错误 http://archive.ubuntu.com dapper-updates/restricted Packages
连接失败 [IP: 91.189.89.6 80]
错误 http://archive.ubuntu.com dapper-updates/main Sources
连接失败 [IP: 91.189.89.6 80]
错误 http://archive.ubuntu.com dapper-updates/restricted Sources
连接失败 [IP: 91.189.89.6 80]
错误 http://security.ubuntu.com dapper-security Release.gpg
连接失败
忽略 http://security.ubuntu.com dapper-security Release
忽略 http://security.ubuntu.com dapper-security/main Packages
忽略 http://security.ubuntu.com dapper-security/restricted Packages
忽略 http://security.ubuntu.com dapper-security/main Sources
忽略 http://security.ubuntu.com dapper-security/restricted Sources
错误 http://security.ubuntu.com dapper-security/main Packages
连接失败
错误 http://security.ubuntu.com dapper-security/restricted Packages
连接失败
错误 http://security.ubuntu.com dapper-security/main Sources
连接失败
错误 http://security.ubuntu.com dapper-security/restricted Sources
连接失败
下载 5496B,耗时 10s (501B/s)
无法下载 http://security.ubuntu.com/ubuntu/dists ... elease.gpg 连接失败
无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... elease.gpg 连接失败 [IP: 91.189.89.6 80]
无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... ackages.gz 连接失败 [IP: 91.189.89.6 80]
无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... ackages.gz 连接失败 [IP: 91.189.89.6 80]
无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... Sources.gz 连接失败 [IP: 91.189.89.6 80]
无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... Sources.gz 连接失败 [IP: 91.189.89.6 80]
无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... ackages.gz 连接失败 [IP: 91.189.89.6 80]
无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... ackages.gz 连接失败 [IP: 91.189.89.6 80]
无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... Sources.gz 连接失败 [IP: 91.189.89.6 80]
无法下载 http://archive.ubuntu.com/ubuntu/dists/ ... Sources.gz 连接失败 [IP: 91.189.89.6 80]
无法下载 http://security.ubuntu.com/ubuntu/dists ... ackages.gz 连接失败
无法下载 http://security.ubuntu.com/ubuntu/dists ... ackages.gz 连接失败
无法下载 http://security.ubuntu.com/ubuntu/dists ... Sources.gz 连接失败
无法下载 http://security.ubuntu.com/ubuntu/dists ... Sources.gz 连接失败
正在读取软件包列表... 完成
E: 有一些索引文件不能下载,它们可能被忽略了,也可能转而使用了旧的索引文件。
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#9

帖子 skyx » 2007-03-09 15:20

我的网络是需要通过一个需要用户名和密码的HTTP代理才可以连接到外网的。
获取:1 http://archive.ubuntu.com dapper Release.gpg
5496B,耗时 10s (501B/s)
这说明代理起做用了,你的电脑的确连上了91.189.89.6(http://archive.ubuntu.com


换个国内的http打头的源试下, 论坛或wiki search一下。
no security measure is worth anything if an attacker has physical access to the machine
LinHz
帖子: 12
注册时间: 2007-03-04 13:38

#10

帖子 LinHz » 2007-03-09 15:35

原来是这样的啊~~
谢谢你了~~~~
回复