Yum failed (this system isn't registered with RHN.) to resolve

Source: Internet
Author: User
Prompt for the use of the Redhat system on-line installation prompts this system isn't registered with RHN as follows: [root@localhost chenqi]# yum Install httpd
Loaded Plugins:rhnplugin, security
This system is not registered with RHN.
RHN support would be disabled.
Setting up Install Process
No Package httpd available.
Nothing todo
first of all, I'm using redhat5.0, different versions may be different and need to be adjusted properly.

Step one: Uninstall the Redhat yum components

[Root@localhost chenqi]# rpm-qa|grep Yum|xargs rpm-e--nodeps

Step Two: Install the CentOS Yum package (install in turn)

[Root@localhost chenqi]# wget http://mirrors.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.2.22-39.el5.centos.noarch.rpm

[Root@localhost chenqi]# wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/ yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm

[Root@localhost chenqi]# wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm

[Root@localhost chenqi]# wget http://mirrors.ustc.edu.cn/centos/5/os/i386/CentOS/ yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm

Step three: Install the RPM package
Installation order

[Root@localhost chenqi]# RPM-IVH python-iniparse-0.2.3-4.el5.noarch.rpm

[Root@localhost chenqi]# RPM-IVH yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm.4

[Root@localhost chenqi]# RPM-IVH yum-3.2.22-39.el5.centos.noarch.rpm.4 Yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm.3

Note: In this place the third step must be installed together, or the following error may occur:

Error One: Warning:yum-3.2.19-18.el5.centos.noarch.rpm:header V3 DSA signature:nokey, key ID e8562897
error:failed dependencies:
Yum-fastestmirror is needed by Yum-3.2.19-18.el5.centos.noarch

Error two: Warning:yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm:header V3 DSA signature:nokey, key ID e8562897
error:failed dependencies:
Yum >= 3.0 is needed by Yum-fastestmirror-1.1.16-13.el5.centos.noarch

Step four: Download the update source and store it in the system directory
[Root@localhost chenqi]# wget Http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo

[Root@localhost chenqi]# MV Centos_base.repo/etc/yum.repos.d/centos-base.repo

so far yum the installation was successful .

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.