centos_Error: Protected multilib versions_解决方法
in Linux with 0 comment

centos_Error: Protected multilib versions_解决方法

in Linux with 0 comment

错误提示

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

         2. You have multiple architectures of libselinux 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 libselinux 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: libselinux-2.0.94-5.3.el6_4.1.i686 != libselinux-2.0.94-5.8.el6.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

解决方法

手动处理重复

这个是要死人的

删除重复的

这个有时候会导致已经编译和安装的软件出问题,所以还是要有心理准备

自动删除重复命令

package-cleanup --cleandupes

这个也会导致#2 的问题

在yum命令后面加入忽略参数

在yum命令后面加入忽略参数:--setopt=protected_multilib=false

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).

这里说了,很可能导致more probems。不过么,现实中,可以试试看,尤其是保持一个老系统照旧运行时,这个方法会起作用的。

Responses
icon_mrgreen.gificon_neutral.gificon_twisted.gificon_arrow.gificon_eek.gificon_smile.gificon_confused.gificon_cool.gificon_evil.gificon_biggrin.gificon_idea.gificon_redface.gificon_razz.gificon_rolleyes.gificon_wink.gificon_cry.gificon_surprised.gificon_lol.gificon_mad.gificon_sad.gificon_exclaim.gificon_question.gif