分享一下Ubuntu好用的源

vim /etc/apt/sources.list

然后用G跳转到最后一行,然后[ESC]切换到命令行模式,然后键入[o](表示在当前行后插入)。也可以多插入几个空行。这样可以有条理的和系统默认的区分。将来方便恢复,修改。

内容如下:

deb http://debian.ustc.edu.cn/ubuntu/ natty main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ natty-backports main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ natty-security main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ natty-updates main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ natty main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ natty-backports main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ natty-security main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ natty-updates main multiverse restricted universe

然后我们可以:

sudo apt-get update

----------------------------罪-恶-的-分-割-线------------------------------

更新一下,不用再去麻烦找各种源了。国内很多公司以及大学提供了国内的下载源。

中科大:http://mirrors.ustc.edu.cn/

清华大学:https://mirrors.tuna.tsinghua.edu.cn/

华为:https://mirrors.huaweicloud.com/

网易: http://mirrors.163.com/

此外国内还有很多,有需要自取吧。

原文地址:https://www.cnblogs.com/magic-zero/p/6307642.html