簡體   English   中英

在 Centos 6.10 上破解 yum,由於缺少 libunwind 無法安裝缺少的 GLIBC

[英]Broke yum on Centos 6.10, cannot install missing GLIBC in error due to missing libunwind

我在 Centos 6.10 上安裝了 nvidia-drivers,其中包含一個 --skip-broken 標志並且可能破壞了 yum。 每當我運行yum命令時,都會彈出此錯誤。

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /lib64/libgcc_s.so.1)

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Jun 20 2019, 14:14:55)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq

我偶然發現了這個討論安裝缺少的 GLIBC 版本的線程,但我在第 8 步中遇到了這個錯誤../configure --prefix=/opt/glibc-2.14

checking for forced unwind support... no
configure: error: forced unwind support is required

然后把我帶到了這個論壇帖子,上面說我應該通過 yum 安裝 libunwind。 這是我最初的問題,因此讓我陷入僵局。 我該怎么辦?

您需要重新安裝 GCC,或者更准確地說是重新安裝libgcc包。 有些東西用不兼容的版本覆蓋了/lib64/libgcc_s.so.1 您應該能夠從鏡像下載libgcc RPM 包,然后運行:

# rpm --reinstall libgcc-4.4.7-23.el6.x86_64.rpm

這應該仍然有效,因為 RPM 本身不依賴於libgcc_s

一般來說,如果需要這些核心系統庫(glibc、libstdc++、libgcc_s)的更新版本,則需要升級整個操作系統。 即使您設法以一致的方式替換它們,您也正在運行與原始操作系統不太接近的東西。 在這一點上,升級更為謹慎,因為這將為您提供一個已被許多其他人測試過的一致系統。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM