天天看點

This system is not registered with RHN.   yum安裝失敗

使用RedHat 系統線上安裝時提示This system is not registered with RHN.如下:

[root@localhost ~]# yum install httpd

Loaded plugins: rhnplugin, security

This system is not registered with RHN.

RHN support will be disabled.

Setting up Install Process

No package httpd available.

Nothing to do

解決方案:

1.解除安裝redhat自帶的yum元件

[root@localhost ~]# rpm -qa|grep yum|xargs rpm -e --nodeps

2.重裝yum

yum配置

[my]

name=my

gpgcheck=1

enabled=1

baseurl=file:///mnt/Server

gpgkey=file:///mnt/RPM-GPG-KEY-redhat-release