centos – 百胜被打断了,现在给出了冲突

前端之家收集整理的这篇文章主要介绍了centos – 百胜被打断了,现在给出了冲突前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一台Centos 6.7服务器,我想更新.所以我做了
yum update

然而,这是在一个真实的服务器上(我不是很聪明,我知道).服务器资源耗尽,yum更新中断.我现在不能再运行yum update了.我已经尝试了所有的yum清洁,但似乎无法开始百胜.

这就是我得到的:

# yum update
Loaded plugins: downloadonly,fastestmirror
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 300,in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py",line 115,in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py",line 229,in getOptionsConfig
    self.conf
  File "/usr/lib/python2.6/site-packages/yum/__init__.py",line 911,in <lambda>
    conf = property(fget=lambda self: self._getConfig(),File "/usr/lib/python2.6/site-packages/yum/__init__.py",line 335,in _getConfig
    startupconf.pluginconfpath,disabled_plugins,enabled_plugins)
  File "/usr/lib/python2.6/site-packages/yum/__init__.py",line 564,in doPluginSetup
    plugin_types,confpath,enabled_plugins)
  File "/usr/lib/python2.6/site-packages/yum/plugins.py",line 167,in __init__
    self.run('config')
  File "/usr/lib/python2.6/site-packages/yum/plugins.py",line 184,in run
    func(conduitcls(self,self.base,conf,**kwargs))
  File "/usr/lib/yum-plugins/downloadonly.py",line 30,in config_hook
    default=False,help="don't update,just download")
  File "/usr/lib64/python2.6/optparse.py",line 1020,in add_option
    self._check_conflict(option)
  File "/usr/lib64/python2.6/optparse.py",line 995,in _check_conflict
    option)
optparse.OptionConflictError: option --downloadonly: conflicting option string(s): --downloadonly

Python似乎有一个错误,但我不确定如何解决它.

我被要求查看昨天这样做的系统.在我的情况下,安装了2个版本的yum
yum-3.2.29-60.el6.centos.noarch
yum-3.2.29-69.el6.centos.noarch

删除较新的版本(rpm -e)并没有解决问题.我还必须删除yum-plugin-downloadonly-1.1.30-30.el6.noarch并且依赖包yum-cron-3.2.29-69.el6.centos.noarch.

一旦完成,我就能再次运行yum并运行yum-complete-transaction.

原文链接:https://www.f2er.com/centos/373495.html

猜你在找的CentOS相关文章