欢迎光临
一起探讨学习进步

centos系统执行yum update提示冲突

今天在执行yum -y update中竟然失败了,提示为:

[root@hxkvm ~]# yum update
已加载插件:fastestmirror
设置更新进程
Loading mirror speeds from cached hostfile
 * base: mirror.xtom.com.hk
 * elrepo: mirror-hk.koddos.net
 * elrepo-kernel: mirror-hk.koddos.net
 * epel: ftp.riken.jp
 * extras: mirror.xtom.com.hk
 * updates: mirror.xtom.com.hk
解决依赖关系
--> 执行事务检查
---> Package curl.x86_64 0:7.19.7-53.el6_9 will be 升级
---> Package curl.x86_64 0:7.29.0-4.el6 will be an update
---> Package gmp.x86_64 0:4.3.1-13.el6 will be 升级
---> Package gmp.x86_64 1:4.3.2-4.el6 will be an update
---> Package gmp-devel.x86_64 0:4.3.1-13.el6 will be 升级
---> Package gmp-devel.x86_64 1:4.3.2-4.el6 will be an update
---> Package kernel.x86_64 0:2.6.32-754.9.1.el6 will be 安装
---> Package kernel-devel.x86_64 0:2.6.32-754.9.1.el6 will be 安装
---> Package kernel-firmware.noarch 0:2.6.32-754.6.3.el6 will be 升级
---> Package kernel-firmware.noarch 0:2.6.32-754.9.1.el6 will be an update
---> Package kernel-headers.x86_64 0:2.6.32-754.6.3.el6 will be 升级
---> Package kernel-headers.x86_64 0:2.6.32-754.9.1.el6 will be an update
---> Package libcurl.x86_64 0:7.19.7-53.el6_9 will be 升级
---> Package libcurl.x86_64 0:7.29.0-4.el6 will be an update
---> Package libcurl-devel.x86_64 0:7.19.7-53.el6_9 will be 升级
---> Package libcurl-devel.x86_64 0:7.29.0-4.el6 will be an update
---> Package libevent.x86_64 0:1.4.13-4.el6 will be 升级
---> Package libevent.x86_64 0:1.4.14b-2.hphp.el6 will be an update
---> Package libevent-devel.x86_64 0:1.4.13-4.el6 will be 升级
---> Package libevent-devel.x86_64 0:1.4.14b-2.hphp.el6 will be an update
---> Package libtool-ltdl.x86_64 0:2.2.6-15.5.el6 will be 升级
---> Package libtool-ltdl.x86_64 0:2.4.2-21.el6 will be an update
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be 升级
---> Package mpfr.x86_64 0:2.4.2-1.el6 will be an update
--> 完成依赖关系计算
错误: Multilib version problems found. This often means that the root
      cause is something else and multilib version checking is just
      pointing out that there is a problem. Eg.:
      
        1. You have an upgrade for libevent which is missing some
           dependency that another package requires. Yum is trying to
           solve this by installing an older version of libevent of the
           different architecture. If you exclude the bad architecture
           yum will tell you what the root cause is (which package
           requires what). You can try redoing the upgrade with
           --exclude libevent.otherarch ... this should give you an error
           message showing the root cause of the problem.
      
        2. You have multiple architectures of libevent installed, but
           yum can only see an upgrade for one of those arcitectures.
           If you don't want/need both architectures anymore then you
           can remove the one with the missing update and everything
           will work.
      
        3. You have duplicate versions of libevent installed already.
           You can use "yum check" to get yum show these errors.
      
      ...you can also use --setopt=protected_multilib=false to remove
      this checking, however this is almost never the correct thing to
      do as something else is very likely to go wrong (often causing
      much more problems).
      
      Protected multilib versions: libevent-1.4.14b-2.hphp.el6.x86_64 != libevent-1.4.13-4.el6.i686
错误:Protected multilib versions: libevent-devel-1.4.14b-2.hphp.el6.x86_64 != libevent-devel-1.4.13-4.el6.i686

发现是软件冲突,刚开始按照提示用--setopt=protected_multilib=false去一个一个安装,发现还是有这个问题,而且文件众多,不可能总这么来吧,于是就想用一个简单的办法。

首先看到冲突的软件名称都是带有libevent前缀的,这就好办了,先把libevent都列出来看看~

[root@hxkvm ~]# rpm -qa | grep libevent
libevent-devel-1.4.13-4.el6.i686
libevent-headers-1.4.13-4.el6.noarch
libevent-1.4.13-4.el6.i686
libevent-1.4.13-4.el6.x86_64
libevent-doc-1.4.13-4.el6.noarch
libevent-devel-1.4.13-4.el6.x86_64

