美文网首页
centos 6.2 update

centos 6.2 update

作者: 9682f4e55d71 | 来源:发表于2018-01-24 10:26 被阅读62次
    [root@uat-01 theme-frontend_v2]# yum -y update
    ...
    [root@uat-01 theme-frontend_v2]# yum -y remove qpid-cpp-client   #卸载冲突包
    ...
    (558/560): yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm                                                                                                                            |  33 kB     00:00
    (559/560): yum-utils-1.1.30-40.el6.noarch.rpm                                                                                                                                           | 113 kB     00:00
    (560/560): zip-3.0-1.el6_7.1.x86_64.rpm                                                                                                                                                 | 259 kB     00:00
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                                                                          2.7 MB/s | 528 MB     03:17
    Running rpm_check_debug
    Running Transaction Test
    
    
    Transaction Check Error:
      file /usr/include/FlexLexer.h from install of flex-2.5.35-9.el6.x86_64 conflicts with file from package flex-2.5.4a-41.fc6.i386
      file /usr/share/man/man1/flex.1.gz from install of flex-2.5.35-9.el6.x86_64 conflicts with file from package flex-2.5.4a-41.fc6.i386
      file /usr/share/man/man1/rdate.1.gz from install of rdate-1.4-16.el6.x86_64 conflicts with file from package rdate-1.4-8.el5.i386
    
    Error Summary
    -------------
    
    [root@uat-01 theme-frontend_v2]#
    [root@uat-01 theme-frontend_v2]# yum -y remove flex-2.5.4a-41.fc6.i386 #卸载冲突包
    [root@uat-01 theme-frontend_v2]# yum -y remove rdate-1.4-8.el5.i386 #卸载冲突包
    [root@uat-01 theme-frontend_v2]# yum -y update --enablerepo=remi
    
    [root@uat-01 ~]# yum
    Loaded plugins: downloadonly, fastestmirror, presto
    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 298, 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, disabled_plugins, 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 27, 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
    
    
    解决 
    $ cat /etc/yum/pluginconf.d/downloadonly.conf
    [main]
    enabled=0    # 将其改成0
    

    参考: https://qiita.com/tsubasaogawa/items/cb088da03ea43a1cf4fe

    相关文章

      网友评论

          本文标题:centos 6.2 update

          本文链接:https://www.haomeiwen.com/subject/xdwyaxtx.html