[Ubuntu-zh] apt-get 代理设置问题
Lyper Lai
lyp069在gmail.com
星期日 十二月 7 12:59:27 GMT 2008
出错的原因是域名无法解析,这就是说你指定的代理没有DNS服务。没有DNS服务就不能上网。更不用说下载了。
2008/12/6 阿德 <vikingssd在gmail.com>
> 系统自带的那个代理设置了以后也是这样,呵呵
>
> 2008/12/6 Lyper Lai <lyp069在gmail.com>
>
> 其实在"系统管理"中有个"网络代理"的工具。你把要用到的代理设置上,不仅apt可以使用代理,系统中其它的如火狐等软件都可以使用代理上网了。
>>
>> 2008/12/5 阿德 <vikingssd在gmail.com>
>>
>>> 操作系统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:password@yourproxyaddress:proxyport
>>>
>>> )
>>>
>>>
>>> 在~/.bashrc中的末尾添加如下内容:
>>> http_proxy=http://viking:ssd@bss@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 'bss在202.118.83.144'
>>> Failed to fetch
>>> http://debian.ustc.edu.cn/ubuntu/dists/feisty-updates/multiverse/source/Sources.gz
>>> Could not resolve 'bss在202.118.83.144'
>>> Failed to fetch
>>> http://tw.archive.ubuntu.com/ubuntu/dists/gutsy-proposed/universe/source/Sources.gz
>>> Could not resolve 'bss在202.118.83.144'
>>> Failed to fetch
>>> http://tw.archive.ubuntu.com/ubuntu/dists/gutsy-proposed/multiverse/source/Sources.gz
>>> Could not resolve 'bss在202.118.83.144'
>>> Reading package lists... Done
>>> E: Some index files failed to download, they have been ignored, or old
>>> ones used instead.
>>>
>>>
>>> 说明:
>>> 0,代理的用户名是:viking
>>> 密码是:ssd在bss
>>> 1,在google中查找,曾改成http_proxy=http://viking:ssd\@bss@202.118.83.144:888
>>> ,结果一样。
>>> --
>>> ubuntu-zh mailing list
>>> ubuntu-zh在lists.ubuntu.com
>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>>>
>>>
>>
>> --
>> ubuntu-zh mailing list
>> ubuntu-zh在lists.ubuntu.com
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>>
>>
>
> --
> ubuntu-zh mailing list
> ubuntu-zh在lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
>
-------------- 下一部分 --------------
一个HTML附件被移除...
URL: https://lists.ubuntu.com/archives/ubuntu-zh/attachments/20081207/1bfc1652/attachment.htm
More information about the ubuntu-zh
mailing list