yum出错"Multilib version problems found."

--> Running transaction check
---> Package gzip.x86_64 0:1.5-7.el7 will be updated
---> Package gzip.x86_64 0:1.5-10.el7 will be an update
---> Package xz.x86_64 0:5.1.2-9alpha.el7 will be updated
---> Package xz.x86_64 0:5.2.2-1.el7 will be an update
---> Package xz-libs.x86_64 0:5.1.2-9alpha.el7 will be updated
---> Package xz-libs.x86_64 0:5.2.2-1.el7 will be an update
--> Finished Dependency Resolution
Error:  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 xz-libs which is missing some
            dependency that another package requires. Yum is trying to
            solve this by installing an older version of xz-libs 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 xz-libs.otherarch ... this should give you an error
            message showing the root cause of the problem.
       
         2. You have multiple architectures of xz-libs installed, but
            yum can only see an upgrade for one of those architectures.
            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 xz-libs 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: xz-libs-5.2.2-1.el7.x86_64 != xz-libs-5.1.2-9alpha.el7.i686

解决卸载xz-libs-5.1.2-9alpha.el7.i686

[root@VM_100_31_centos ~]# rpm -qa xz-libs
xz-libs-5.1.2-9alpha.el7.x86_64
xz-libs-5.1.2-9alpha.el7.i686
[root@VM_100_31_centos ~]# rpm -e xz-libs-5.1.2-9alpha.el7.i686
error: Failed dependencies:
    liblzma.so.5 is needed by (installed) libselinux-2.2.2-6.el7.i686
    liblzma.so.5(XZ_5.0) is needed by (installed) libselinux-2.2.2-6.el7.i686
[root@VM_100_31_centos ~]# yum remove xz-libs-5.1.2-9alpha.el7.i686
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package xz-libs.i686 0:5.1.2-9alpha.el7 will be erased
--> Processing Dependency: liblzma.so.5 for package: libselinux-2.2.2-6.el7.i686
--> Processing Dependency: liblzma.so.5(XZ_5.0) for package: libselinux-2.2.2-6.el7.i686
--> Running transaction check
---> Package libselinux.i686 0:2.2.2-6.el7 will be erased
--> Processing Dependency: libselinux.so.1 for package: libmount-2.23.2-65.el7.i686
--> Processing Dependency: libselinux.so.1 for package: glib2-2.56.1-8.el7.i686
--> Running transaction check
---> Package glib2.i686 0:2.56.1-8.el7 will be erased
---> Package libmount.i686 0:2.23.2-65.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================================================================
 Package                                            Arch                                         Version                                                     Repository                                        Size
====================================================================================================================================================================================================================
Removing:
 xz-libs                                            i686                                         5.1.2-9alpha.el7                                            @os                                              241 k
Removing for dependencies:
 glib2                                              i686                                         2.56.1-8.el7                                                @updates                                          12 M
 libmount                                           i686                                         2.23.2-65.el7                                               @os                                              274 k
 libselinux                                         i686                                         2.2.2-6.el7                                                 @os                                              149 k

Transaction Summary
====================================================================================================================================================================================================================
Remove  1 Package (+3 Dependent packages)

Installed size: 12 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : glib2-2.56.1-8.el7.i686                                                                                                                                                                          1/4 
  Erasing    : libmount-2.23.2-65.el7.i686                                                                                                                                                                      2/4 
  Erasing    : libselinux-2.2.2-6.el7.i686                                                                                                                                                                      3/4 
  Erasing    : xz-libs-5.1.2-9alpha.el7.i686                                                                                                                                                                    4/4 
  Verifying  : libselinux-2.2.2-6.el7.i686                                                                                                                                                                      1/4 
  Verifying  : glib2-2.56.1-8.el7.i686                                                                                                                                                                          2/4 
  Verifying  : xz-libs-5.1.2-9alpha.el7.i686                                                                                                                                                                    3/4 
  Verifying  : libmount-2.23.2-65.el7.i686                                                                                                                                                                      4/4 

Removed:
  xz-libs.i686 0:5.1.2-9alpha.el7                                                                                                                                                                                   

Dependency Removed:
  glib2.i686 0:2.56.1-8.el7                                          libmount.i686 0:2.23.2-65.el7                                          libselinux.i686 0:2.2.2-6.el7           

你可能感兴趣的:(yum出错"Multilib version problems found.")