人妖在线一区,国产日韩欧美一区二区综合在线,国产啪精品视频网站免费,欧美内射深插日本少妇

新聞動(dòng)態(tài)

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

發(fā)布日期:2022-04-29 12:04 | 文章來源:CSDN

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

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

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

# yum update

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

....
---> 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)只有一個(gè)版本,升級試一下
# 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í)價(jià)值,如果有疑問大家可以留言交流,謝謝大家對本站的支持。

版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。

實(shí)時(shí)開通

自選配置、實(shí)時(shí)開通

免備案

全球線路精選!

全天候客戶服務(wù)

7x24全年不間斷在線

專屬顧問服務(wù)

1對1客戶咨詢顧問

在線
客服

在線客服:7*24小時(shí)在線

客服
熱線

400-630-3752
7*24小時(shí)客服服務(wù)熱線

關(guān)注
微信

關(guān)注官方微信
頂部