RedHat 5 上的 Yum 更新错误

RedHat 5 上的 Yum 更新错误

自从我们的一个人尝试在我们的 RedHat 服务器上安装 Dell OpenManage 以来,我们在尝试更新它时收到了此错误:

    # yum update
Loaded plugins: dellsysid, rhnplugin, security
http://linux.dell.com/repo/hardware/OMSA_5.4//mirrors.pl?osname=el5&basearch=x86_64&repo_config=$repo_config&dellsysidpluginver=$dellsysidpluginver
using mirror: http://linux.dell.com/repo/hardware/OMSA_5.4/platform_independent/rh50_64
This system is receiving updates from ULN.
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 668, 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 175, in init_hook
    repo = RhnRepo(channel)
  File "/usr/lib/yum-plugins/rhnplugin.py", line 339, in __init__
    self.gpgkey = get_gpg_key_urls(channel['gpg_key_url'])
  File "/usr/share/rhn/up2date_client/rhnChannel.py", line 48, in __getitem__
    return self.dict[item]
KeyError: 'gpg_key_url'

有任何想法吗?

我几乎尝试了遇到的所有错误解决方案。

答案1

dellsysid 插件似乎与 rhnplugin 冲突。根据您希望使用的通道,其中之一可能需要禁用。

如果您不知道使用哪一个:有一个选项可以告诉 yum 不要加载插件。尝试在禁用这两个选项之一的情况下运行,看看哪一个为您提供了预期的软件包。

相关内容