IOError:运行yum命令时不支持的XML-RPC协议

时间:2014-09-04 05:09:33

标签: python ssl-certificate redhat yum linuxmint

当我尝试转动任何yum命令时,我得到了以下消息。我在发生此错误之前禁用并启用了SSL。由于系统说RHNS-CA-CERT已过期,我删除了证书并使用wget命令下载了它。然后我尝试使用yum命令更新证书,这就是问题开始的地方。

以下是错误消息:

Loaded plugins: rhnplugin
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Traceback (most recent call last):   
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 285, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 105, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 228, in getOptionsConfig
    self.conf
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 891, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 362, in _getConfig
    self.plugins.run('init')
  File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 184, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/share/yum-plugins/rhnplugin.py", line 118, 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 154, in __init__
    timeout=timeout)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 160, in getServer
    timeout=timeout)
  File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 169, in __init__
    self._reset_host_handler_and_type()
  File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 315, in _reset_host_handler_and_type
    raise IOError, "unsupported XML-RPC protocol"
IOError: unsupported XML-RPC protocol

1 个答案:

答案 0 :(得分:1)

好吧,我的猜测是你正在对抗RHN Classic(rhn.redhat.com)。有错误修复这个过期的证书,这里有相关的知识基础文章:

与RHN的系统连接失败,&#34;证书已过期,或证书验证失败&#34;错误 https://access.redhat.com/solutions/353033

使用IOError: unsupported XML-RPC protocol追踪会让我猜测serverURL中的/etc/sysconfig/rhn/up2date不正确。它应该是这样的:

serverURL=https://xmlrpc.rhn.redhat.com/XMLRPC