yum報錯:Error: Multilib version problems found. This often means that the root


使用yum安裝一些依賴庫報錯:

yum -y install gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel

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

2. You have multiple architectures of pcre 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 pcre 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: pcre-8.32-17.el7.x86_64 != pcre-8.32-15.el7_2.1.i686

報錯原因:重復安裝依賴庫
rpm -q pcre-8.32-15.el7_2.1.i686 (查看是否已安裝相關庫)

修復方法:刪除已安裝的依賴庫(由於是新環境,所以可以刪除,線上環境可以嘗試使用update)

rpm -e   pcre-8.32-15.el7_2.1.i686

再次使用yum安裝成功

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM