首页 > Ubuntu/Debian操作系统 > Ubuntu国内速度快的更新源

Ubuntu国内速度快的更新源

2015年9月26日

Ubuntu国内速度快的更新源
http://blog.sina.com.cn/s/blog_605f5b4f01013bnh.html
Ubuntu 通常都会使用源进行更新,但是操作系统自带的源,通常是欧洲的官方源,更新很慢,因此我们需要设置自己的源,这样在下载安装软件时速度比较快。

sudo cp /etc/apt/source.list /etc/apt/source_backup.list # 保存之前的源
使用vi 或gedit等工具打开 /etc/apt/source.list ,往其中增加新的源:
国内比较快的是网易163和搜狐的镜像。比如如下的source列表:

deb http://mirrors.163.com/ubuntu/ intrepid main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-backports main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu/ intrepid main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ intrepid-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ intrepid-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ intrepid main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ intrepid-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ intrepid-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ intrepid-backports main restricted universe multiverse

#deb http://mirror.lupaworld.com/ubuntu gutsy main restricted universe multiverse
#deb http://mirror.lupaworld.com/ubuntu gutsy-security main restricted universe multiverse
#deb http://mirror.lupaworld.com/ubuntu gutsy-updates main restricted universe multiverse
#deb http://mirror.lupaworld.com/ubuntu gutsy-backports main restricted universe multiverse
#deb-src http://mirror.lupaworld.com/ubuntu gutsy main restricted universe multiverse
#deb-src http://mirror.lupaworld.com/ubuntu gutsy-security main restricted universe multiverse
#deb-src http://mirror.lupaworld.com/ubuntu gutsy-updates main restricted universe multiverse
#deb-src http://mirror.lupaworld.com/ubuntu gutsy-backports main restricted universe multiverse

#deb http://tw.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse
#deb http://tw.archive.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse
#deb http://tw.archive.ubuntu.com/ubuntu gutsy-updates main restricted universe multiverse
#deb http://tw.archive.ubuntu.com/ubuntu gutsy-backports main restricted universe multiverse
#deb http://tw.archive.ubuntu.com/ubuntu gutsy-proposed main restricted universe multiverse
#deb-src http://tw.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse
#deb-src http://tw.archive.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse
#deb-src http://tw.archive.ubuntu.com/ubuntu gutsy-updates main restricted universe multiverse
#deb-src http://tw.archive.ubuntu.com/ubuntu gutsy-backports main restricted universe multiverse
#deb-src http://tw.archive.ubuntu.com/ubuntu gutsy-proposed main restricted universe multiverse

deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-backports main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-proposed main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-security main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-proposed main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-security main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-updates main restricted universe multiverse

deb http://archive.ubuntu.org.cn/ubuntu-cn/ feisty main restricted universe multiverse

保存了source.list 之后,使用 sudo apt-get update 更新源,之后再遇到apt-get install 或者 upgrade的时候就会快很多,而不会就仅仅从欧洲官方的源下载了。

本文的评论功能被关闭了.