2009年3月10日星期二

Apt-get中使用http代理

在apt-get中使用代理,在/etc/apt/apt.conf中设置:
Acquire::http::Proxy "http://MYDOMAIN\MYNAME:MYPASS@MY.PROXY.COM:MYPORT"

Acquire {
    Retries "0";
    HTTP {
        Proxy "http://proxy.mystarhub.com.sg:8080";
    };
};

163 的源
# 163
deb http://mirrors.163.com/ubuntu/ intrepid main restricted universe multiverse
#deb http://mirrors.163.com/ubuntu/ intrepid-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-updates main restricted universe multiverse
#deb http://mirrors.163.com/ubuntu/ intrepid-proposed main restricted universe multiverse
#deb http://mirrors.163.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid main restricted universe multiverse
#deb-src http://mirrors.163.com/ubuntu/ intrepid-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-updates main restricted universe multiverse
#deb-src http://mirrors.163.com/ubuntu/ intrepid-proposed main restricted universe multiverse
#deb-src http://mirrors.163.com/ubuntu/ intrepid-backports main restricted universe multiverse

没有评论: