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、然后就可以正常使用了