欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

CentOS 7更新時出現(xiàn):Multilib version problems問題的解決方法

 更新時間:2017年11月10日 10:44:00   作者:mydeman  
這篇文章主要給大家介紹了關(guān)于CentOS 7系統(tǒng)更新時出現(xiàn):Multilib version problems問題的解決方法,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面來一起看看吧。

前言

關(guān)于CentOS的出身就不多多說了,擁有RHEL所有功能和性能,甚至更加友好,最重要一點是免費(fèi),深受大家的喜愛,CentOS的受歡迎程度并不亞于Ubuntu,之前安裝了CentOS7,關(guān)于安裝的教程,有需要的朋友們可以參考這篇文章:http://www.dbjr.com.cn/article/95263.htm ,下面話不多說了,來一起看看詳細(xì)的介紹吧。

發(fā)現(xiàn)問題

最近這兩天在更新CentOS7系統(tǒng)時,出現(xiàn)了Multilib version problems錯誤,執(zhí)行命令:

# yum update

出現(xiàn)了的錯誤信息:

....
---> 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
......

解決過程如下:

//查詢重復(fù)的軟件包
# 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

//仍然出現(xiàn)依賴問題,繼續(xù)查詢libgudev1的版本信息
# rpm -q libgudev1
libgudev1-219-30.el7.x86_64

//發(fā)現(xiàn)只有一個版本,升級試一下
# 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

最后查詢發(fā)現(xiàn)只剩下最新版本的systemd-libs,其他重復(fù)版本包的解決,也是同樣的過程。

核心的命令主要是:

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

總結(jié)

以上就是這篇文章的全部內(nèi)容了,希望本文的內(nèi)容對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,如果有疑問大家可以留言交流,謝謝大家對腳本之家的支持。

相關(guān)文章

  • Apeache啟動不成功時,用命令行檢測的方法

    Apeache啟動不成功時,用命令行檢測的方法

    下面小編就為大家?guī)硪黄狝peache啟動不成功時,用命令行檢測的方法。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2017-09-09
  • linux查看磁盤使用情況方法

    linux查看磁盤使用情況方法

    在本篇文章里小編給大家分享了關(guān)于linux查看磁盤使用情況的步驟和方法,需要的朋友們學(xué)習(xí)下。
    2019-02-02
  • 解決SSH連接超時的2個配置方法

    解決SSH連接超時的2個配置方法

    用SSH客戶端連接linux服務(wù)器時,經(jīng)常會出現(xiàn)與服務(wù)器會話連接中斷現(xiàn)象,照成這個問題的原因便是SSH服務(wù)有自己獨特的會話連接機(jī)制。
    2014-04-04
  • linux cd的含義以及用法

    linux cd的含義以及用法

    在本文里我們給大家整理了關(guān)于linux cd的含義以及用法并把相關(guān)知識點做了詳細(xì)介紹,需要的朋友們參考下。
    2019-05-05
  • Linux service無法使用系統(tǒng)環(huán)境變量的問題及解決

    Linux service無法使用系統(tǒng)環(huán)境變量的問題及解決

    這篇文章主要介紹了Linux service無法使用系統(tǒng)環(huán)境變量的問題及解決方案,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教
    2023-04-04
  • 阿里云Linux-CentOS系統(tǒng)下-搭建Git服務(wù)器詳解

    阿里云Linux-CentOS系統(tǒng)下-搭建Git服務(wù)器詳解

    這篇文章主要介紹了 阿里云Linux-CentOS系統(tǒng)下-搭建Git服務(wù)器詳解的相關(guān)資料,需要的朋友可以參考下
    2016-11-11
  • 緩存服務(wù)器的建立原理分析

    緩存服務(wù)器的建立原理分析

    通常情況下我們運(yùn)行程序的過程中會產(chǎn)生一些中間數(shù)據(jù),這些中間數(shù)據(jù)需要在將來的某個時間讀取。這就要求我們要把它存在一個提供高速存取的地方,最好的選擇就是內(nèi)存中。
    2008-10-10
  • centos iso鏡像文件安裝教程

    centos iso鏡像文件安裝教程

    這篇文章主要為大家詳細(xì)介紹了centos iso鏡像文件安裝教程,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2017-06-06
  • Apache中301重定向的配置代碼

    Apache中301重定向的配置代碼

    Apache下301重定向代碼(因為我使用的是WINDOWS 2003 + APACHE 所以本文僅限APACHE服務(wù)器使用。)
    2011-02-02
  • Apache中的Order Allow,Deny用法詳解

    Apache中的Order Allow,Deny用法詳解

    這篇文章主要介紹了Apache中的Order Allow,Deny用法,結(jié)合實例較為詳細(xì)的分析了Apache中Order Allow,Deny的具體作用及使用技巧,具有一定參考借鑒價值,需要的朋友可以參考下
    2015-12-12

最新評論