一共有6个软件,就是这其中某些软件冲突,但是不知道因为什么原因被安装上了,所以再升级就提示错误了。

既然不知道是哪些软件有冲突,干脆都删除吧~

[root@hxkvm ~]# yum -y remove libevent-devel-1.4.13-4.el6.i686 libevent-headers-1.4.13-4.el6.noarch libevent-1.4.13-4.el6.i686 libevent-1.4.13-4.el6.x86_64 libevent-doc-1.4.13-4.el6.noarch libevent-devel-1.4.13-4.el6.x86_64
已加载插件:fastestmirror
设置移除进程
解决依赖关系
--> 执行事务检查
---> Package libevent.i686 0:1.4.13-4.el6 will be 删除
---> Package libevent.x86_64 0:1.4.13-4.el6 will be 删除
---> Package libevent-devel.i686 0:1.4.13-4.el6 will be 删除
---> Package libevent-devel.x86_64 0:1.4.13-4.el6 will be 删除
---> Package libevent-doc.noarch 0:1.4.13-4.el6 will be 删除
---> Package libevent-headers.noarch 0:1.4.13-4.el6 will be 删除
--> 完成依赖关系计算
依赖关系解决
==============================================================================================================================
 软件包                              架构                      版本                            仓库                      大小
==============================================================================================================================
正在删除:
 libevent                            i686                      1.4.13-4.el6                    @base                    226 k
 libevent                            x86_64                    1.4.13-4.el6                    @base                    227 k
 libevent-devel                      i686                      1.4.13-4.el6                    @base                    331 k
 libevent-devel                      x86_64                    1.4.13-4.el6                    @base                    421 k
 libevent-doc                        noarch                    1.4.13-4.el6                    @base                    924 k
 libevent-headers                    noarch                    1.4.13-4.el6                    @base                     96 k
事务概要
==============================================================================================================================
Remove        6 Package(s)
Installed size: 2.2 M
下载软件包:
运行 rpm_check_debug 
执行事务测试
事务测试成功
执行事务
  正在删除   : libevent-devel-1.4.13-4.el6                                                                                1/6 
  正在删除   : libevent-doc-1.4.13-4.el6.noarch                                                                           2/6 
  正在删除   : libevent-headers-1.4.13-4.el6.noarch                                                                       3/6 
  正在删除   : libevent-devel-1.4.13-4.el6                                                                                4/6 
  正在删除   : libevent-1.4.13-4.el6                                                                                      5/6 
  正在删除   : libevent-1.4.13-4.el6                                                                                      6/6 
  Verifying  : libevent-devel-1.4.13-4.el6.x86_64                                                                         1/6 
  Verifying  : libevent-devel-1.4.13-4.el6.i686                                                                           2/6 
  Verifying  : libevent-1.4.13-4.el6.x86_64                                                                               3/6 
  Verifying  : libevent-doc-1.4.13-4.el6.noarch                                                                           4/6 
  Verifying  : libevent-1.4.13-4.el6.i686                                                                                 5/6 
  Verifying  : libevent-headers-1.4.13-4.el6.noarch                                                                       6/6 
删除:
  libevent.i686 0:1.4.13-4.el6             libevent.x86_64 0:1.4.13-4.el6         libevent-devel.i686 0:1.4.13-4.el6        
  libevent-devel.x86_64 0:1.4.13-4.el6     libevent-doc.noarch 0:1.4.13-4.el6     libevent-headers.noarch 0:1.4.13-4.el6    
完毕!

上面提示已经成功删除,再次执行升级试试看~

[root@hxkvm ~]# yum -y update
已加载插件:fastestmirror
设置更新进程
Loading mirror speeds from cached hostfile
 * base: mirror.xtom.com.hk
 * elrepo: mirror-hk.koddos.net
 * elrepo-kernel: mirror-hk.koddos.net
 * epel: ftp.riken.jp
 * extras: mirror.xtom.com.hk
 * updates: mirror.xtom.com.hk
