This system is not registered with RHN问题解决

1.问题:

公司有一台服务器,因为一直用的是centos的系统,但是那个分中心没有现成centos的系统,问我红帽5.3的能行吗?我说试一试,然后在配置yum源的时候就遇到了问题,提示如下错误。这是因为这个系统没有在红帽注册,所以不能用yum。

[[email protected] ~]# yum repolist
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
repolist: 0

2.解决:

红帽和centos的区别基本就是开源与不开源,虽然红帽定位于商用,centos定位于家用,但是很多企业为了节省成本,仍使用centos。但是用的也很好。所以基本上他们两的yum源是可以互用的。所以找到自己对应版本的centos yum装上就可以了

3.步骤:

3.1查看原有的yum

[[email protected] yum.repos.d]# rpm -qa | grep yum
yum-rhn-plugin-0.5.3-30.el5
yum-3.2.19-18.el5
yum-security-1.1.16-13.el5
yum-updatesd-0.9-2.el5
yum-metadata-parser-1.1.2-2.el5

3.2卸载原有的yum

[[email protected] yum.repos.d]# rpm -qa | grep yum | xargs rpm -e --nodeps

3.3下载yum 的rpm包

但是你要搞清楚,你是i386的cpu还是x84_64。支持X86指令系统的,都属于X86家族, i386是指intel发布的通用处理器类型,前者是64位数码机器适用,后者是32位数码机器适用。前者机器可以兼用32位数码软件,后者机器只能用32位数码软件。这就是两者区别。

我的机器是64位的,所以下载的是 如下的软件包

[[email protected] yum.repos.d]# wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
[[email protected] yum.repos.d]# wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
[[email protected] yum.repos.d]# wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-4.el5.x86_64.rpm

但是安装的时候安不上,有依赖关系,如果你的电脑上提前就有这些包的话就可以使用64位的

[[email protected] yum.repos.d]# rpm -ivh yum-*
warning: yum-3.2.22-40.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-4.el5.x86_64
        libc.so.6(GLIBC_2.2.5)(64bit) is needed by yum-metadata-parser-1.1.2-4.el5.x86_64
        libglib-2.0.so.0()(64bit) is needed by yum-metadata-parser-1.1.2-4.el5.x86_64
        libm.so.6()(64bit) is needed by yum-metadata-parser-1.1.2-4.el5.x86_64
        libpthread.so.0()(64bit) is needed by yum-metadata-parser-1.1.2-4.el5.x86_64
        libsqlite3.so.0()(64bit) is needed by yum-metadata-parser-1.1.2-4.el5.x86_64
        libxml2.so.2()(64bit) is needed by yum-metadata-parser-1.1.2-4.el5.x86_64
        libz.so.1()(64bit) is needed by yum-metadata-parser-1.1.2-4.el5.x86_64
[[email protected] yum.repos.d]# rpm -ivh --nodeps yum-*
warning: yum-3.2.22-40.el5.centos.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing...                ########################################### [100%]
        package yum-metadata-parser-1.1.2-4.el5.x86_64 is intended for a x86_64 architecture
[[email protected] yum.repos.d]# which yum
/usr/bin/which: no yum in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

没有办法,只能下载通用的i386版本

[[email protected] yum.repos.d]# wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
[[email protected] yum.repos.d]# wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
[[email protected] yum.repos.d]# wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-4.el5.i386.rpm

3.4安装,可以忽略警告

[[email protected] yum.repos.d]# rpm -ivh yum-*
warning: yum-3.2.22-40.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.5验证,可以使用

