博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
yum 失败(This system is not registered with RHN.)解决方法
阅读量:2299 次
发布时间:2019-05-09

本文共 1058 字,大约阅读时间需要 3 分钟。

使用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.安装centos的yum包

[root@localhost ~]# wget  

[root@localhost ~]# wget  
[root@localhost ~]# wget  
[root@localhost ~]# rpm -ivh *.rpm
warning: yum-3.2.22-37.el5.centos.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing...                ########################################### [100%]
   1:yum-metadata-parser    ########################################### [ 33%]
   2:yum-fastestmirror      ########################################### [ 67%]
   3:yum                    ########################################### [100%]

 

3. 下载更新源,并存放在系统目录中

[root@localhost ~]# wget 

[root@localhost ~]#mv CentOS_Base.repo /etc/yum.repos.d/CentOS-Base.repo

 

4.生成缓存并进行安装

[root@localhost ~]# yum makecache

[root@localhost ~]# yum install httpd

转载地址:http://gjkib.baihongyu.com/

你可能感兴趣的文章
SpringBoot 2 源码学习笔记(二)
查看>>
SpringBoot2 源码学习笔记(三)
查看>>
Spring源码学习笔记 (一)bean是怎么生成的
查看>>
路由器
查看>>
稳定排序和不稳定排序
查看>>
指针和引用的区别
查看>>
空悬指针和野指针
查看>>
RAII 资源获取就是初始化
查看>>
explicit关键字
查看>>
函数指针 回调函数
查看>>
带参数的main
查看>>
typedef
查看>>
vector重新申请内存
查看>>
C++ STL 排序源码详解(一)
查看>>
C++ STL 排序源码详解(二)
查看>>
各种排序算法的时间复杂度
查看>>
ROC曲线与AUC值
查看>>
Ali开源软件Sentinel的思考 Issue #59:关于线程限流问题的讨论
查看>>
spring boot + spring cache 实现两级缓存(redis + ehcache)
查看>>
GBDT
查看>>