解决依赖关系
--> 执行事务检查
---> Package curl.x86_64 0:7.19.7-53.el6_9 will be 升级
---> Package curl.x86_64 0:7.29.0-4.el6 will be an update
---> Package gmp.x86_64 0:4.3.1-13.el6 will be 升级
---> Package gmp.x86_64 1:4.3.2-4.el6 will be an update
---> Package gmp-devel.x86_64 0:4.3.1-13.el6 will be 升级
---> Package gmp-devel.x86_64 1:4.3.2-4.el6 will be an update
---> Package kernel.x86_64 0:2.6.32-754.9.1.el6 will be 安装
---> Package kernel-devel.x86_64 0:2.6.32-754.9.1.el6 will be 安装
---> Package kernel-firmware.noarch 0:2.6.32-754.6.3.el6 will be 升级
---> Package kernel-firmware.noarch 0:2.6.32-754.9.1.el6 will be an update
---> Package kernel-headers.x86_64 0:2.6.32-754.6.3.el6 will be 升级
---> Package kernel-headers.x86_64 0:2.6.32-754.9.1.el6 will be an update
---> Package libcurl.x86_64 0:7.19.7-53.el6_9 will be 升级
---> Package libcurl.x86_64 0:7.29.0-4.el6 will be an update
---> Package libcurl-devel.x86_64 0:7.19.7-53.el6_9 will be 升级
---> Package libcurl-devel.x86_64 0:7.29.0-4.el6 will be an update
---> Package libtool-ltdl.x86_64 0:2.2.6-15.5.el6 will be 升级
---> Package libtool-ltdl.x86_64 0:2.4.2-21.el6 will be an update
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be 升级
---> Package mpfr.x86_64 0:2.4.2-1.el6 will be an update
--> 完成依赖关系计算
依赖关系解决
==============================================================================================================================
 软件包                           架构                    版本                                 仓库                      大小
==============================================================================================================================
正在安装:
 kernel                           x86_64                  2.6.32-754.9.1.el6                   updates                   32 M
 kernel-devel                     x86_64                  2.6.32-754.9.1.el6                   updates                   11 M
正在升级:
 curl                             x86_64                  7.29.0-4.el6                         hop5                     256 k
 gmp                              x86_64                  1:4.3.2-4.el6                        hop5                     205 k
 gmp-devel                        x86_64                  1:4.3.2-4.el6                        hop5                     171 k
 kernel-firmware                  noarch                  2.6.32-754.9.1.el6                   updates                   29 M
 kernel-headers                   x86_64                  2.6.32-754.9.1.el6                   updates                  4.5 M
 libcurl                          x86_64                  7.29.0-4.el6                         hop5                     198 k
 libcurl-devel                    x86_64                  7.29.0-4.el6                         hop5                     294 k
 libtool-ltdl                     x86_64                  2.4.2-21.el6                         hop5                      46 k
 mpfr                             x86_64                  2.4.2-1.el6                          hop5                     156 k
