永久设定:
-
sudo gedit /etc/apt/apt.conf加入下面这行
-
Acquire::http::Proxy "http://proxy_addr:proxy_port"; (如 Acquire::http::Proxy "http://账号:密码@192.168.0.111:808";,注意结尾有分号)
临时设定:
$ sudo apt-get update -c apt_proxy.conf 其中apt_proxy.conf 内容格式如上所示。
永久设定:
sudo gedit /etc/apt/apt.conf加入下面这行
Acquire::http::Proxy "http://proxy_addr:proxy_port"; (如 Acquire::http::Proxy "http://账号:密码@192.168.0.111:808";,注意结尾有分号)
临时设定:
$ sudo apt-get update -c apt_proxy.conf 其中apt_proxy.conf 内容格式如上所示。