Saturday, November 11, 2017

rhn-plugin: ERROR: can not find ULN CA file: /usr/share/rhn/RHNS-CA-CERT

[root@Myserver1 ~]#  yum
Loaded plugins: product-id, refresh-packagekit, search-disabled-repos, security, subscription-manager, ulninfo
This system is not registered with an entitlement server. You can use subscription-manager to register.


rhn-plugin: ERROR: can not find ULN CA file: /usr/share/rhn/RHNS-CA-CERT
[root@Myserver1 ~]# 


The reason of the error is because of the RHN* packages, which got installed during update procedure, identify and remove them by RPM tool:


[root@Myserver1 ~]# rpm -qa|grep rhn
rhn-check-1.0.0.1-43.0.1.el6.noarch
rhnsd-4.9.3-5.0.1.el6.x86_64
rhn-setup-gnome-1.0.0.1-43.0.1.el6.noarch
rhnlib-2.5.22-15.0.2.el6.noarch
rhn-client-tools-1.0.0.1-43.0.1.el6.noarch
yum-rhn-plugin-0.9.1-60.2.0.3.el6_8.noarch
rhn-setup-1.0.0.1-43.0.1.el6.noarch
[root@Myserver1 ~]# 


[root@Myserver1 ~]#  rpm -e rhnsd-4.9.3-5.0.1.el6.x86_64
error: Failed dependencies:
        rhnsd is needed by (installed) rhn-setup-1.0.0.1-43.0.1.el6.noarch
[root@Myserver1 ~]# 

use --nodeps and uninstall the RPMS:

[root@Myserver1 ~]#  rpm -e rhn-check-1.0.0.1-43.0.1.el6.noarch rhn-setup-gnome-1.0.0.1-43.0.1.el6.noarch rhnlib-2.5.22-15.0.2.el6.noarch rhn-client-tools-1.0.0.1-43.0.1.el6.noarch yum-rhn-plugin-0.9.1-60.2.0.3.el6_8.noarch rhn-setup-1.0.0.1-43.0.1.el6.noarch --nodeps
[root@Myserver1 ~]#

Yum Works fine after removing the above-mentioned packages.