RHN yum command: Unable to read consumer identity Warning and Solution

 

RHN yum command: Unable to read consumer identity Warning and Solution

 

Getting the following waring:

 

Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager

Updating certificate-based repositories.

Unable to read consumer identity

 

 

You need to edit the following files

 

[a] /etc/yum/pluginconf.d/subscription-manager.conf

[b] /etc/yum/pluginconf.d/product-id.conf

Use a text editor such as vi:

# vi /etc/yum/pluginconf.d/product-id.conf

/etc/yum/pluginconf.d/subscription-manager.conf

Set enabled to 0 as follows in both files:

[main] 

enabled=0

Save and close the file. Finally, type the following command to clean cache:

rm -rfv /var/cache/yum/*

yum clean all  

You can now install or update the system:

# yum install packageNameHere

OR

# yum -y update

 

REFERENCE

As per RHEL KB # 165803 root cause for this error was:

When RHN Classic or RHN Satellite is used for updating the system, subscription-manager should be disabled

展开阅读全文

没有更多推荐了,返回首页