Apt-get中使用http代理

1 view
Skip to first unread message

Leon Zhang

unread,
Mar 10, 2009, 9:04:39 PM3/10/09
to GoogleGroup日记, bb...@live.cn, bb...@yahoo.cn, dd...@live.cn, dd...@yahoo.cn, rr...@yahoo.cn, rr...@ymail.com, 51.m livecn, allback Yahoo, Rui, rui zenbe, day-up...@spaces.live.com, rui.us...@blogger.com, r01ustc.upup, r01ustc...@blogger.com, r01ust...@blogger.com, rleon...@spaces.live.com, rui21...@blogger.com, GoogleGroups 杂七杂八, hktk posterous, scribblelive.天天向上, 海阔天空Blog, linux Blog
在apt-get中使用代理,在/etc/apt/apt.conf中设置:
Acquire::http::Proxy "http://MYDOMAIN\MYNAME:MYP...@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

Reply all
Reply to author
Forward
0 new messages