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-
: 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>

原因是RHEL是收费的,需要注册才可正常使用。解决办法是用CentOS的yum源替换掉原yum源,CentOS已经被红帽收购,且跟RHEL系统没多大区别,可以免费使用

2、查看Redhat的原yum源

3、进行卸载

4、确定本机可以上网

5、确保http://mirrors.163.com/centos/可以访问,找到自己所需版本进行下载
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-chardet-2.2.1-3.el7_1.noarch.rpm
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/yum-3.4.3-163.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-plugin-fastestmirror-1.1.31-52.el7.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-updateonboot-1.1.31-52.el7.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-utils-1.1.31-52.el7.noarch.rpm

如果需要可以拷贝到所需地址:[[email protected] ~]# scp -r /home/software/yum [email protected]:/home/software/

6、安装软件包
[[email protected] yum]# rpm -ivh python-*
[[email protected] yum]# rpm -ivh yum-*

7、新建repo配置文件,如果是其他Relhat版本,将7改为对应的版本数字
[[email protected] yum.repos.d]# vim /etc/yum.repos.d/CenOS-Base.repo
#CentOS-Base.repo
[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

8、清除缓存 [[email protected] ~]# yum clean all
9、验证是否ok [[email protected] ~]# yum install -y httpd

原文地址:https://www.cnblogs.com/zzvb/p/12611510.html

时间: 2024-08-29 08:05:57

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

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

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 a

Linux之RedHat7如何更换yum源

目前,我们常见的系统大概就是Windows.Linux和Mac OS了.Windows系统应该是大部分人最早开始接触的系统,毕竟Windows系统使用起来相当方便,只需要点点鼠标,外加会简单的打字,一般看视频.听音乐.上网都是没问题的.追求完美体验的用户可能会更加喜欢Mac OS系统,相比Windows系统而言,Mac OS用户界面更加的华丽,设计很人性化,用户体验会好很多.至于Linux,则主要安装在服务器上,一般人基本不太会接触,但是对于运维.开发人员而言,可能是不得不掌握的一种操作系统.

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

RedHat Enterprise Linux 6.4使用yum安装出现This system is not registered to Red Hat Subscription Management

我虚拟机安装的系统是RedHat Enterprise Linux 6.4-i686,是32位的.使用yum命令安装软件时候出现以下错误: This system is not registered to Red Hat Subscription Management.You can use subscription-manager to register. 主要原因就是redhat的yum源是需要注册付费的,所以我打算卸掉红帽原有的yum源. 步骤一: 首先我们检查一下当前已经安装的yum包

redhat7 配置使用centos的yum源

新安装了redhat7.安装后,登录系统,使用yum update 更新系统.提示: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. 无法更新. redhat 默认自带的 yum 源需要注册,才能更新.我们想不花钱也可以更新,需要替换掉redhat的yum源. 1.检查是否安装yum包 查看RHEL是否安装了yum,若是安

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