Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

CentOS 7 update: solutions to the Multilib version problems problem

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Preface

Not much to say about the origin of CentOS, with all the features and performance of RHEL, even more friendly, the most important point is free, loved by everyone, CentOS is no less popular than Ubuntu, before the installation of CentOS7, on the installation of tutorials, friends in need can refer to this article: https://www.jb51.net/article/95263.htm, the following words do not say more, let's take a look at the detailed introduction.

Find a problem

In the last two days, when updating the CentOS7 system, a Multilib version problems error occurred. Execute the command:

# yum update

The error message that appears:

...-> Package libcap-ng.i686 0.7.5-4.el7 will be installed--- > Package libstdc++.i686 0vir 4.8.5-16.el7 will be installed-- > Finished Dependency ResolutionError: 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_64Error: Protected multilib versions: pcre-8.32-17.el7.i686! = pcre-8.32-15.el7_2.1.x86_64Error: Protected multilib versions: elfutils-libs-0.168-8.el7.i686! = elfutils-libs-0.166-2.el7.x86_64.

The resolution process is as follows:

/ / query the duplicate software package # rpm-Q systemd-libssystemd-libs-219-30.el7.x86_64systemd-libs-219-42.el7_4.1.x86_64// to delete the old version # rpm-e systemd-libs-219-30.el7.x86_64error: Failed dependencies: systemd-libs = 219-30.el7 is needed by (installed) libgudev1-219-30.el7.x86_64// still has dependency problems Continue to query libgudev1 version information # rpm-Q libgudev1libgudev1-219-30.el7.x86_64// found that there is only one version, upgrade try # yum update libgudev1.Updated: libgudev1.x86_64 0libgudev1libgudev1 219-42.el7_4.1 complete # rpm-Q libgudev1libgudev1-219-42.el7_4.1.x86_64// after the upgrade is completed Delete the old version of systemd-libs# rpm-e systemd-libs-219-30.el7.x86_64# rpm-Q systemd-libssystemd-libs-219-42.el7_4.1.x86_64

In the end, the query found that only the latest version of systemd-libs was left, and the resolution of other duplicate versions was the same process.

The core commands are:

Rpm-Q package-namesrpm-e package-full-version

Summary

The above is the whole content of this article, I hope that the content of this article has a certain reference and learning value for your study or work, if you have any questions, you can leave a message and exchange, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report