美文网首页
yum Multilib version problems

yum Multilib version problems

作者: 与狼共舞666 | 来源:发表于2022-05-22 19:20 被阅读0次
[root@sonarqube yum.repos.d]# yum install zlib.x86_64
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package zlib.x86_64 0:1.2.7-19.el7_9 will be updated
---> Package zlib.x86_64 0:1.2.7-20.el7_9 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 zlib which is missing some
            dependency that another package requires. Yum is trying to
            solve this by installing an older version of zlib 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 zlib.otherarch ... this should give you an error
            message showing the root cause of the problem.
       
         2. You have multiple architectures of zlib 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 zlib 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: zlib-1.2.7-20.el7_9.x86_64 != zlib-1.2.7-19.el7_9.i686

解决办法:卸载重推架构的zlib包

[root@sonarqube yum.repos.d]# yum remove zlib-1.2.7-19.el7_9.i686
Loaded plugins: fastestmirror, ovl
Resolving Dependencies
--> Running transaction check
---> Package zlib.i686 0:1.2.7-19.el7_9 will be erased
--> Processing Dependency: libz.so.1 for package: zlib-devel-1.2.7-19.el7_9.i686
--> Running transaction check
---> Package zlib-devel.i686 0:1.2.7-19.el7_9 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================================================================
 Package                                     Arch                                  Version                                           Repository                                 Size
=====================================================================================================================================================================================
Removing:
 zlib                                        i686                                  1.2.7-19.el7_9                                    @updates                                  180 k
Removing for dependencies:
 zlib-devel                                  i686                                  1.2.7-19.el7_9                                    @updates                                  132 k

Transaction Summary
=====================================================================================================================================================================================
Remove  1 Package (+1 Dependent package)

Installed size: 313 k
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : zlib-devel-1.2.7-19.el7_9.i686                                                                                                                                    1/2 
  Erasing    : zlib-1.2.7-19.el7_9.i686                                                                                                                                          2/2 
  Verifying  : zlib-devel-1.2.7-19.el7_9.i686                                                                                                                                    1/2 
  Verifying  : zlib-1.2.7-19.el7_9.i686                                                                                                                                          2/2 

Removed:
  zlib.i686 0:1.2.7-19.el7_9                                                                                                                                                         

Dependency Removed:
  zlib-devel.i686 0:1.2.7-19.el7_9                                                                                                                                                   

Complete!

相关文章

网友评论

      本文标题:yum Multilib version problems

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