如何在配置了代理服务器的机子(Ubuntu/Debian)上使用apt-get
June 17th, 2008
原文出处: http://blog.mypapit.net/2006/02/how-to-use-apt-get-behind-proxy-server-ubuntudebian.html
翻译: Ricky_Yahoo (http://www.ricky-yahoo.com)
如果你是一个Debian/Linux用户, 你可能会熟悉synaptic和apt-get来安装应用程序. 这篇文章主要简介如何使用apt-get/synaptic在配置了代理服务器/防火墙的机子上, 如果你使用apt-get出现问题,不妨来看看.
如果你使用 Synaptic
打开你的Synaptic程序管理器(用root登录),在Setting->Preference->Network下, 输入你的代理服务器信息, 比如: username:password@proxyserver.net, 配置服务器端口(通常为8080)
如果你使用命令模式 apt-get
用root登录编辑 /etc/bash.bashrc文件
添加下列两行都文件最后:
export http_proxy=http://username:password@proxyserver.net:port/
export ftp_proxy=http://username:password@proxyserver.netport/
你可以不用输入username:password如果你的代理服务器没有密码.
Leave a Comment
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">
TrackBack URL | RSS feed for comments on this post.