Ubuntu代理设置及apt-get

切换到root用户

someuser@u-bigboy:~$sudosu-

增加sudo用户

vi/etc/sudoer

增加代理

sudo/etc/apt/apt.conf

acquire::http::proxy"http://username:passowrd@proxy:80/";

更新Software

sudoapt-getupdate

sudoapt-getupgrade

sudoapt-getinstall/removeopenssh-serverUbuntu

sudoapt-getinstall/removevimUbuntu

or

sudoyuminstall/removeopenssh-serverCentOS

cp-r/root//mnt/*将/root目录中的所有文件及其子目录拷贝到目录/mnt中*/

相关推荐