分享一下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/

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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM