yum install libxml2.so.2 zlib 出錯

yum 安裝 libxml2.so.2 的時候報如下錯誤:


錯誤: 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 libxml2 which is missing some
           dependency that another package requires. Yum is trying to
           solve this by installing an older version of libxml2 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 libxml2.otherarch ... this should give you an error
           message showing the root cause of the problem.
      
        2. You have multiple architectures of libxml2 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 libxml2 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: libxml2-2.7.6-17.el6_6.1.i686 != libxml2-2.7.6-14.el6_5.2.x86_64


-------------所以,

重新執行

yum install libxml2.so.2 --setopt=protected_multilib=false


成功執行結果:

執行事務
  正在安裝   : zlib-1.2.3-29.el6.i686                                                                                    1/2 
  正在安裝   : libxml2-2.7.6-17.el6_6.1.i686                                                                             2/2 
  Verifying  : libxml2-2.7.6-17.el6_6.1.i686                                                                             1/2 
  Verifying  : zlib-1.2.3-29.el6.i686                                                                                    2/2 


已安裝:
  libxml2.i686 0:2.7.6-17.el6_6.1                                                                                            


作爲依賴被安裝:
  zlib.i686 0:1.2.3-29.el6                                                                                                   


完畢!




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章