[[email protected] yum.repos.d]# yum clean all
Loaded plugins: fastestmirror
Cleaning up Everything
Cleaning up list of fastest mirrors
[[email protected] yum.repos.d]# yum repolist
Loaded plugins: fastestmirror
Determining fastest mirrors
addons                                                                                                                 | 1.9 kB     00:00     
addons/primary_db                                                                                                      | 1.1 kB     00:00     
base                                                                                                                   | 1.1 kB     00:00     
base/primary                                                                                                           | 996 kB     00:03     
base                                                                                                                                2791/2791
extras                                                                                                                 | 2.1 kB     00:00     
extras/primary_db                                                                                                      | 164 kB     00:00     
update                                                                                                                 | 1.9 kB     00:00     
update/primary_db                                                                                                      | 729 kB     00:02     
repo id                                                       repo name                                                                 status
addons                                                        CentOS-5 - Addons                                                             0
base                                                          CentOS-5 - Base                                                           2,791
extras                                                        CentOS-5 - Extras                                                           272
update                                                        CentOS-5 - Updates                                                          653
repolist: 3,716
时间: 2024-08-29 08:05:57

This system is not registered with RHN问题解决的相关文章

解决Redhat yum出现This system is not registered with RHN的方案

最近博主在学习Linux,菜鸟级别的的选手连装个Chrome都觉得难,悲了个催的--百度了很多教程,大多是类似的.博主的配置是在VM8下搭建的RHEL5.3 (Tikanga)版本,不知道什么原因,每次在输入yum install google-chrome-stable之后就会出现"This system is not registered with RHN"的错误提示,蛋疼不已.百度无果后,GG大神帮上忙了(搜索Redhat This system is not registere

解决This system is not registered with RHN

在redhat中使用yum命令的时候,可能会遇到这种情况,yum install build-essential提示This system is not registered with RHN,然后yum安装失败.下面分享一下解决办法. 1 .Redhat之所以会出现这个错误是因为没有注册RHN,我们只需要更新一下yum的源就可以了.使用命令 cd /etc/yum.repos.d/   进入yum的配置目录. 2 .在终端中输入 wget http://docs.linuxtone.org/s

yum This system is not registered with RHN. RHN support will be disabled

新安装的red hat 系统,想使用yum安装一些服务时报错: Loading "rhnplugin" plugin Loading "installonlyn" plugin This system is not registered with RHN. RHN support will be disabled. Setting up Install Process Setting up repositories No Repositories Available

This system is not registered with RHN.解决办法

1.背景描述 [[email protected] ~]# yum -y install gcc Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. Setting up Install Process Nothing to do 2.解决办法 Redhat出现这个错误是因为没有注册RHN,因此只需要更新一下yum的源就可以了. 2.1进

yum提示This system is not registered with RHN.RHN support will be disabled.

[[email protected] ~]# yum install mlocateLoading "security" pluginLoading "rhnplugin" pluginThis system is not registered with RHN.RHN support will be disabled.Setting up Install ProcessParsing package install argumentsNo package mloc

怎样解决This system is not registered with RHN.

今天我必须写下这篇文章,因为在我刚刚接触到Linux下安装oracle时碰到了Linux中少xscreensaver.rpm包自己弄了很久.最后还是被一个大哥帮我解决了:只能说非常的感谢你! 我试过好几种方法:第一种 我使用了yum的在线安装但是失败了,后来我通过找资料发现其实是可以通过安装的: 1. 下载repo文件 Oracle Linux 4, Update 6 or Newer # cd /etc/yum.repos.d # mv Oracle-Base.repo Oracle-Base

Posts Tagged ‘This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register问题的解决办法

HowTo Install redhat package with YUM command without RHN February 26, 2014 in Redhat / Linux Tips and TricksTags: build local repository, build redhat local repository, HowTo Install redhat package with YUM command without RHN, This system is not re

yum报错:This system is not registered to Red Hat Subscription Management.解决办法

使用yum安装软件,报错如下: [[email protected] ~]# yum -y install mariadbLoaded plugins: langpacks, product-id, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.No package mariadb

关于免费解决RedHat6.5的:This system is not registered to Red Hat Subscription Management..

redhat默认自带的yum源需要注册,才能更新,报错:This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.可替换为centos对应的源. 操作如下: 1.检查是否安装yum包.查看RHEL是否安装了yum,若是安装了,那么又有哪些yum包:    rpm -qa |grep yum 2 删除redhat自带的yum包    r