
2014-01-09
cd /etc/yum.repos.d mv CentOS-Base.repo CentOS-Base.repo.save
wget http://centos.ustc.edu.cn/CentOS-Base.repo.5
mv CentOS-Base.repo.5 CentOS-Base.repo
yum update
PS:如果在配置YUM源后,第一次运行yum update命令,出现如下错误。
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID*****
这是由于yum安装了旧版本的GPG keys造成的,解决办法就是
rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY*
网易源 mirrors.163.com
先关闭 fastestmirror
“vi /etc/yum/pluginconf.d/fastestmirror.conf” and set “enable=0″
cd /etc/yum.repos.d/
wget http://mirrors.163.com/.help/CentOS-Base-163.repo
yum makecache //生成缓存
yum update
搜狐源 mirrors.sohu.com
步骤同上,只是源链接修改为:
http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
CentOS 官方镜像列表
http://www.centos.org/modules/tinycontent/index.php?id=32
CentOS 国内镜像
http://mirrors.163.com/centos/(浙江省杭州市电信,武汉电信访问快)
http://mirrors.sohu.com/centos/(山东省联通)
http:://mirrors.shlug.org/centos/(上海市电信真如IDC机房,武汉电信访问慢)
http://mirrors.ta139.com/centos/(移动线路,武汉电信访问快)
http://centos.ustc.edu.cn/centos/(中国科学技术大学,教育网线路 -官方镜像)
http://mirror.centos.net.cn/(北京市网通,-官方镜像)
打开终端,输入sudo gedit /etc/apt/sources.list,然后输入一下内容(我的源列表,自己搜集整理的哦)### 教育网源
## 中国科技大学
deb http://debian.ustc.edu.cn/ubuntu/ jaunty main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ jaunty-backports main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ jaunty-proposed main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ jaunty-security main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ jaunty-updates main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-backports main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-proposed main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-security main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-updates main multiverse restricted universe
## 上海交通大学
deb http://ftp.sjtu.edu.cn/ubuntu/ jaunty main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ jaunty-backports main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ jaunty-proposed main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ jaunty-security main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ jaunty-updates main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ jaunty main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ jaunty-security main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ jaunty-updates main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ jaunty-backports main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ jaunty-proposed main multiverse restricted universe
## 成都电子科技大学
deb http://ubuntu.uestc.edu.cn/ubuntu/ jaunty main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ jaunty-backports main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ jaunty-proposed main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ jaunty-security main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ jaunty main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ jaunty-security main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ jaunty-proposed main restricted universe multiverse
## 成都电子科技大学,非uestc官方域名
# deb http://ubuntu.dormforce.net/ubuntu/ jaunty main multiverse restricted universe
# deb http://ubuntu.dormforce.net/ubuntu/ jaunty-backports main multiverse restricted universe
# deb http://ubuntu.dormforce.net/ubuntu/ jaunty-proposed main multiverse restricted universe
# deb http://ubuntu.dormforce.net/ubuntu/ jaunty-security main multiverse restricted universe
# deb http://ubuntu.dormforce.net/ubuntu/ jaunty-updates main multiverse restricted universe
# deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty main multiverse restricted universe
# deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty-security main multiverse restricted universe
# deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty-updates main multiverse restricted universe
# deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty-backports main multiverse restricted universe
# deb-src http://ubuntu.dormforce.net/ubuntu/ jaunty-proposed main multiverse restricted universe
## 北京交通大学
# deb http://mirror.bjtu.edu.cn/ubuntu/ jaunty main restricted universe multiverse
# deb http://mirror.bjtu.edu.cn/ubuntu/ jaunty-updates main restricted universe multiverse
# deb http://mirror.bjtu.edu.cn/ubuntu/ jaunty-security main restricted universe multiverse
# deb http://mirror.bjtu.edu.cn/ubuntu/ jaunty-backports main restricted universe multiverse
## 西南财经大学
# deb http://ftp.swufe.edu.cn/mirror/ubuntu/ jaunty main restricted universe multiverse
# deb http://ftp.swufe.edu.cn/mirror/ubuntu/ jaunty-backports restricted universe multiverse
# deb http://ftp.swufe.edu.cn/mirror/ubuntu/ jaunty-security main restricted universe multiverse
# deb http://ftp.swufe.edu.cn/mirror/ubuntu/ jaunty-updates main restricted universe multiverse
# deb http://ftp.swufe.edu.cn/mirror/ubuntu/ jaunty-proposed main restricted universe multiverse
# deb-src http://ftp.swufe.edu.cn/mirror/ubuntu/ jaunty main restricted universe multiverse
# deb-src http://ftp.swufe.edu.cn/mirror/ubuntu/ jaunty-backports main restricted universe multiverse
# deb-src http://ftp.swufe.edu.cn/mirror/ubuntu/ jaunty-proposed main restricted universe multiverse
# deb-src http://ftp.swufe.edu.cn/mirror/ubuntu/ jaunty-security main restricted universe multiverse
# deb-src http://ftp.swufe.edu.cn/mirror/ubuntu/ jaunty-updates main restricted universe multiverse
## 兰州大学
# deb http://mirror.lzu.edu.cn/ubuntu/ jaunty main multiverse restricted universe
# deb http://mirror.lzu.edu.cn/ubuntu/ jaunty-backports main multiverse restricted universe
# deb http://mirror.lzu.edu.cn/ubuntu/ jaunty-proposed main multiverse restricted universe
# deb http://mirror.lzu.edu.cn/ubuntu/ jaunty-security main multiverse restricted universe
# deb http://mirror.lzu.edu.cn/ubuntu/ jaunty-updates main multiverse restricted universe
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
## Major bug fix updates produced after the final release of the
## distribution.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
### 官方源
# deb http://archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse
# deb http://archive.ubuntu.com/ubuntu jaunty-security main restricted universe multiverse
# deb http://archive.ubuntu.com/ubuntu jaunty-updates main restricted universe multiverse
# deb http://archive.ubuntu.com/ubuntu jaunty-backports main restricted universe multiverse
# deb http://archive.ubuntu.com/ubuntu jaunty-proposed main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu jaunty-security main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu jaunty-updates main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu jaunty-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu jaunty-proposed main restricted universe multiverse
# deb http://archive.canonical.com/ubuntu jaunty partner
# deb http://security.ubuntu.com/ubuntu jaunty-security universe
# deb http://security.ubuntu.com/ubuntu jaunty-security multiverse
# deb http://security.ubuntu.com/ubuntu jaunty-security main restricted
# deb-src http://archive.canonical.com/ubuntu jaunty partner
# deb-src http://security.ubuntu.com/ubuntu jaunty-security universe
# deb-src http://security.ubuntu.com/ubuntu jaunty-security multiverse
# deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted
# deb http://cn.archive.ubuntu.com/ubuntu/ jaunty universe
# deb http://cn.archive.ubuntu.com/ubuntu/ jaunty multiverse
# deb http://cn.archive.ubuntu.com/ubuntu/ jaunty main restricted
# deb http://cn.archive.ubuntu.com/ubuntu/ jaunty-updates universe
# deb http://cn.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
# deb http://cn.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted
# deb http://cn.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ jaunty universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ jaunty multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ jaunty main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ jaunty-updates universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
# deb http://cn.archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse
# deb http://cn.archive.ubuntu.com/ubuntu jaunty-security main restricted universe multiverse
# deb http://cn.archive.ubuntu.com/ubuntu jaunty-updates main restricted universe multiverse
# deb http://cn.archive.ubuntu.com/ubuntu jaunty-backports main restricted universe multiverse
# deb http://cn.archive.ubuntu.com/ubuntu jaunty-proposed main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu jaunty-security main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu jaunty-updates main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu jaunty-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu jaunty-proposed main restricted universe multiverse
# deb http://archive.ubuntu.org.cn/ubuntu-cn/ jaunty main restricted universe multiverse
## Ubuntu.cn99.com 更新服务器(江苏省常州市电信,推荐电信用户使用)
# deb http://ubuntu.cn99.com/ubuntu/ jaunty main restricted universe multiverse
# deb http://ubuntu.cn99.com/ubuntu/ jaunty-security main restricted universe multiverse
# deb http://ubuntu.cn99.com/ubuntu/ jaunty-updates main restricted universe multiverse
# deb http://ubuntu.cn99.com/ubuntu/ jaunty-proposed main restricted universe multiverse
# deb http://ubuntu.cn99.com/ubuntu/ jaunty-backports main restricted universe multiverse
# deb http://ubuntu.cn99.com/ubuntu-cn/ jaunty main restricted universe multiverse
# deb-src http://ubuntu.cn99.com/ubuntu/ jaunty main restricted universe multiverse
# deb-src http://ubuntu.cn99.com/ubuntu/ jaunty-security main restricted universe multiverse
# deb-src http://ubuntu.cn99.com/ubuntu/ jaunty-updates main restricted universe multiverse
# deb-src http://ubuntu.cn99.com/ubuntu/ jaunty-proposed main restricted universe multiverse
# deb-src http://ubuntu.cn99.com/ubuntu/ jaunty-backports main restricted universe multiverse
## 台湾大学更新服务器(推荐网通用户使用,强烈推荐此源,比较完整)
# deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty main restricted universe multiverse
# deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty main restricted universe multiverse
# deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-updates main restricted universe multiverse
# deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-updates main restricted universe multiverse
# deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-backports main restricted universe multiverse
# deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-backports main restricted universe multiverse
# deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-security main restricted universe multiverse
# deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-security main restricted universe multiverse
# deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-proposed main multiverse restricted universe
# deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-proposed main restricted universe multiverse
## 台湾国网中心服务器
# deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ jaunty main universe restricted multiverse
# deb http://security.ubuntu.com/ubuntu/ jaunty-security universe main multiverse restricted
# deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ jaunty-updates universe main multiverse restricted
# deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ jaunty main universe restricted multiverse
# deb-src http://security.ubuntu.com/ubuntu/ jaunty-security universe main multiverse restricted
# deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ jaunty-updates universe main multiverse restricted
## 网易163更新服务器
# deb http://mirrors.163.com/ubuntu/ jaunty main restricted universe multiverse
# deb http://mirrors.163.com/ubuntu/ jaunty-security main restricted universe multiverse
# deb http://mirrors.163.com/ubuntu/ jaunty-updates main restricted universe multiverse
# deb http://mirrors.163.com/ubuntu/ jaunty-proposed main restricted universe multiverse
# deb http://mirrors.163.com/ubuntu/ jaunty-backports main restricted universe multiverse
# deb-src http://mirrors.163.com/ubuntu/ jaunty main restricted universe multiverse
# deb-src http://mirrors.163.com/ubuntu/ jaunty-security main restricted universe multiverse
# deb-src http://mirrors.163.com/ubuntu/ jaunty-updates main restricted universe multiverse
# deb-src http://mirrors.163.com/ubuntu/ jaunty-proposed main restricted universe multiverse
# deb-src http://mirrors.163.com/ubuntu/ jaunty-backports main restricted universe multiverse
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)