记录一下Protected multilib versions问题。

今天yum update时候出现了错误:
--> 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.:
...
Protected multilib versions: libgcc-4.8.5-44.el7.i686 != libgcc-4.8.5-39.el7.x86_64

搜了一下都说要rpm -e,然而这样似乎并不行
正确操作是,先查询冲突的包有哪些版本:

rpm -q libgcc

得到:
libgcc-4.8.5-39.el7.x86_64
libgcc-4.8.5-39.el7.i686
libgcc-4.8.5-44.el7.x86_64

再把冲突的包用yum卸载:

yum remove libgcc-4.8.5-39.el7.x86_64
yum remove libgcc-4.8.5-39.el7.i686

再yum update就可以了

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注