解决multilib版本问题

我使用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?

看来你的libgcc.x86_64的版本与你试图安装的libgcc.i686版本不同( 4.4.7-34.4.7-4 )。 尝试更新x86_64 lib与安装i686-lib:

 yum install libgcc.x86_64 libgcc.i686 

我们如何解决这个错误?

 Error: Multilib version problems found. 

这通常意味着根本原因是别的,multilib版本检查只是指出存在问题。 例如。:

  1. 你有一个升级为缺less一些依赖另一个软件包需要。 Yum试图通过安装不同架构的旧版本来解决这个问题。 如果你排除坏的build筑,yum会告诉你什么是根源(哪个包需要什么)。 你可以尝试重做升级--exclude apr.otherarch ...这应该会给你一个错误信息,显示问题的根本原因。

  2. 你有多种安装的体系结构,但是百胜只能看到其中一个arcitecture的升级。 如果您不再需要/不再需要这两种体系结构,那么您可以删除缺less更新的那个,并且一切都将工作。

  3. 您已经安装了复制的apr版本。 你可以用yum check来让yum显示这些错误。

    …你也可以使用--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