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

错误信息

[[email protected] apache-tomcat-7.0.70]# yum install gcc-c++
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.
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 To enable Red Hat Subscription Management repositories:
     subscription-manager repos --enable <repo>
 To enable custom repositories:
     yum-config-manager --enable <repo>

解决方法

1、查看redhat 7.0系统本身所安装的那些yum软件包

[[email protected] apache-tomcat-7.0.70]# rpm -qa | grep yum
yum-rhn-plugin-2.0.1-10.el7.noarch
yum-metadata-parser-1.1.4-10.el7.x86_64
yum-3.4.3-158.el7.noarch

2、卸载这些软件包

[[email protected] apache-tomcat-7.0.70]# rpm -e yum-rhn-plugin-2.0.1-10.el7.noarch --nodeps
[[email protected] apache-tomcat-7.0.70]# rpm -e yum-metadata-parser-1.1.4-10.el7.x86_64 --nodeps
[[email protected] apache-tomcat-7.0.70]# rpm -e yum-3.4.3-158.el7.noarch --nodeps

3、保证本机电脑能上网

[[email protected] apache-tomcat-7.0.70]# ping www.baidu.com
PING www.a.shifen.com (61.135.169.121) 56(84) bytes of data.
64 bytes from 61.135.169.121 (61.135.169.121): icmp_seq=1 ttl=57 time=5.17 ms
64 bytes from 61.135.169.121 (61.135.169.121): icmp_seq=2 ttl=57 time=4.52 ms
64 bytes from 61.135.169.121 (61.135.169.121): icmp_seq=3 ttl=57 time=5.69 ms
64 bytes from 61.135.169.121 (61.135.169.121): icmp_seq=4 ttl=57 time=3.33 ms
64 bytes from 61.135.169.121 (61.135.169.121): icmp_seq=5 ttl=57 time=5.57 ms
64 bytes from 61.135.169.121 (61.135.169.121): icmp_seq=6 ttl=57 time=5.18 ms

4、找到自己所需要的版本下载

wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-kitchen-1.1.1-5.el7.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-chardet-2.2.1-1.el7_1.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-158.el7.centos.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-utils-1.1.31-45.el7.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-updateonboot-1.1.31-45.el7.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm

5、安装软件包

rpm -ivh python-*

rpm -ivh yum-*

6、新建repo 配置文件(如果是其他版本,则将下面的7改为你当前的版本数字)

vim /etc/yum.repos.d/CentOS-Base.repo

#CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$7 - Base - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=os
baseurl=http://mirrors.163.com/centos/7/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

#released updates
[updates]
name=CentOS-$7 - Updates - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=updates
baseurl=http://mirrors.163.com/centos/7/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$7 - Extras - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=extras
baseurl=http://mirrors.163.com/centos/7/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$7 - Plus - 163.com
baseurl=http://mirrors.163.com/centos/7/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

7、清除缓存

yum clean all

8、测试是否正常

yum -y install lftp

参考网址:

https://www.linuxidc.com/Linux/2017-04/142444.htm

http://qingfengjushi1.iteye.com/blog/2282986(这个链接地址里面有已经下载好的rpm)

https://www.cnblogs.com/horizonli/p/5507112.html

原文地址:https://www.cnblogs.com/caodneg7/p/11495099.html

时间: 2024-08-30 10:55:50

This system is not registered with an entitlement server. You can use subscription-manager to register.的相关文章

Red Hat Enterprise 7.5 安装后无法进入图形界面 This system is not registered with an entitlement server. You can use subscription-manager to register.

This system is not registered with an entitlement server. You can use subscription-manager to register.由 匿名 (未验证) 提交于 2018-05-13 20:50:571:Test Environment[[email protected] ~]# cat /etc/os-releaseNAME="Red Hat Enterprise Linux Server"VERSION=&q

Cockpit subscriptions on CentOS 7 - This system is not registered with an entitlement server. You can use subscription-manager to register.

下午安装 cockpit 时,使用 yum 工具的时候哦,出现如下信息: This system is not registered with an entitlement server. You can use subscription-manager to register. 尽管不影响centos 的使用,安装软件也没有任何的影响.但是也是想知道其中的原因:下面是在国外论坛上对于centos 的讨论. 问题: Installing Cockpit on CentOS7 adds the f

RedHat7.5 针对This system is not registered with an entitlement server问题,更换yum源

1.报错现象如下:[[email protected] ~]# yum install httpd已加载插件:langpacks, product-id, search-disabled-repos, subscription- : managerThis system is not registered with an entitlement server. You can use subscription-manager to register.There are no enabled 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

解决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

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

解决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

关于免费解决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

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