RHEL 5 YUM Python 抛出回溯和超时错误

RHEL 5 YUM Python 抛出回溯和超时错误

我知道,我应该做的第一件事就是升级到 RHEL 6 或 7,但不幸的是,我暂时被困在了这个版本上。我使用任何yum命令时都遇到了这个错误。该rpm命令运行正常,所以我认为更新是别人无意中偷偷添加的,但没有人愿意承认。这是输出,yum update但它也为所有 yum 命令(甚至它自己)给出了相同的错误yum

[root@servername00 ~]# yum update
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 157, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig
    self.conf
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 665, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 254, in _getConfig
    self.plugins.run('init')
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/rhnplugin.py", line 125, in init_hook
    login_info = up2dateAuth.getLoginInfo(timeout=timeout)
  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 219, in getLoginInfo
    login(timeout=timeout)
  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 170, in login
    server = rhnserver.RhnServer(timeout=timeout)
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 155, in __init__
    self._server = rpcServer.getServer(timeout=timeout)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 156, in getServer
    timeout=timeout)
TypeError: __init__() got an unexpected keyword argument 'timeout'

我不确定我需要修复什么,或者用这个来纠正这些错误,或者在网上检查什么来诊断。

答案1

我的一位同事帮我解决了这个问题,这与有关rhnplugin。一旦禁用/删除它,yum 就可以正常工作了。

相关内容