服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服务器之家 - 服务器系统 - Centos - CentOS 7更新时出现:Multilib version problems问题的解决方法

CentOS 7更新时出现:Multilib version problems问题的解决方法

2022-02-21 17:42mydeman Centos

这篇文章主要给大家介绍了关于CentOS 7系统更新时出现:Multilib version problems问题的解决方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面来一起看看吧。

前言

关于CentOS的出身就不多多说了,拥有RHEL所有功能和性能,甚至更加友好,最重要一点是免费,深受大家的喜爱,CentOS的受欢迎程度并不亚于Ubuntu,之前安装了CentOS7,关于安装的教程,有需要的朋友们可以参考这篇文章:http://www.tuohang.net/article/205058.html ,下面话不多说了,来一起看看详细的介绍吧。

发现问题

最近这两天在更新CentOS7系统时,出现了Multilib version problems错误,执行命令:

?
1
# yum update

出现了的错误信息:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
....
---> 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
......

解决过程如下:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//查询重复的软件包
# 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
 
//仍然出现依赖问题,继续查询libgudev1的版本信息
# rpm -q libgudev1
libgudev1-219-30.el7.x86_64
 
//发现只有一个版本,升级试一下
# yum update libgudev1
......
Updated:
 libgudev1.x86_64 0:219-42.el7_4.1                             
 
Complete!
# rpm -q libgudev1
libgudev1-219-42.el7_4.1.x86_64
 
//升级完成后,删除旧版本的systemd-libs
# rpm -e systemd-libs-219-30.el7.x86_64
# rpm -q systemd-libs
systemd-libs-219-42.el7_4.1.x86_64

最后查询发现只剩下最新版本的systemd-libs,其他重复版本包的解决,也是同样的过程。

核心的命令主要是:

?
1
2
rpm -q package-names
rpm -e package-full-version

总结

以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,如果有疑问大家可以留言交流,谢谢大家对服务器之家的支持。

原文链接:http://blog.csdn.net/mydeman/article/details/78168014

延伸 · 阅读

精彩推荐
  • CentosCentOS 最新版本git的安装教程

    CentOS 最新版本git的安装教程

    本文主要给大家介绍了CentOS 最新版本git的安装教程,非常不错,具有参考借鉴价值,感兴趣的朋友一起看看吧...

    CentOS教程网9252021-11-29
  • CentosCentOS系统下软件包的制作方法和过程详解

    CentOS系统下软件包的制作方法和过程详解

    今天小编将为大家带来的是CentOS系统下软件包的制作方法和过程详解;希望对大家会有帮助,有需要的朋友一起去看看吧...

    CentOS之家4802019-05-30
  • Centoscentos 7中添加一个新用户并授权的步骤详解

    centos 7中添加一个新用户并授权的步骤详解

    这篇文章主要给大家介绍了关于在centos 7中添加一个新用户并授权的步骤,文中将实现的步骤介绍的非常详细,通过文中介绍的步骤可以轻松的创建一个新...

    Ryan.Miao9832022-02-12
  • Centos在CentOS系统上安装Docker的教程

    在CentOS系统上安装Docker的教程

    这篇文章主要介绍了在CentOS系统上安装Docker的教程,Docker是当下人气最为火热的容器类虚拟软件,需要的朋友可以参考下 ...

    开源中文社区3952019-09-17
  • CentosCentOS6.2网卡设置

    CentOS6.2网卡设置

    如果你想让服务器可以更新、让网友访问你的LINUX服务器,那一定要设置LINUX网上给网卡绑定一个IP,下面我们就介绍CentOS6.2网卡设置IP的方法。...

    CentOS教程网10092021-10-03
  • CentosCentOS7 阿里云的yum源使用详解

    CentOS7 阿里云的yum源使用详解

    这篇文章主要介绍了CentOS7 阿里云的yum源使用详解的相关资料,这里对备份yum源,添加EPEL源,和缓存清理,进行了介绍,需要的朋友可以参考下...

    天王9312020-12-28
  • CentosCentOS上SVN服务器端程序的安装与使用教程

    CentOS上SVN服务器端程序的安装与使用教程

    SVN是一款高人气的软件项目版本控制系统,由于其在Windows的客户端的简易操作,在Git的浪潮中仍然保有很多的用户数量,这里我们就来看一下CentOS上SVN服务器端...

    cnblogs3902019-07-16
  • Centos使用Xshell连接Centos 6.6服务器操作图文教程

    使用Xshell连接Centos 6.6服务器操作图文教程

    这篇文章主要介绍了使用Xshell连接Centos 6.6服务器操作图文教程,本文用详细的操作步骤讲解了如何使用Xshell连接Centos服务器,需要的朋友可以参考下 ...

    脚本之家4032019-09-18