系统自带的那个代理设置了以后也是这样,呵呵

2008/12/6 Lyper Lai <[EMAIL PROTECTED]>

> 其实在"系统管理"中有个"网络代理"的工具。你把要用到的代理设置上,不仅apt可以使用代理,系统中其它的如火狐等软件都可以使用代理上网了。
>
> 2008/12/5 阿德 <[EMAIL PROTECTED]>
>
>> 操作系统ubuntu7.04 ,根据中文wiki上的说明,用第三种方法设置代理
>> (
>> 方法三
>> 这种方法会在您的主目录下的.bashrc文件中添加两行。如果您希望apt-get和其他应用程序如wget等都使用http代理,您可以使用这种方式。
>> gedit ~/.bashrc
>> 在您的.bashrc文件末尾添加如下内容(根据你的实际情况替换yourproxyaddress和proxyport)。
>> http_proxy=http://yourproxyaddress:proxyport
>> export http_proxy
>> 保存文件。关闭当前终端,然後打开另一个终端。
>> 如果代理服务器需要登录,那么可以在指定代理服务器地址的时候,用如下格式(根据情况把username,password,
>> yourproxyaddress和proxyport替换为相应内容):
>> http_proxy=http://username:[EMAIL PROTECTED]:proxyport
>>
>> )
>>
>>
>> 在~/.bashrc中的末尾添加如下内容:
>> http_proxy=http://viking:[EMAIL PROTECTED]@202.118.83.144:888
>> export http_proxy
>>
>> 保存文件退出,在另一个终端中执行:
>>
>> apt-get update
>>
>> 命令,结果显示为:
>>
>> Failed to fetch
>> http://tw.archive.ubuntu.com/ubuntu/dists/gutsy-proposed/restricted/source/Sources.gz
>> Could not resolve '[EMAIL PROTECTED]'
>> Failed to fetch
>> http://debian.ustc.edu.cn/ubuntu/dists/feisty-updates/multiverse/source/Sources.gz
>> Could not resolve '[EMAIL PROTECTED]'
>> Failed to fetch
>> http://tw.archive.ubuntu.com/ubuntu/dists/gutsy-proposed/universe/source/Sources.gz
>> Could not resolve '[EMAIL PROTECTED]'
>> Failed to fetch
>> http://tw.archive.ubuntu.com/ubuntu/dists/gutsy-proposed/multiverse/source/Sources.gz
>> Could not resolve '[EMAIL PROTECTED]'
>> Reading package lists... Done
>> E: Some index files failed to download, they have been ignored, or old
>> ones used instead.
>>
>>
>> 说明:
>> 0,代理的用户名是:viking
>>                   [EMAIL PROTECTED]
>> 1,在google中查找,曾改成http_proxy=http://viking:[EMAIL PROTECTED]@202.118.83.144:888
>> ,结果一样。
>> --
>> ubuntu-zh mailing list
>> [email protected]
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>>
>>
>
> --
> ubuntu-zh mailing list
> [email protected]
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
>
-- 
ubuntu-zh mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh

回复