1、设置系统全局代理
Dash Home -> Network -> Network Proxy 进行设置。
2、由于上述配置,apt的配置文件中会出入如下配置
/etc/apt/apt.conf
Acquire::http::proxy "http://proxy.xxx.com:8080/";
add username and password as the following:
Acquire::http::proxy "http://username:password@proxy.xxxx.com:8080/";
3、apt-get作为Ubuntu的软件安装工具,配置更新源的地方
Dash home -> Update Manager -> Setting -> Ubuntu Software -> Download From.
注:若执行“apt-get install subversion”时,提示unable locate package。
转载于:https://blog.51cto.com/happycool/1004819