给UBUNTU设置代理

cd  /etc/apt/apt.conf.d
vi 01proxy


内容为
Acquire::http::proxy "http://119.119.119.9:8080/";
Acquire::ftp::proxy "ftp://119.119.119.9:8080/";
Acquire::https::proxy "https://119.119.119.9:8080/";


更新ubuntu
sudo apt-get update
sudo apt-get upgrade

你可能感兴趣的:(ubuntu)