ubuntu 设置与添加中国源
环境:ubuntu 12.04 ENGLISH
先备份 mv /etc/apt/sources.list~ sources.list~.bak
vi sources.list~插入:
以下转载:
请把其中的{Version}替代为以下列表中对应项:
- Ubuntu 12.10(测试版系统,将于10月推出) - quantal
- Ubuntu 12.04 - precise
- Ubuntu 11.10 - oneiric
- Ubuntu 11.04 - natty
- Ubuntu 10.10 - maverick
- Ubuntu 10.04 - lucid
如果不需要获取软件源代码,可以删除以“deb-src”开头的源,以加快速度。
网易163更新服务器(广东广州电信/联通千兆双线接入):
- deb http://mirrors.163.com/ubuntu/ {Version} main restricted universe multiverse
- deb http://mirrors.163.com/ubuntu/ {Version}-security main restricted universe multiverse
- deb http://mirrors.163.com/ubuntu/ {Version}-updates main restricted universe multiverse
- deb http://mirrors.163.com/ubuntu/ {Version}-proposed main restricted universe multiverse
- deb http://mirrors.163.com/ubuntu/ {Version}-backports main restricted universe multiverse
- deb-src http://mirrors.163.com/ubuntu/ {Version} main restricted universe multiverse
- deb-src http://mirrors.163.com/ubuntu/ {Version}-security main restricted universe multiverse
- deb-src http://mirrors.163.com/ubuntu/ {Version}-updates main restricted universe multiverse
- deb-src http://mirrors.163.com/ubuntu/ {Version}-proposed main restricted universe multiverse
- deb-src http://mirrors.163.com/ubuntu/ {Version}-backports main restricted universe multiverse
搜狐更新服务器(山东联通千兆接入,官方中国大陆地区镜像跳转至此)推荐使用!:
- deb http://mirrors.sohu.com/ubuntu/ {Version} main restricted universe multiverse
- deb http://mirrors.sohu.com/ubuntu/ {Version}-security main restricted universe multiverse
- deb http://mirrors.sohu.com/ubuntu/ {Version}-updates main restricted universe multiverse
- deb http://mirrors.sohu.com/ubuntu/ {Version}-proposed main restricted universe multiverse
- deb http://mirrors.sohu.com/ubuntu/ {Version}-backports main restricted universe multiverse
- deb-src http://mirrors.sohu.com/ubuntu/ {Version} main restricted universe multiverse
- deb-src http://mirrors.sohu.com/ubuntu/ {Version}-security main restricted universe multiverse
- deb-src http://mirrors.sohu.com/ubuntu/ {Version}-updates main restricted universe multiverse
- deb-src http://mirrors.sohu.com/ubuntu/ {Version}-proposed main restricted universe multiverse
- deb-src http://mirrors.sohu.com/ubuntu/ {Version}-backports main restricted universe multiverse
Ubuntu官方提供的其他软件(第三方闭源软件等)(推荐添加):
- deb http://archive.canonical.com/ubuntu/ {Version} partner
- deb http://extras.ubuntu.com/ubuntu/ {Version} main
IPv6-Only 地址
- deb http://mirrors6.ustc.edu.cn/ubuntu/ {Version} main multiverse restricted universe
- deb http://mirrors6.ustc.edu.cn/ubuntu/ {Version}-backports main multiverse restricted universe
- deb http://mirrors6.ustc.edu.cn/ubuntu/ {Version}-proposed main multiverse restricted universe
- deb http://mirrors6.ustc.edu.cn/ubuntu/ {Version}-security main multiverse restricted universe
- deb http://mirrors6.ustc.edu.cn/ubuntu/ {Version}-updates main multiverse restricted universe
- deb-src http://mirrors6.ustc.edu.cn/ubuntu/ {Version} main multiverse restricted universe
- deb-src http://mirrors6.ustc.edu.cn/ubuntu/ {Version}-backports main multiverse restricted universe
- deb-src http://mirrors6.ustc.edu.cn/ubuntu/ {Version}-proposed main multiverse restricted universe
- deb-src http://mirrors6.ustc.edu.cn/ubuntu/ {Version}-security main multiverse restricted universe
- deb-src http://mirrors6.ustc.edu.cn/ubuntu/ {Version}-updates main multiverse restricted universe
最后: sudo apt-get update
基本OK!
-------------------------明明以前用上面的源是OK,的2013.7.15 今天出现404 无法跟新源, 原因未知。。。下面的源解决问题:
deb http://mirrors.163.com/ubuntu/ precise main restricted deb-src http://mirrors.163.com/ubuntu/ precise main restricted deb http://mirrors.163.com/ubuntu/ precise-updates main restricted deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted deb http://mirrors.163.com/ubuntu/ precise universe deb-src http://mirrors.163.com/ubuntu/ precise universe deb http://mirrors.163.com/ubuntu/ precise-updates universe deb-src http://mirrors.163.com/ubuntu/ precise-updates universe deb http://mirrors.163.com/ubuntu/ precise multiverse deb-src http://mirrors.163.com/ubuntu/ precise multiverse deb http://mirrors.163.com/ubuntu/ precise-updates multiverse deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ precise-security main restricted deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted deb http://mirrors.163.com/ubuntu/ precise-security universe deb-src http://mirrors.163.com/ubuntu/ precise-security universe deb http://mirrors.163.com/ubuntu/ precise-security multiverse deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse deb http://extras.ubuntu.com/ubuntu precise main deb-src http://extras.ubuntu.com/ubuntu precise main
-
-
-
deb http://mirrors.sohu.com/ubuntu/ precise main restricted deb-src http://mirrors.sohu.com/ubuntu/ precise main restricted deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted deb http://mirrors.sohu.com/ubuntu/ precise universe deb-src http://mirrors.sohu.com/ubuntu/ precise universe deb http://mirrors.sohu.com/ubuntu/ precise-updates universe deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe deb http://mirrors.sohu.com/ubuntu/ precise multiverse deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse deb http://mirrors.sohu.com/ubuntu/ precise-security main restricted deb-src http://mirrors.sohu.com/ubuntu/ precise-security main restricted deb http://mirrors.sohu.com/ubuntu/ precise-security universe deb-src http://mirrors.sohu.com/ubuntu/ precise-security universe deb http://mirrors.sohu.com/ubuntu/ precise-security multiverse deb-src http://mirrors.sohu.com/ubuntu/ precise-security multiverse deb http://extras.ubuntu.com/ubuntu precise main deb-src http://extras.ubuntu.com/ubuntu precise main