Home > Linux, Ubuntu > Ubuntu apt-get 代理服务器设置

Ubuntu apt-get 代理服务器设置

教育网内的源有限,常常不能更新访问一些国外网站资源,一些插件如 adobe-flash-plugin 就不能从官方源安装,每次都会提示超时错误。解决的方法也很简单: 在 /root/.bashrc 定义一个 http_proxy 变量:

$ sudo vi /root/.bashrc

添加以下内容:

http_proxy=http://username:password@host:port/
export http_proxy

然后:

$ sudo source /root/.bashrc

如果代理服务器有效,就可以通过代理来用 apt-get update  更新国外的源了。

Related posts:

  1. Ubuntu 9.10 安装 R
  2. Ubuntu 安装 iBus
  3. Ubuntu 配置 SVN 服务器
  4. IPV6 Tracker : 从 PPA 安装 Transmission 2.21
  5. Windows XP 硬盘安装 Ubuntu (Mint 8)
Categories: Linux, Ubuntu Tags: ,
  1. mining
    September 1st, 2010 at 15:33 | #1

    在教育网网下折腾ubuntu linux真是太痛苦太痛苦,时常要变更代理,想请教是否可以使用GAPPproxy作为代理

    ReplyReply
  1. No trackbacks yet.