How To Fix for yum error(Red Hat Enterprise Linux Server release 5.10 (Tikanga))

yum list
Loaded plugins: rhnplugin, security                                                                                                  
Traceback (most recent call last):
File “/usr/bin/yum”, line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File “/usr/share/yum-cli/”, line 309, in user_main
errcode = main(args)
File “/usr/share/yum-cli/”, line 161, in main
return exFatal(e)
File “/usr/share/yum-cli/”, line 64, in exFatal
logger.critical(‘\n\n%s’, to_unicode(e))
File “/usr/lib64/python2.4/logging/”, line 1019, in critical
apply(self._log, (CRITICAL, msg, args), kwargs)
File “/usr/lib64/python2.4/logging/”, line 1078, in _log
record = self.makeRecord(, level, fn, lno, msg, args, exc_info)
File “/usr/lib64/python2.4/logging/”, line 1064, in makeRecord
return LogRecord(name, level, fn, lno, msg, args, exc_info)
File “/usr/lib64/python2.4/logging/”, line 226, in __init__
if args and (len(args) == 1) and args[0] and (type(args[0]) == types.DictType):
TypeError: ‘NoneType’ object is not callable
root@server15 [/etc/yum.repos.d]#

Edit File /etc/yum/pluginconf.d/rhnplugin.conf and change enabled to 0

enabled = 1
gpgcheck = 1

# You can specify options per channel, e.g.:
#enabled = 1
#gpgcheck = 0

yum clean all
yum list.


eLite Server Management

We Specialize In cPanel Server Management
Affordable 24/7 Technical Support Company

*Also Checked: cpanel reseller hosting