前面一篇文章讲了怎么使ubuntu连外网,现在说一下一个重要的步骤,那就是更改安装源。
首先进入apt目录
root@#:cd /etc/apt/
其次备份你的源文件安装源
root@#: cp source.list source.list.backup
接着更改安装源:
root@#:vi source.list
将下面这些写入进去
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
保存退出
更新安装源
root@#: apt-get update
OK,你可以尽情的 apt-get install ~ 了