Problem:While using yum update to upgrade packages installed on Airwave server the following error might pop up:
#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>
Diagnostics:To resolve the above error the following 2 files must be edited:
/etc/yum/pluginconf.d/subscription-manager.conf
/etc/yum/pluginconf.d/product-id.conf
SolutionUse the vi text editor and type the following command:
# vi /etc/yum/pluginconf.d/product-id.conf
# vi /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