解决multilib版本问题


18

我使用Centos 6.4

当我尝试安装libgcc时,进行yum install libgcc.i686了以下按摩。

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 libgcc which is missing some
            dependency that another package requires. Yum is trying to
            solve this by installing an older version of libgcc 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 libgcc.otherarch ... this should give you an error
            message showing the root cause of the problem.

         2. You have multiple architectures of libgcc 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 libgcc 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: libgcc-4.4.7-4.el6.i686 != libgcc-4.4.7-3.el6.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles –nodigest

如何安装libgcc.i686?

Answers:


16

看来您libgcc.x86_64的版本与libgcc.i686尝试安装的版本不同(4.4.7-3vs. 4.4.7-4)。尝试与安装i686-lib一起更新x86_64库:

yum install libgcc.x86_64 libgcc.i686

我报告可以用安装libgcc.i686 yum install libgcc.x86_64 libgcc.i686
user1345414

4

我在打断后就碰到了这个yum update(在我的情况下,这是一次非常糟糕的奔跑)。阅读此线程后,我最终使用以下方法修复了该线程

package-cleanup --cleandupes

尽管在此之前,我还尝试过按照@etagenklo的建议运行命令,还尝试了:

yum-complete-transaction yum-complete-transaction --cleanup-only yum check # report generally package-cleanup --dupes # report on duplicate packages in particular



-3

我们如何解决该错误?

Error:  Multilib version problems found.

这通常意味着根本原因是另外一些原因,而多库版本检查只是指出存在问题。例如。:

  1. 您有4月的升级,但缺少其他软件包需要的某些依赖关系。Yum试图通过安装较早版本的其他体系结构的apr解决此问题。如果您排除了不良的体系结构,yum会告诉您根本原因是什么(哪个软件包需要什么)。您可以尝试使用--exclude apr.otherarch ...此方法来重做升级, 这样应该会显示一条错误消息,指出问题的根本原因。

  2. 您已经安装了多种apr架构,但是yum只能看到其中一种架构的升级。如果您不再需要/不需要这两种体系结构,则可以删除缺少更新的体系结构,一切都会正常进行。

  3. 您已经安装了重复版本的apr。您可以使用yum checkyum显示这些错误。

    ...您也可以--setopt=protected_multilib=false用来取消此检查,但是,这几乎永远都不是正确的做法,因为其他事情很可能会出错(通常会导致更多问题)。

    Error:
    Protected multilib versions: apr-1.3.9-5.el6_2.i686 != apr-1.5.2-2.x86_64
    Protected multilib versions: apr-util-1.3.9-3.el6_0.1.i686 != apr-util-1.5.4-2.x86_64
    

--setopt=protected_multilib=false很有帮助 谢谢。
Scottie H
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.