当我想注册我的 redhat 机器时,我收到了这种错误。
[root@client ~]# subscription-manager register
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: saiful31
Password:
'NoneType' object has no attribute '__getitem__'
rhsm.log:-
[root@client ~]# tail -f /var/log/rhsm/rhsm.log
2020-10-22 17:15:32,891 [INFO] subscription-manager:3335:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=none
2020-10-22 17:15:42,418 [INFO] subscription-manager:3335:MainThread @connection.py:905 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=basic username=saiful31
2020-10-22 17:15:45,685 [ERROR] subscription-manager:3335:MainThread @managercli.py:215 - Error during registration: 'NoneType' object has no attribute '__getitem__'
2020-10-22 17:15:45,685 [ERROR] subscription-manager:3335:MainThread @managercli.py:216 - 'NoneType' object has no attribute '__getitem__'
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 1353, in _do_command
owner_key = self._determine_owner_key(admin_cp)
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 1506, in _determine_owner_key
return owners[0]['key']
TypeError: 'NoneType' object has no attribute '__getitem__'
我现在能做什么 ??
答案1
就我的情况,我是这样解决的:
sudo subscription-manager clean
然后再次注册
RHEL 7.9