【发布时间】:2015-03-14 21:24:28
【问题描述】:
“yum 更新”失败后,yum 不起作用。
如果我尝试启动“yum update”,我会得到:
# yum update
Loaded plugins: dellsysid, fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. $releasever is not a valid release or hasnt been released yet/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/$releasever/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
我下载并尝试安装“centos-release”但出现错误:
# rpm -Uvh centos-release-6-6.el6.centos.12.2.x86_64.rpm
error: centos-release-6-6.el6.centos.12.2.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: BAD
error: centos-release-6-6.el6.centos.12.2.x86_64.rpm cannot be installed
最奇怪的是:
# rpm -q rpm
package rpm is not installed
如何解决问题并成功运行 yum?
【问题讨论】: