Centos7使用yum时报“This system is not registered with an entitlement server. You can use......”错解决方法

1、Centos7使用yum时报“This system is not registered with an entitlement server. You can use subscription-manager to register.”错解决方法
在这里插入图片描述
2、卸载所有subscription-manager相关的包
[root@localhost yum.repos.d]# which subscription-manager
/usr/sbin/subscription-manager
[root@localhost yum.repos.d]# rm /usr/sbin/subscription-manager
[root@localhost yum.repos.d]# rpm -qa subscription-manager
subscription-manager-1.24.50-1.el7.centos.x86_64
[root@localhost yum.repos.d]# rpm -e docker-client-2:1.13.1-209.git7d71120.el7.centos.x86_64
[root@localhost yum.repos.d]# rpm -e docker-common-2:1.13.1-209.git7d71120.el7.centos.x86_64
[root@localhost yum.repos.d]# rpm -e
[root@localhost yum.repos.d]# rpm -e containers-common-1:0.1.40-11.el7_8.x86_64
[root@localhost yum.repos.d]# rpm -e subscription-manager-1.24.50-1.el7.centos.x86_64
警告:文件 /usr/sbin/subscription-manager: 移除失败: 没有那个文件或目录
警告:/etc/yum/pluginconf.d/subscription-manager.conf 已另存为 /etc/yum/pluginconf.d/subscription-manager.conf.rpmsave
[root@localhost yum.repos.d]# init 6

3、然后就可以正常使用了
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这个误提示 "This system is not registered with an entitlement server. You can use subscription-manager to register" 指的是在使用 Red Hat 或者类似的 Linux 发行版(如 CentOS, Fedora)时,系统未正确注册到订阅管理服务器,导致无法访问软件更新、技术支持或商业应用等服务。 解决这个问题通常需要以下几个步骤: 1. **登录到管理员账户**:确保你有足够的权限执行注册操作,这可能需要 root 或者有相应权限的用户账户。 2. **打开subscription-manager命令行工具**:在终端中输入 `subscription-manager`,然后按回车。 3. **注册系统**:如果尚未注册,可以使用 `register` 命令开始注册过程。通常需要提供 Red Hat Network (RHN) 认证信息,包括用户名(通常为电子邮件地址)和密码,或者认证令牌(如果有的话)。 ```bash subscription-manager register --username [your_username] --password [your_password] --auto-accept ``` 4. **验证注册**:注册后,使用 `list` 命令确认系统已成功注册: ```bash subscription-manager list --available ``` 5. **自动更新设置**:如果你希望系统自动从服务器下载并安装可用更新,可以设置自动注册和自动更新: ```bash subscription-manager config --set-enabled=auto-registry --set-enabled=auto-update ``` 6. **重新启动服务**:有时,可能需要重启网络服务或特定的订阅管理服务以便新的设置生效: ```bash systemctl restart network systemctl restart subscription-manager ``` 完成以上步骤后,你应该能够正常地与权益服务器通信,获取系统更新和其他功能。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值