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

基础环境

系统版本:anolis7.9
yum版本:3.4.3

异常出现场景

使用yum clean all命令清理缓存时,出现以下显示

已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager

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

正在清理软件源: extras kubernetes os updates
Cleaning up list of fastest mirrors

解决方案

要么进行注册,要么关闭这个功能,这里仅介绍后者

找到yum源调用订阅管理插件,通常在/usr/lib/yum-plugins/subscription-manager.py这里。
查看文件内容找到这段

conduit.info(2, 'subscription-manager plugin disabled "%d" system repositories with respect of configuration in /etc/yum/pluginconf.d/subscription-manager.conf' % (disable_count))

可知该插件的配置文件在/etc/yum/pluginconf.d/subscription-manager.conf

编辑该配置文件如下

[main]
enabled=0

重新执行yum clean all,显示如下

已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos
正在清理软件源: extras kubernetes os updates

异常修复完毕。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值