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

by on November 17, 2012 · 0 comments· last updated at November 17, 2012

I am using yum update command with RHN to upgrade packages installed on my server, but getting the following warning on screen :

yum update -y
Loaded plugins: product-id, protectbase, rhnplugin, security, subscription manager:
Updating certificate-based repositories.
Unable to read consumer identity
0 packages excluded due to repository protections
Setting up Update Process
Resolving Dependencies
--> Running transaction check
...<snip>

How do I get rid of this warning /error under RHEL 6 server?

Tutorial details
DifficultyEasy (rss)
Root privilegesYes
RequirementsRed Hat with RHN

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.



You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

Tagged as: , , , , , ,

Previous Faq:

Next Faq: