[Ubuntu-zh] apt-get 代理设置问题
阿德
vikingssd在gmail.com
星期五 十二月 5 01:55:20 GMT 2008
²Ù×÷ϵͳ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£¬½á¹ûÒ»Ñù¡£
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: https://lists.ubuntu.com/archives/ubuntu-zh/attachments/20081205/e2ba8aec/attachment.htm
More information about the ubuntu-zh
mailing list