redhat5.3无法使用yum安装软件,百度到的这个方法,但实施时出错。不知道如何解决这个问题。
百度的方法:
RHEL下yum更新出现This system is not registered with RHN解决办法 说一下如何改用CentOS的yum软件来升级未注册的RHEL系统: 首先 rpm -qa|grep yum 查看 yum 服务相关的包 # rpm -qa|grep yum www.cit.cn yum-security-1.1.16-13.el5_4.1 yum-3.2.22-33.el5 yum-updatesd-0.9-2.el5 yum-metadata-parser-1.1.2-3.el5 # rpm -qa|grep yum|xargs rpm -e --nodeps 强制删除这一些包 CentOS yum 服务相关的 rpm 包 wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-39.el5.centos.noarch.rpm wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm # rpm -ivh yum-* warning: yum-3.2.22-39.el5.centos.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897 www.cit.cn Preparing... ########################################### [100%] 1:yum-metadata-parser ########################################### [ 33%] 2:yum-fastestmirror ########################################### [ 67%] 3:yum ########################################### [100%] 哦了,安装完毕,现在进入系统的yum目录 # cd /etc/yum.repos.d/ # mv rhel-debuginfo.repo rhel-debuginfo.repo.bakup # mv rhel-source.repo rhel-source.repo.bakup # wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo (下载CentOS的repo包) # yum makecache 等待 yum 库更新完毕,就可以 yum 安装软件了
本人实施时出现的问题:
[root@localhost yum.repos.d]# rpm -ivh yum-*
warning: yum-3.2.22-39.el5.centos.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
libc.so.6()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5.centos.x86_64
libc.so.6(GLIBC_2.2.5)(64bit) is needed by yum-metadata-parser-1.1.2-3.el5.centos.x86_64
libglib-2.0.so.0()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5.centos.x86_64
libm.so.6()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5.centos.x86_64
libpthread.so.0()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5.centos.x86_64
libsqlite3.so.0()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5.centos.x86_64
libxml2.so.2()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5.centos.x86_64
libz.so.1()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5.centos.x86_64
欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) | Powered by Discuz! X3.2 |