ubuntu换源方法
- by Hector
在终端输入命令(应用程序》附件》终端)
ubuntu9.04的换源请到http://ourys.com/post/58.html
备份软件源:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
很多人都会说这一步很多余,但是一旦你的软件源出了问题恢复一下不是更容易吗?笔者也遇到过几次有人问我想恢复到默认时候的源怎么办?其实在 Linux 中很多设置都是修改配置文件来进行的,让初学者从开始接触 Linux 就学习备份设置不是一样很好的事吗?建议 Linux 初学者养成操作前先备份的习惯。
编辑软件源:
sudo gedit /etc/apt/sources.list
建议将里面的所有源都删掉,速度太慢了,然后添加相应版本的软件源
然后在系统》系统管理》更新管理器》点击检查,就把网上软件的信息存在你电脑里面,装软件只要输入命令就可以了。
下面是8.10的软件源:
#Archive.ubuntu.com更新服务器(欧洲,此为官方源,电信网通用户使用,毕竟是国外的,速度慢,最好不要用):
deb http://archive.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ intrepid-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ intrepid-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ intrepid-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ intrepid-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
#Ubuntu.cn99.com更新服务器(江苏省常州市电信,推荐电信用户使用):
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
#Mirrors.shlug.org更新服务器(电信服务器,Ubuntu China Official Mirror, maintained by Shanghai Linux User Group):
deb http://cn.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverse
#Mirror.lupaworld.com更新服务器(浙江省杭州市双线服务器):
deb http://mirror.lupaworld.com/ubuntu intrepid main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu intrepid-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu intrepid-updates main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu intrepid-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu intrepid-proposed main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu intrepid main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu intrepid-security main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu intrepid-updates main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu intrepid-backports main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu intrepid-proposed main restricted universe multiverse
#厦门大学更新服务器(教育网服务器):
deb ftp://ubuntu.realss.cn/ubuntu/ intrepid main restricted universe multiverse
deb ftp://ubuntu.realss.cn/ubuntu/ intrepid-backports restricted universe multiverse
deb ftp://ubuntu.realss.cn/ubuntu/ intrepid-proposed main restricted universe multiverse
deb ftp://ubuntu.realss.cn/ubuntu/ intrepid-security main restricted universe multiverse
deb ftp://ubuntu.realss.cn/ubuntu/ intrepid-updates main restricted universe multiverse
deb-src ftp://ubuntu.realss.cn/ubuntu/ intrepid main restricted universe multiverse
deb-src ftp://ubuntu.realss.cn/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src ftp://ubuntu.realss.cn/ubuntu/ intrepid-proposed main restricted universe multiverse
deb-src ftp://ubuntu.realss.cn/ubuntu/ intrepid-security main restricted universe multiverse
deb-src ftp://ubuntu.realss.cn/ubuntu/ intrepid-updates main restricted universe multiverse
#成都市 电子科技大学更新服务器(教育网,推荐校园网和网通用户使用):
deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid main multiverse restricted universe
deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-backports main multiverse restricted universe
deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-proposed main multiverse restricted universe
deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-security main multiverse restricted universe
deb http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-updates main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-backports main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-proposed main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-security main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ intrepid-updates main multiverse restricted universe
#== 如果无法解析uestc.edu.cn域名,请使用以下地址 ==
deb http://ubuntu.dormforce.net/ubuntu/ intrepid main multiverse restricted universe
deb http://ubuntu.dormforce.net/ubuntu/ intrepid-backports main multiverse restricted universe
deb http://ubuntu.dormforce.net/ubuntu/ intrepid-proposed main multiverse restricted universe
deb http://ubuntu.dormforce.net/ubuntu/ intrepid-security main multiverse restricted universe
deb http://ubuntu.dormforce.net/ubunt
u/ intrepid-updates main multiverse restricted universe
deb-src http://ubuntu.dormforce.net/ubuntu/ intrepid main multiverse restricted universe
deb-src http://ubuntu.dormforce.net/ubuntu/ intrepid-backports main multiverse restricted universe
deb-src http://ubuntu.dormforce.net/ubuntu/ intrepid-proposed main multiverse restricted universe
deb-src http://ubuntu.dormforce.net/ubuntu/ intrepid-security main multiverse restricted universe
deb-src http://ubuntu.dormforce.net/ubuntu/ intrepid-updates main multiverse restricted universe
上海市上海交通大学更新服务器(教育网,推荐校园网和网通用户使用):
deb http://ftp.sjtu.edu.cn/ubuntu/ intrepid main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ intrepid-backports main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ intrepid-proposed main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ intrepid-security main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ intrepid-updates main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ intrepid main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ intrepid-backports main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ intrepid-proposed main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ intrepid-security main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ intrepid-updates main multiverse restricted universe
#中国科学技术大学更新服务器(教育网,推荐校园网和网通用户使用):
deb http://debian.ustc.edu.cn/ubuntu/ intrepid main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ intrepid-backports main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ intrepid-proposed main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ intrepid-security main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ intrepid-updates main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ intrepid main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ intrepid-backports main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ intrepid-proposed main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ intrepid-security main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ intrepid-updates main multiverse restricted universe
#中国台湾 台湾大学更新服务器(推荐网通用户使用,电信PING平均响应速度41MS。强烈推荐此源,比较完整,较少出现同步问题):
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid-updates main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid-backports main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid-security main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid-security main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid-proposed main multiverse restricted universe
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ intrepid-proposed main restricted universe multiverse
<
br />#mirror.rootguide.org更新服务器(上海市 电信):
deb http://mirror.rootguide.org/ubuntu/ intrepid main restricted universe multiverse
deb-src http://mirror.rootguide.org/ubuntu/ intrepid main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu/ intrepid-updates main restricted universe multiverse
deb-src http://mirror.rootguide.org/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://mirror.rootguide.org/ubuntu/ intrepid-backports main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu/ intrepid-security main restricted universe multiverse
deb-src http://mirror.rootguide.org/ubuntu/ intrepid-security main restricted universe multiverse
deb http://mirror.rootguide.org/ubuntu/ intrepid-proposed main multiverse restricted universe
deb-src http://mirror.rootguide.org/ubuntu/ intrepid-proposed main restricted universe multiverse
#台湾的官方源速度也相当不错,有时甚至快于内地的:
deb http://tw.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverse