Ubuntu 14.04下如何更换更新源(更新为163源)
- 浏览:8103
- |
- 更新:2014-12-26 18:39
- |
- 标签:ubuntu
Ubuntu下自带的源更新起来真的好难等,于是小编果断将其换之,经过各种尝试,最后还是选择了163的。下面就由小编来给大家分享一下是如何更新的吧。
方法/步骤
-
首先打开终端,用root登陆。
-
切换到/etc/apt/目录下,执行:cd /apt/get/,如图:
-
将里面的sources.list复制一下,为了安全。如图:
-
接下来就是用vim 打开 sources.list,将里面的原有的内容删除(知道为什么之前要复制了吧),然后添加如下内容:
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
如图:
-
最后执行:apt-get update就好了。如图:
END