标签 upgrade 下的文章

apt-get有一个“-o”选项,直接设置apt-get的变量。比如sudo apt-get -o Acquire::http::proxy="http://127.0.0.1:8000/" update sudo apt-get -o Acquire::ftp::proxy="ftp://127.0.0.1:8000/" update sudo apt-get -o Acquire::https::proxy="https://127.0.0.1:8000/" update