- 2009-27日
备份软件源:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup 很多人都会说这一步很多余,但是一旦你的软件源出了问题恢复一下不是更容易吗?笔者也遇到过几次有人问我想恢复到默认时候的源怎么办?其实在 Linux 中很多设置都是修改配置文件来进行的,让初学者从开始接触 Linux 就学习备份设置不是一样很好的事吗?建议 Linux 初学者养成操作前先备份的习惯。
编辑软件源:
sudo gedit /etc/apt/sources.list 从下面列表中选择合适的源(注意:一定要选和你的系统一致的版本8.10、 8.04、7.10、 7.04、6.10、 6.06),替换掉文件中内容,保存编辑好的文件
更新软件源:
sudo apt-get update 推荐软件源:
建议电信用户选择 CN99 的软件源(目前电信用户使用最普及的,速度快而且稳定),网通用户使用台湾大学的软件源,教育网用户使用厦门大学的软件源。注意:不同的网络状况连接以下源的速度不同, 所以cn99并不一定是最快的源, 建议在添加前手动验证以下源的连接速度(ping下就行),比如说北京网通ADSL用户连接cn99就非常慢,而ftp.sjtu.edu.cn是相对较快的源,选择最快的源可以节省大批下载时间
Ubuntu.cn99.com更新服务器(江苏省常州市电信,推荐电信用户使用):
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://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厦门大学更新服务器(教育网服务器):
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 multiverseubuntu系统安装之后默认的更新源是http://cn.archive.ubuntu.com/ubuntu/ ,我用的是上海电信的adsl速度并不是很好,后来更换成 http://ubuntu.cn99.com/ubuntu/的更新源后,速度大幅度提高,速度可以达到2m的下载上限。
转载请注明:
本文转自:http://www.liusuping.com/ubuntu-linux/ubuntu-gengxinyuan-update.html
- 评论:(0)
- 引用通告
发表评论点击这里获取该日志的TrackBack引用地址