【问题标题】:IOError: unsupported XML-RPC protocol while running yum commandIOError:运行 yum 命令时不支持 XML-RPC 协议
【发布时间】:2014-09-04 05:09:32
【问题描述】:

当我尝试打开任何 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

【问题讨论】:

  • 有了这个,你在 serverfault.com 上的运气可能会更好。

标签: python ssl-certificate redhat yum linux-mint


【解决方案1】:

好的,我猜你正在运行 RHN Classic (rhn.redhat.com)。修复此过期证书时存在勘误,相关知识库文章如下:

与 RHN 的系统连接失败并出现“证书已过期,或证书验证失败”错误 https://access.redhat.com/solutions/353033

IOError: unsupported XML-RPC protocol 的回溯让我猜测您在/etc/sysconfig/rhn/up2date 中的serverURL 不正确。它应该是这样的:

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

【讨论】:

    猜你喜欢
    • 2019-08-16
    • 1970-01-01
    • 2019-05-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多