一区二区三区在线-一区二区三区亚洲视频-一区二区三区亚洲-一区二区三区午夜-一区二区三区四区在线视频-一区二区三区四区在线免费观看

服務器之家:專注于服務器技術及軟件下載分享
分類導航

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.ythuaji.com.cn/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下Uptime命令詳解

    CentOS下Uptime命令詳解

    在Linux下,我們可以使用uptime命令,而且此命令不必使用root權限。uptime命令在系統中已經默認安裝了。今天小編為大家帶來的是CentOS下Uptime命令詳解;希望...

    CentOS之家11482019-06-19
  • CentosCentos7運用/dev/shm進行網站優化

    Centos7運用/dev/shm進行網站優化

    這篇文章主要介紹了LINUX中Centos7運用/dev/shm進行網站優化相關知識點,對此有興趣的朋友參考學習下。...

    彬菌9912022-03-02
  • CentosCentOS 6.6實現永久修改DNS地址的方法

    CentOS 6.6實現永久修改DNS地址的方法

    這篇文章主要介紹了CentOS 6.6實現永久修改DNS地址的方法,涉及針對CentOS配置文件的相關設置技巧,具有一定參考借鑒價值,需要的朋友可以參考下 ...

    Linux社區4472020-08-21
  • CentosCentOS6.5下Redis安裝與配置詳細步驟

    CentOS6.5下Redis安裝與配置詳細步驟

    本篇文章主要介紹了CentOS6.5下Redis安裝與配置詳細步驟,詳細介紹redis單機單實例安裝與配置,服務及開機自啟動。有興趣的可以了解一下。...

    飛流11452021-12-24
  • Centoscentos不小心刪除/root目錄該如何解決?

    centos不小心刪除/root目錄該如何解決?

    一些朋友最近在問小編centos不小心刪除/root目錄該如何解決?今天小編就為大家分享centos不小心刪除/root目錄解決辦法;希望對大家會有幫助,有需要的朋友...

    腳本之家8022019-05-29
  • CentosCentOS7設置日期和時間方法以及基本概念介紹

    CentOS7設置日期和時間方法以及基本概念介紹

    這篇文章主要介紹了CentOS7設置日期和時間方法以及基本概念介紹,本文講解使用CentOS7中的新命令timedatectl設置日期時間方法,需要的朋友可以參考下 ...

    CentOS之家6522019-09-19
  • CentosCentos 7開啟網卡自動獲取IP的詳細方法

    Centos 7開啟網卡自動獲取IP的詳細方法

    本篇文章主要介紹了Centos 7開啟網卡自動獲取IP的詳細方法,小編覺得挺不錯的,現在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧...

    凌鋒8972021-12-29
  • Centoscentos 安裝與操作方法

    centos 安裝與操作方法

    這篇文章主要介紹了centos 安裝與操作方法,需要的朋友可以參考下...

    centos之家5272019-07-11
主站蜘蛛池模板: 久久综合网久久综合 | 午夜影院费试看黄 | 好大好硬好深好爽gif图 | 爱福利视频一区二区 | 国产精品66福利在线观看 | 青青操在线观看 | 日本精品久久久久久久久免费 | 香蕉eeww99国产在线观看 | 亚久久伊人精品青青草原2020 | 变态 调教 视频 国产九色 | 亚裔maricahase和黑人 | 亚洲乱亚洲乱妇41p国产成人 | 大学生初次破苞免费视频 | 母性本能在线观看 | 日本老师xxxxx18 | 国产精品视频在这里有精品 | 男人捅女人动漫 | 国产女主播在线播放一区二区 | 福利三区| 精品香蕉99久久久久网站 | 牛牛在线观看 | 蹭蹭妈妈的朋友小说 | 91啦在线播放 | 日韩激情视频在线观看 | 天堂成人在线 | 欧美人禽杂交狂配无删完整 | 亚洲精品二三区伊人久久 | 久久久久久久国产精品视频 | 韩国www| 婷婷丁香视频 | 午夜AV内射一区二区三区红桃视 | 欧美坐爱 | 日本一区二区免费在线 | 精品国产国产精2020久久日 | 天天色天天色天天色 | 成年人在线观看免费视频 | 成人免费在线视频网 | 国产欧美在线播放 | 欧美日韩国产成人综合在线 | 亚洲午夜精品久久久久久人妖 | 高h禁伦奶水女 |