Ubuntu代理设置

  1. 修改apt.conf

    1
    $ sudo gedit /etc/apt/apt.conf
  2. edit:

    1
    2
    3
    4
    5
    <!--more-->
    Acquire::http::proxy "http://用户名:密码@172.26.100.238:64000/";
    Acquire::https::proxy "https://用户名:密码@172.26.100.238:64000/";
    Acquire::ftp::proxy "ftp://用户名:密码@172.26.100.238:64000/";
    Acquire::socks::proxy "socks://用户名:密码@172.26.100.238:64000/";
  3. 注意特殊符号
    如“@”用“40%”代替:
    @ use %40 to display!