yum install时提示This system is not registered with an entitlement server
This system is not registered with an entitlement server
- 1.Uninstall yum package
- 2.Yum Repo
在一秒钟内看到本质的人和花半辈子也看不清一件事本质的人,自然是不一样的命运。
因为使用redhat自带的yum源要付费,所以需要自己重新生成yum源。
1.Uninstall yum package
查询yum安装的包
rpm -qa | grep yum
将安装包卸载(单个卸)
sudo rpm -e xxxxx --nodeps
将安装包卸载(全卸)
我没执行成功
rpm -qa|grep yum|xargs rpm -e --nodeps下载安装CentOS的yum源
如下几个网站均可,找到图片中的包进行下载
1.阿里云网络源地址:https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/
2.网易163网络源地址:http://mirrors.163.com/centos/7/os/x86_64/Packages/
3.CentOS网络源地址:http://centos.ustc.edu.cn/centos/7/os/x86_64/Packages/
安装全部
sudo rpm -ivh python-
sudo rpm -ivh yum-安装完检查一下
rpm -qa | grep yum安装某个
个别可能失败,有先后顺序
sudo rpm -ivh xxxx
2.Yum Repo
- 下载yum源
http://mirrors.163.com/.help/CentOS7-Base-163.repo
http://mirrors.aliyun.com/repo/Centos-7.repo- 修改配置
cd /etc/yum.repo.d/
vim CentOS-Base.repo
=>没有就create,有则edit
# 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-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
- 上面的yum包都是7版本的
- 将所有的$releasever全部替换成版本号>7
- 进入编辑模式:
%s/$releasever/7/g
- 保存
:wq
- 清理缓存
yum clean all- 重新生成缓存
yum makecache- 查看仓库
yum repolist all
yum install时提示This system is not registered with an entitlement server相关推荐
- centos7 yum 错误 This system is not registered with an entitlement server
现象: 下午安装 cockpit 时,使用 yum 工具的时候哦,出现如下信息: This system is not registered with an entitlement server. Y ...
- 订阅插件提示:This system is not registered with an entitlement server. You can use subscription-manager to
问题描述 [root@ecs-t6-medium-2-linux-20190910000110 /]# yum install -y epel-release 已加载插件:fastestmirror, ...
- This system is not registered with an entitlement server. You can use subscription-manager to regist
当使用yum安装软件时报错 This system is not registered with an entitlement server. You can use subscription-man ...
- CentOS6.9中使用yum install时提示:Cannot find a valid baseurl for repo: centos-sclo-rh
场景 CentOS的版本为6.9,在使用yum install 安装相关依赖时提示: Cannot find a valid baseurl for repo: centos-sclo-rh 注: 博 ...
- CentOS6在使用yum install 时提示镜像源路径不存在:PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found
场景 CentOS6.9的版本在使用 yum install gcc-c++ 安装C和C++的插件时提示: PYCURL ERROR 22 - "The requested URL retu ...
- This system is not registered with an entitlement server.
这是因为你安装了rhel自带的yum,需要付费注册. 解决办法: vi /etc/yum/pluginconf.d/subscription-manager.conf 将这个enable改成0 ...
- 【问题解决】解决创建Android模拟器时提示“No system images installed for this target“的问题
[问题&解决]解决创建Android模拟器时提示"No system images installed for this target"的问题 参考文章: (1)[问题&a ...
- windows server 2008 R2 SP1 安装SQL Server 2008 R2时提示 此操作系统不支持此版本的 SQL Server 版本...
windows server 2008 R2 SP1 安装SQL Server 2008 R2时提示 "此操作系统不支持此版本的 SQL Server 版本" 原因: 安装的时候输 ...
- cnpm install时提示resource busy or locked,syslink...
场景 在使用cnpm install安装项目依赖时提示: resource busy or locked... 注: 博客: https://blog.csdn.net/badao_liumang_q ...
最新文章
- python简单代码演示效果-演示python如何创建和使用一个简单的元类的代码
- win10连接计算机,如何在win10中连接计算机和打印机
- 一个与神经网络分类特征旋转不变性有关的实验
- 3D竞技比赛或成数字娱乐新里程碑
- 快速查询DB Lock的方法
- aws sqs_在Spring中将AWS SQS用作JMS提供程序
- 面试干货 | Java 能否自定义一个类叫 java.lang.System?
- 服务型存储市场的现状
- sublime text 3配置Kotlin
- python面试1000题之1-3
- List vs IEnumerable vs IQueryable vs ICollection vs IDictionary
- Scala 与设计模式(六):Bridge 桥接模式
- 按照鬼哥学so变化,四,第一章的例子
- 数据拟合---使用自定义函数进行非线性拟合 -在Origin。matlab拟合工具箱cftool
- LightOJ 1038-Race to 1 Again(概率dp)
- 1.2.4 List.contains方法——判断列表中是否包含指定元素
- Python可视化——绘制折线图
- 特征选择算法(机器学习)
- 22.基于深度学习的车型识别方法及系统实现
- MATLAB疲劳检测系统