Linux

Zypper 完全不工作

  • March 29, 2019

zypper嘗試以任何形式執行時,我遇到了突然的錯誤:

zypper: symbol lookup error: /usr/lib64/libzypp.so.908: undefined symbol: gzdopen

不太確定如何解決這個問題,因為當我嘗試安裝最新的 libzypp 包時,它會詢問我大量的依賴項:

sudo rpm -i --force http://widehat.opensuse.org/opensuse/update/leap/15.0/oss/x86_64/libzypp-17.6.4-lp150.2.3.1.x86_64.rpm

error: Failed dependencies:
       libboost_thread.so.1.66.0()(64bit) is needed by libzypp-17.6.4-lp150.2.3.1.x86_64
       libc.so.6(GLIBC_2.14)(64bit) is needed by libzypp-17.6.4-lp150.2.3.1.x86_64
       libc.so.6(GLIBC_2.15)(64bit) is needed by libzypp-17.6.4-lp150.2.3.1.x86_64
       libc.so.6(GLIBC_2.16)(64bit) is needed by libzypp-17.6.4-lp150.2.3.1.x86_64
       libcrypto.so.1.1()(64bit) is needed by libzypp-17.6.4-lp150.2.3.1.x86_64
       libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) is needed by libzypp-17.6.4-lp150.2.3.1.x86_64
       libproxy.so.1()(64bit) is needed by libzypp-17.6.4-lp150.2.3.1.x86_64
       librpm.so.8()(64bit) is needed by libzypp-17.6.4-lp150.2.3.1.x86_64
       libsolv-tools = 0.6.35 is needed by libzypp-17.6.4-lp150.2.3.1.x86_64
       libstdc++.so.6(GLIBCXX_3.4.18)(64bit) is needed by libzypp-17.6.4-lp150.2.3.1.x86_64
       libstdc++.so.6(GLIBCXX_3.4.19)(64bit) is needed by libzypp-17.6.4-lp150.2.3.1.x86_64
       libstdc++.so.6(GLIBCXX_3.4.20)(64bit) is needed by libzypp-17.6.4-lp150.2.3.1.x86_64
       libstdc++.so.6(GLIBCXX_3.4.21)(64bit) is needed by libzypp-17.6.4-lp150.2.3.1.x86_64
       libstdc++.so.6(GLIBCXX_3.4.22)(64bit) is needed by libzypp-17.6.4-lp150.2.3.1.x86_64
       libudev.so.1()(64bit) is needed by libzypp-17.6.4-lp150.2.3.1.x86_64
       libudev.so.1(LIBUDEV_183)(64bit) is needed by libzypp-17.6.4-lp150.2.3.1.x86_64
       rpmlib(FileDigests) <= 4.6.0-1 is needed by libzypp-17.6.4-lp150.2.3.1.x86_64

結束問題。顯然整個 /usr 相關的系統配置都被破壞了,所以我不得不去備份。

沒有任何方法可以解決 zypper 崩潰問題 - 似乎在安裝庫/模組時的某些時候強制使用了不兼容的版本,這導致了無法挽回的損壞。

引用自:https://unix.stackexchange.com/questions/507965