yum安装报错Error: Nothing to do

yum 安装报错

Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
No package finger available.
Error: Nothing to do

解决办法,更换源
1、查看系统版本
finger

2、下载163安装源,进入http://mirrors.163.com/.help/centos.html,下载自己系统对应的版本
yum-163

3、复制到/etc/yum.repos.d/ 目录下,并且备份rhe.source.repo为.bak,用VIM打开CentOS6-Base-163.repo

:$s/$releasever/6/g   #把全部$releasever替换为6,下载的什么版本,替换为几,

4、清除缓存、获取yum列表,等待完成即可
make-cache

参考:http://www.openskill.cn/article/126