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/yummain.py”, line 309, in user_main
errcode = main(args)
File “/usr/share/yum-cli/yummain.py”, line 161, in main
return exFatal(e)
File “/usr/share/yum-cli/yummain.py”, line 64, in exFatal
logger.critical(‘\n\n%s’, to_unicode(e))
File “/usr/lib64/python2.4/logging/__init__.py”, line 1019, in critical
apply(self._log, (CRITICAL, msg, args), kwargs)
File “/usr/lib64/python2.4/logging/__init__.py”, line 1078, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info)
File “/usr/lib64/python2.4/logging/__init__.py”, line 1064, in makeRecord
return LogRecord(name, level, fn, lno, msg, args, exc_info)
File “/usr/lib64/python2.4/logging/__init__.py”, 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]#
Fix:-
Edit File /etc/yum/pluginconf.d/rhnplugin.conf and change enabled to 0
[main]
enabled = 1
gpgcheck = 1
# You can specify options per channel, e.g.:
#
#[rhel-i386-server-5]
#enabled = 1
#
#[some-unsigned-custom-channel]
#gpgcheck = 0
yum clean all
yum list.
by-
eLite Server Management
We Specialize In cPanel Server Management
Affordable 24/7 Technical Support Company
*Also Checked: cpanel reseller hosting