iis服务器助手广告广告
返回顶部
首页 > 资讯 > 操作系统 >RHEL 6以上操作系统Yum提示This system is not registered怎么办
  • 536
分享到

RHEL 6以上操作系统Yum提示This system is not registered怎么办

2023-06-05 15:06:57 536人浏览 安东尼
摘要

这期内容当中小编将会给大家带来有关RHEL 6以上操作系统Yum提示This system is not reGIStered怎么办,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。RHEL 6以上操作系统Y

这期内容当中小编将会给大家带来有关RHEL 6以上操作系统Yum提示This system is not reGIStered怎么办,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。

RHEL 6以上操作系统Yum提示This system is not registered

一、问题现象:

[root@open_source ~]# yum clean

Loaded plugins: product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Error: clean requires an option: headers, packages, metadata, dbcache, plugins, expire-cache, rpmdb, all

[root@open_source ~]# yum check-update

Loaded plugins: product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

[root@open_source ~]# yum makecache

Loaded plugins: product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

base                                                                                | 2.8 kB  00:00:00    

Metadata Cache Created

二、问题原因:

       因为我的操作系统使用的是RedHat,提示需要注册订阅,说白了就是要掏钱才给用。

三、问题分析:

       该问题的处理办法实际上很简单,因为RedHat是商业版企业Linxu系统,其涉及到的包只有Yum,我们可以通过替换社区版的包解决此问题。

四、解决办法:

       替换社区版Centos的包解决此问题。

4.1. 获取包的途径主要有以下几个:

Http://mirror.centos.org/

https://mirrors.edge.kernel.org/

http://mirrors.aliyun.com/centos/

<1span style="font-family:"&color:#4EA1DB;text-underline:none">http://mirrors.sohu.com

……

       4.2. 我通过Centos Yum站点下载以下四个所需的包

http://mirror.centos.org/centos-7/7.7.1908/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm

http://mirror.centos.org/centos-7/7.7.1908/os/x86_64/Packages/Python-urlgrabber-3.10-9.el7.noarch.rpm

http://mirror.centos.org/centos-7/7.7.1908/os/x86_64/Packages/yum-3.4.3-163.el7.centos.noarch.rpm

http://mirror.centos.org/centos-7/7.7.1908/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm

http://mirror.centos.org/centos-7/7.7.1908/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-52.el7.noarch.rpm

注意:下载的包要大于或等于当前系统版本,下载之前要确认操作系统版本,可通过命令cat /etc/redhat-release 查看。

       4.3 卸载系统中现有的yum包

[root@open_source ~]# rpm -qa|grep yumyum-metadata-parser-1.1.4-10.el7.x86_64yum-3.4.3-163.el7.noarchyum-rhn-plugin-2.0.1-10.el7.noarch[root@open_source ~]# rpm -qa|grep yum | xargs rpm -e --nodeps[root@open_source ~]# rpm -qa|grep yum[root@open_source ~]#

    4.4 分别安装刚才下载的几个RPM包