事务概要
==============================================================================================================================
Install       2 Package(s)
Upgrade       9 Package(s)
总下载量:78 M
下载软件包:
(1/11): curl-7.29.0-4.el6.x86_64.rpm                                                                   | 256 kB     00:17     
(2/11): gmp-4.3.2-4.el6.x86_64.rpm                                                                     | 205 kB     00:01     
(3/11): gmp-devel-4.3.2-4.el6.x86_64.rpm                                                               | 171 kB     00:00     
(4/11): kernel-2.6.32-754.9.1.el6.x86_64.rpm                                                           |  32 MB     00:03     
(5/11): kernel-devel-2.6.32-754.9.1.el6.x86_64.rpm                                                     |  11 MB     00:01     
(6/11): kernel-firmware-2.6.32-754.9.1.el6.noarch.rpm                                                  |  29 MB     00:02     
(7/11): kernel-headers-2.6.32-754.9.1.el6.x86_64.rpm                                                   | 4.5 MB     00:00     
(8/11): libcurl-7.29.0-4.el6.x86_64.rpm                                                                | 198 kB     00:01     
(9/11): libcurl-devel-7.29.0-4.el6.x86_64.rpm                                                          | 294 kB     00:01     
(10/11): libtool-ltdl-2.4.2-21.el6.x86_64.rpm                                                          |  46 kB     00:00     
(11/11): mpfr-2.4.2-1.el6.x86_64.rpm                                                                   | 156 kB     00:00     
------------------------------------------------------------------------------------------------------------------------------
总计                                                                                          2.4 MB/s |  78 MB     00:32     
运行 rpm_check_debug 
执行事务测试
事务测试成功
执行事务
  正在升级   : 1:gmp-4.3.2-4.el6.x86_64                                                                                  1/20 
  正在升级   : libcurl-7.29.0-4.el6.x86_64                                                                               2/20 
  正在升级   : kernel-firmware-2.6.32-754.9.1.el6.noarch                                                                 3/20 
  正在安装   : kernel-2.6.32-754.9.1.el6.x86_64                                                                          4/20 
  正在升级   : curl-7.29.0-4.el6.x86_64                                                                                  5/20 
  正在升级   : libcurl-devel-7.29.0-4.el6.x86_64                                                                         6/20 
  正在升级   : 1:gmp-devel-4.3.2-4.el6.x86_64                                                                            7/20 
  正在升级   : mpfr-2.4.2-1.el6.x86_64                                                                                   8/20 
  正在安装   : kernel-devel-2.6.32-754.9.1.el6.x86_64                                                                    9/20 
  正在升级   : libtool-ltdl-2.4.2-21.el6.x86_64                                                                         10/20 
  正在升级   : kernel-headers-2.6.32-754.9.1.el6.x86_64                                                                 11/20 
  清理       : libcurl-devel-7.19.7-53.el6_9.x86_64                                                                     12/20 
  清理       : gmp-devel-4.3.1-13.el6.x86_64                                                                            13/20 
  清理       : kernel-firmware-2.6.32-754.6.3.el6.noarch                                                                14/20 
  清理       : kernel-headers-2.6.32-754.6.3.el6.x86_64                                                                 15/20 
  清理       : mpfr-2.4.1-6.el6.x86_64                                                                                  16/20 
  清理       : curl-7.19.7-53.el6_9.x86_64                                                                              17/20 
  清理       : libcurl-7.19.7-53.el6_9.x86_64                                                                           18/20 
  清理       : gmp-4.3.1-13.el6.x86_64                                                                                  19/20 
  清理       : libtool-ltdl-2.2.6-15.5.el6.x86_64                                                                       20/20 
  Verifying  : 1:gmp-devel-4.3.2-4.el6.x86_64                                                                            1/20 
  Verifying  : libcurl-7.29.0-4.el6.x86_64                                                                               2/20 
  Verifying  : kernel-headers-2.6.32-754.9.1.el6.x86_64                                                                  3/20 
  Verifying  : libtool-ltdl-2.4.2-21.el6.x86_64                                                                          4/20 
  Verifying  : curl-7.29.0-4.el6.x86_64                                                                                  5/20 
  Verifying  : kernel-firmware-2.6.32-754.9.1.el6.noarch                                                                 6/20 
  Verifying  : kernel-2.6.32-754.9.1.el6.x86_64                                                                          7/20 
  Verifying  : kernel-devel-2.6.32-754.9.1.el6.x86_64                                                                    8/20 
  Verifying  : libcurl-devel-7.29.0-4.el6.x86_64                                                                         9/20 
  Verifying  : 1:gmp-4.3.2-4.el6.x86_64                                                                                 10/20 
  Verifying  : mpfr-2.4.2-1.el6.x86_64                                                                                  11/20 
  Verifying  : gmp-devel-4.3.1-13.el6.x86_64                                                                            12/20 
  Verifying  : kernel-firmware-2.6.32-754.6.3.el6.noarch                                                                13/20 
  Verifying  : mpfr-2.4.1-6.el6.x86_64                                                                                  14/20 
  Verifying  : libcurl-7.19.7-53.el6_9.x86_64                                                                           15/20 
  Verifying  : libcurl-devel-7.19.7-53.el6_9.x86_64                                                                     16/20 
  Verifying  : libtool-ltdl-2.2.6-15.5.el6.x86_64                                                                       17/20 
  Verifying  : curl-7.19.7-53.el6_9.x86_64                                                                              18/20 
  Verifying  : gmp-4.3.1-13.el6.x86_64                                                                                  19/20 
  Verifying  : kernel-headers-2.6.32-754.6.3.el6.x86_64                                                                 20/20 
已安装:
  kernel.x86_64 0:2.6.32-754.9.1.el6                         kernel-devel.x86_64 0:2.6.32-754.9.1.el6                        
更新完毕:
  curl.x86_64 0:7.29.0-4.el6                    gmp.x86_64 1:4.3.2-4.el6                     gmp-devel.x86_64 1:4.3.2-4.el6  
  kernel-firmware.noarch 0:2.6.32-754.9.1.el6   kernel-headers.x86_64 0:2.6.32-754.9.1.el6   libcurl.x86_64 0:7.29.0-4.el6   
  libcurl-devel.x86_64 0:7.29.0-4.el6           libtool-ltdl.x86_64 0:2.4.2-21.el6           mpfr.x86_64 0:2.4.2-1.el6       
完毕!

漂亮,成功升级,大功告成~

未经允许不得转载:centos系统执行yum update提示冲突

评论 1

评论前必须登录!

 

  1. 支持下~

    liuzongyang 6个月前 回复