Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1474006
  • 博文数量: 165
  • 博客积分: 2068
  • 博客等级: 上尉
  • 技术积分: 2102
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-27 16:07
文章分类

全部博文(165)

文章存档

2018年(1)

2017年(22)

2016年(9)

2015年(22)

2014年(8)

2013年(25)

2012年(53)

2011年(25)

分类: LINUX

2011-08-27 09:34:23

在终端输入并运行
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup(备份当前的源列表,以便日後需要时恢复)
sudo gedit /etc/apt/sources.list(修改sources.list文件中源的列表)

在sources.list文件尾部添加合适的更新服务器

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##Archive..com更新服务器(欧洲,此为官方源,电信网通用户使用):

deb hardy main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb hardy-proposed main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
deb-src hardy-proposed main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##.cn99.com更新服务器(江苏省常州市电信,推荐电信用户使用):

deb hardy main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb hardy-proposed main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
deb-src hardy-proposed main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb hardy main restricted universe multiverse

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##Mirrors.shlug.org更新服务器(电信服务器, China Official Mirror, maintained by Shanghai Linux User Group):

deb hardy main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb hardy-proposed main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb-src hardy-proposed main restricted universe multiverse

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##Mirror.lupaworld.com更新服务器(浙江省杭州市双线服务器,网通电信都可以用,亚洲地区官方更新服务器):

deb hardy main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb hardy-proposed main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb-src hardy-proposed main restricted universe multiverse

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##厦门大学更新服务器(教育网服务器):

deb ftp://.realss.cn// hardy main restricted universe multiverse
deb ftp://.realss.cn// hardy-backports restricted universe multiverse
deb ftp://.realss.cn// hardy-proposed main restricted universe multiverse
deb ftp://.realss.cn// hardy-security main restricted universe multiverse
deb ftp://.realss.cn// hardy-updates main restricted universe multiverse
deb-src ftp://.realss.cn// hardy main restricted universe multiverse
deb-src ftp://.realss.cn// hardy-backports main restricted universe multiverse
deb-src ftp://.realss.cn// hardy-proposed main restricted universe multiverse
deb-src ftp://.realss.cn// hardy-security main restricted universe multiverse
deb-src ftp://.realss.cn// hardy-updates main restricted universe multiverse

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##成都市电子科技大学更新服务器(教育网,推荐校园网和网通用户使用):

deb hardy main multiverse restricted universe
deb hardy-backports main multiverse restricted universe
deb hardy-proposed main multiverse restricted universe
deb hardy-security main multiverse restricted universe
deb hardy-updates main multiverse restricted universe
deb-src hardy main multiverse restricted universe
deb-src hardy-backports main multiverse restricted universe
deb-src hardy-proposed main multiverse restricted universe
deb-src hardy-security main multiverse restricted universe
deb-src hardy-updates main multiverse restricted universe

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##如果无法解析uestc.edu.cn域名,请使用以下地址

deb hardy main multiverse restricted universe
deb hardy-backports main multiverse restricted universe
deb hardy-proposed main multiverse restricted universe
deb hardy-security main multiverse restricted universe
deb hardy-updates main multiverse restricted universe
deb-src hardy main multiverse restricted universe
deb-src hardy-backports main multiverse restricted universe
deb-src hardy-proposed main multiverse restricted universe
deb-src hardy-security main multiverse restricted universe
deb-src hardy-updates main multiverse restricted universe

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##上海市上海交通大学更新服务器(教育网,推荐校园网和网通用户使用):

deb hardy main multiverse restricted universe
deb hardy-backports main multiverse restricted universe
deb hardy-proposed main multiverse restricted universe
deb hardy-security main multiverse restricted universe
deb hardy-updates main multiverse restricted universe
deb-src hardy main multiverse restricted universe
deb-src hardy-backports main multiverse restricted universe
deb-src hardy-proposed main multiverse restricted universe
deb-src hardy-security main multiverse restricted universe
deb-src hardy-updates main multiverse restricted universe

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##中国科学技术大学更新服务器(教育网,推荐校园网和网通用户使用):

deb hardy main multiverse restricted universe
deb hardy-backports main multiverse restricted universe
deb hardy-proposed main multiverse restricted universe
deb hardy-security main multiverse restricted universe
deb hardy-updates main multiverse restricted universe
deb-src hardy main multiverse restricted universe
deb-src hardy-backports main multiverse restricted universe
deb-src hardy-proposed main multiverse restricted universe
deb-src hardy-security main multiverse restricted universe
deb-src hardy-updates main multiverse restricted universe

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##北京市清华大学更新服务器(教育网,推荐校园网和网通用户使用):