[root@open_source CentOS_yum]# rpm -ivh python-iniparse-0.4-9.el7.noarch.rpm warning: python-iniparse-0.4-9.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEYPreparing...                          ################################# [100%]        package python-iniparse-0.4-9.el7.noarch is already installed        file /usr/lib/python2.7/site-packages/iniparse/ini.pyc from install of python-iniparse-0.4-9.el7.noarch conflicts with file from package python-iniparse-0.4-9.el7.noarch        file /usr/lib/python2.7/site-packages/iniparse/ini.pyo from install of python-iniparse-0.4-9.el7.noarch conflicts with file from package python-iniparse-0.4-9.el7.noarch [root@open_source CentOS_yum]# rpm -ivh python-urlgrabber-3.10-9.el7.noarch.rpm warning: python-urlgrabber-3.10-9.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEYPreparing...                          ################################# [100%]        package python-urlgrabber-3.10-9.el7.noarch is already installed        file /usr/lib/python2.7/site-packages/urlgrabber/grabber.pyc from install of python-urlgrabber-3.10-9.el7.noarch conflicts with file from package python-urlgrabber-3.10-9.el7.noarch        file /usr/lib/python2.7/site-packages/urlgrabber/grabber.pyo from install of python-urlgrabber-3.10-9.el7.noarch conflicts with file from package python-urlgrabber-3.10-9.el7.noarch [root@open_source CentOS_yum]# rpm -ivh yum-metadata-parser-1.1.4-10.el7.x86_64.rpm warning: yum-metadata-parser-1.1.4-10.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEYPreparing...                          ################################# [100%]Updating / installing...   1:yum-metadata-parser-1.1.4-10.el7 ################################# [100%] [root@open_source CentOS_yum]# rpm -ivh yum-3.4.3-163.el7.centos.noarch.rpm yum-plugin-fastestmirror-1.1.31-52.el7.noarch.rpm warning: yum-3.4.3-163.el7.centos.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEYPreparing...                          ################################# [100%]Updating / installing...   1:yum-plugin-fastestmirror-1.1.31-5################################# [ 50%]   2:yum-3.4.3-163.el7.centos         ################################# [100%] [root@open_source CentOS_yum]# rpm -qa|grep yumyum-metadata-parser-1.1.4-10.el7.x86_64yum-3.4.3-163.el7.centos.noarchyum-plugin-fastestmirror-1.1.31-52.el7.noarch

    4.5 验证

[root@open_source CentOS_yum]# yum makecacheLoaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-managerThis system is not registered with an entitlement server. You can use subscription-manager to register.Determining fastest mirrorsbase                                                                                                                       | 2.8 kB  00:00:00     (1/5): base/group_gz                                                                                                       | 103 kB  00:00:00     (2/5): base/primary                                                                                                        | 2.0 MB  00:00:00     (3/5): base/filelists                                                                                                      | 3.1 MB  00:00:00     (4/5): base/productid                                                                                                      | 1.6 kB  00:00:00     (5/5): base/other                                                                                                          | 1.1 MB  00:00:00     base                                                                                                                                    5229/5229base                                                                                                                                    5229/5229base                                                                                                                                    5229/5229Metadata Cache Created [root@open_source CentOS_yum]# yum install -y ftpLoaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-managerThis system is not registered with an entitlement server. You can use subscription-manager to register.Loading mirror speeds from cached hostfileResolving Dependencies--> Running transaction check---> Package ftp.x86_64 0:0.17-67.el7 will be installed--> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================== Package                        Arch                              Version                                   Repository                       Size==================================================================================================================================================Installing: ftp                            x86_64                            0.17-67.el7                               base                             61 k Transaction Summary==================================================================================================================================================Install  1 Package Total download size: 61 kInstalled size: 96 kDownloading packages:Running transaction checkRunning transaction testTransaction test succeededRunning transactionWarning: RPMDB altered outside of yum.** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:rhn-check-2.0.2-24.el7.x86_64 has missing requires of yum-rhn-plugin >= ('0', '1.6.4', '1')  Installing : ftp-0.17-67.el7.x86_64                                                                                                         1/1   Verifying  : ftp-0.17-67.el7.x86_64                                                                                                         1/1  Installed:  ftp.x86_64 0:0.17-67.el7                                                                                                                         Complete!

通过替换Yum包的方式完成问题处理,Yum可以正常使用了。

上述就是小编为大家分享的RHEL 6以上操作系统Yum提示This system is not registered怎么办了,如果刚好有类似的疑惑,不妨参照上述分析进行理解。如果想知道更多相关知识,欢迎关注编程网操作系统频道。

--结束END--

本文标题: RHEL 6以上操作系统Yum提示This system is not registered怎么办

本文链接: https://www.lsjlt.com/news/243483.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作