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

# 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 rootcause is something else and multilib version checking is justpointing out that there is a problem. Eg.:1. You have an upgrade for glibc which is missing somedependency that another package requires. Yum is trying tosolve this by installing an older version of glibc of thedifferent architecture. If you exclude the bad architectureyum will tell you what the root cause is (which packagerequires what). You can try redoing the upgrade with--exclude glibc.otherarch ... this should give you an errormessage showing the root cause of the problem.2. You have multiple architectures of glibc installed, butyum can only see an upgrade for one of those architectures.If you don't want/need both architectures anymore then youcan remove the one with the missing update and everythingwill 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 removethis checking, however this is almost never the correct thing todo as something else is very likely to go wrong (often causingmuch 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//仍然出现依赖问题,继续查询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,其他重复版本包的解决,也是同样的过程。
核心的命令主要是:

rpm -q package-names
rpm -e package-full-version

CentOS 7更新时出现Multilib version problems相关推荐

  1. CentOS\fedora使用yum update更新时不升级内核的方法

    2019独角兽企业重金招聘Python工程师标准>>> 引言: 由于系统与硬件的兼容性问题,有可能升级内核后导致服务器不能正常启动,这是非常可怕的,没有特别的需要,建议不要随意升级内 ...

  2. Ubuntu更新时遇到/boot空间不足

    2019独角兽企业重金招聘Python工程师标准>>> 经常升级Linux内核,导致更新时警告/boot分区空间不足.这是以为多次升级内核后,导致内核版本太多,清理一下没用的内核文件 ...

  3. 使用yum更新时不升级Linux内核的方法

    RedHat/CentOS/Fedora使用 yum update 更新时,默认会 升级内核 . 但有些服务器硬件(特别是组装的机器)在升级内核后,新的内核可能会认不出某些硬件,要重新安装驱动,很麻烦 ...

  4. 如何解决“本地编辑,更新时传入删除”消息

    本文翻译自:How to resolve "local edit, incoming delete upon update" message When I do a svn sta ...

  5. 安装升级包卡住了华为_华为手机 android8.0APP更新时出现安装包解析异常的提示及安装闪退(无反应)问题...

    在做android app升级更新时遇到几个问题,我用的测试机是华为V10 系统为8.0 一.安装闪退(无反应) 解决办法: 只要在Mainfest.xml 中加入权限编码即可解决 来源参考:http ...

  6. 消除安卓SDK更新时的“https://dl-ssl.google.com refused”异常的方法

    消除安卓SDK更新时的"https://dl-ssl.google.com refused"异常的方法 消除安卓SDK更新时的"https://dl-ssl.google ...

  7. 【Postgresql】触发器某个字段更新时执行,行插入或更新执行

    [Postgresql]触发器某个字段更新时执行,行插入或更新执行 1. postgresql触发器 2. 触发器的创建及示例 1) 字段更新时,触发 2) 行插入或更新时,触发 3. 触发器的删除 ...

  8. 华为手机 android8.0APP更新时出现安装包解析异常的提示及安装闪退(无反应)问题

    华为手机 android8.0APP更新时出现安装包解析异常的提示及安装闪退(无反应)问题 参考文章: (1)华为手机 android8.0APP更新时出现安装包解析异常的提示及安装闪退(无反应)问题 ...

  9. windows update更新时出现错误代码 8024200D解决方法(转)

    windows update更新时出现错误代码 8024200D解决方法(转) 参考文章: (1)windows update更新时出现错误代码 8024200D解决方法(转) (2)https:// ...

最新文章

  1. 用requests获取网页源代码 python-手把手教你利用爬虫爬网页(Python代码)
  2. java笔记之WebProject常见问题
  3. linux打jar包xml文件,springboot打jar包部署外置配置文件
  4. 各种开源Android 系统定制
  5. [转]C语言嵌入式系统编程修炼之背景篇
  6. java数据库连接access_java连接Access数据库的方法
  7. 笔记本电脑屏幕亮度无法调节
  8. Choco安装npm
  9. LeetCode刷题——剑指offer深度优先搜索题目汇总
  10. 初探----python封装通俗易懂的数据库增、删、改、查方法
  11. 从技术原理解析区块链为何列入新基建
  12. Revit中添加水平仰视平面图及水平剖面
  13. 蓝牙协议分析(2)_协议架构
  14. swfobject.js for flash 的使用(for swfobject 2.0)
  15. Java IO 之BIO讲解
  16. 中文文本分析, Text-Analysis
  17. Appium: Windows系统桌面应用自动化测试(二)
  18. HDU - 1686 Oulipo KMP
  19. ts里变量定义any报错Unexpected any. Specify a different type.
  20. Jdk1.8 Collectors类使用详解(实用干货)

热门文章

  1. excel导入SQL脚本
  2. MATLAB【九】————ICP算法实现
  3. Spring AOP与IOC
  4. Linux中errno使用
  5. php 的opcode缓存apc以及其安装
  6. Memcached安装以及PHP的调用
  7. IE的box模型显示bug
  8. C#中Timer组件用法
  9. libev源码解析——定时器原理
  10. 如何在父进程中读取子(外部)进程的标准输出和标准错误输出结果