deb hardy main multiverse restricted universe
deb hardy-backports main multiverse restricted universe
deb hardy-proposed main multiverse restricted universe
deb hardy-security main multiverse restricted universe
deb hardy-updates main multiverse restricted universe
deb-src hardy main multiverse restricted universe
deb-src hardy-backports main multiverse restricted universe
deb-src hardy-proposed main multiverse restricted universe
deb-src hardy-security main multiverse restricted universe
deb-src hardy-updates main multiverse restricted universe

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##沈阳市东北大学更新服务器(教育网,推荐校园网和网通用户使用):

deb ftp://ftp.neu.edu.cn/mirror/archive..com// hardy main multiverse restricted universe
deb ftp://ftp.neu.edu.cn/mirror/archive..com// hardy-backports main multiverse restricted universe
deb ftp://ftp.neu.edu.cn/mirror/archive..com// hardy-proposed main multiverse restricted universe
deb ftp://ftp.neu.edu.cn/mirror/archive..com// hardy-security main multiverse restricted universe
deb ftp://ftp.neu.edu.cn/mirror/archive..com// hardy-updates main multiverse restricted universe
deb-src ftp://ftp.neu.edu.cn/mirror/archive..com// hardy main multiverse restricted universe
deb-src ftp://ftp.neu.edu.cn/mirror/archive..com// hardy-backports main multiverse restricted universe
deb-src ftp://ftp.neu.edu.cn/mirror/archive..com// hardy-proposed main multiverse restricted universe
deb-src ftp://ftp.neu.edu.cn/mirror/archive..com// hardy-security main multiverse restricted universe
deb-src ftp://ftp.neu.edu.cn/mirror/archive..com// hardy-updates main multiverse restricted universe

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##中国台湾 台湾大学更新服务器(推荐网通用户使用,电信PING平均响应速度41MS。强烈推荐此源,比较完整,较少出现同步问题):

deb hardy main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb hardy-proposed main multiverse restricted universe
deb-src hardy-proposed main restricted universe multiverse

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##Mirror.vmmatrix.net更新服务器(上海市电信,推荐电信网通用户使用):

deb hardy main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb hardy-proposed main multiverse restricted universe
deb-src hardy-proposed main restricted universe multiverse

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##.cnsite.org更新服务器(福建省福州市 电信):

deb hardy main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb hardy-proposed main multiverse restricted universe
deb-src hardy-proposed main restricted universe multiverse

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##mirror.rootguide.org更新服务器(上海市 电信):

deb hardy main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb hardy-proposed main multiverse restricted universe
deb-src hardy-proposed main restricted universe multiverse
deb hardy main restricted universe multiverse

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##Tw.archive..com台湾官方更新源(速度也相当不错,有时甚至快于内地的):

deb hardy main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb hardy-proposed main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb-src hardy-proposed main restricted universe multiverse

小贴士:只需在上述几个更新源中保留一个你测试出来下载速度最快的源就可以了,不用把所有源添加,添加完国内源之后,当然最好还是在国内源后面再添加一个官方源:
deb hardy main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb hardy-proposed main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
deb-src hardy-proposed main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse

网易更新源(极力推荐电信用户使用)(我在公司用的这个源,速度最高达到1M以上)

deb lucid main universe restricted multiverse
deb-src lucid main universe restricted multiverse
deb lucid-security universe main multiverse restricted
deb-src lucid-security universe main multiverse restricted
deb lucid-updates universe main multiverse restricted
deb lucid-proposed universe main multiverse restricted
deb-src lucid-proposed universe main multiverse restricted
deb lucid-backports universe main multiverse restricted
deb-src lucid-backports universe main multiverse restricted
deb-src lucid-updates universe main multiverse restricted

保存编辑好的文件,终端执行以下命令进行软件升级。
sudo apt-get update    #这一步是更新你的源列表,换源后必须执行
(如果更新速度非常慢请更换源 sudo gedit /etc/apt/sources.list )
sudo apt-get upgrade    #这一步是更新软件
更新完软件后,再继续设置吧。
有时你可能需要使用:sudo apt-get -f install 来修复安装
因为经常会用到终端,所以把终端加到右键菜单:sudo apt-get install nautilus-open-terminal
这样终端就在右键菜单了!!
有必要学会以root权限打开文件夹:sudo apt-get install nautilus-gksu
这样右键单击文件或文件夹,选择以管理员打开!!!
查看隐藏文件是:Ctrl+ H

阅读(1753) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:正则表达式

给主人留下些什么吧!~~