其他

锐一网络为您解答服务器的疑难杂症

服务热线:400-920-4021

CentOS 7 更新时出现Multilib version problems错误应该怎么解决
5222017-11-27

CentOS作为一款免费的系统,其拥有RHEL的所有功能和性能,深受广大站长朋友的喜爱。而在更新CentOS 7 的时候,小编就遇到了麻烦。

# yum update

本以为可以像往常一样,正常的更新系统,没想到却出现了一下的错误信息:

....
---> Package libcap-ng.i686 0:0.7.5-4.el7 will be installed
---> Package libstdc++.i686 0:4.8.5-16.el7 will be installed
--> 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 glibc which is missing some dependency that another package 
requires.Yum is trying to solve this by installing an older version of glibc 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 glibc.otherarch ... 
this should give you an error message showing the root cause of the problem.

2. You have multiple architectures of glibc 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 glibc 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: glibc-2.17-196.el7.i686 != glibc-2.17-157.el7_3.1.x86_64

Error: Protected multilib versions: pcre-8.32-17.el7.i686 != pcre-8.32-15.el7_2.1.x86_64

Error: Protected multilib versions: elfutils-libs-0.168-8.el7.i686 != elfutils-libs-0.166-2.el7.x86_64
......

对于这个错误,这里直接给出解决方案:

# rpm -q systemd-libs
systemd-libs-219-30.el7.x86_64
systemd-libs-219-42.el7_4.1.x86_64

# rpm -e systemd-libs-219-30.el7.x86_64
error: Failed dependencies:
systemd-libs = 219-30.el7 is needed by (installed) libgudev1-219-30.el7.x86_64

# rpm -q libgudev1
libgudev1-219-30.el7.x86_64

# yum update libgudev1
......
Updated:
libgudev1.x86_64 0:219-42.el7_4.1                              

# rpm -q libgudev1
libgudev1-219-42.el7_4.1.x86_64

# rpm -e systemd-libs-219-30.el7.x86_64
# rpm -q systemd-libs
systemd-libs-219-42.el7_4.1.x86_64

这里首先是查询了重复的软件包,然后删除旧版本的软件包,如果仍然出现依赖问题,则继续查询libgudev1的版本信息,查询结果为一个版本时,我们尝试升级一下版本,等待升级完成后删除旧的版本systemd-libs。注意的是,如果发现有其他重复包,可以再执行上面的步骤,直到只剩下一个软件包。

本文由锐一网络整理发布,如需香港服务器、高防服务器,请联系锐一客服或者百度“锐一网络”即可找到我们。

Multilib version problems,CentOS错误,系统更新.

关注我们

关于我们

  • 400热线:400-920-4021
  • 电话:0755-33076677
  • 邮箱:info@a166.com
  • 地址:深圳市福田区彩莲路天隆大厦1507

产品销售

售后服务

  • 售后 锐一售后客服
  • 售后 锐一售后客服
  • 售后 锐一售后客服

增值服务

  • 证书 SSL
收缩