Centos
Yum 找不到似乎已經安裝的依賴項
我無法在 Centos 7 機器上“yum install wireshark-gnome”或 wireshark。從 SU 提示符執行,最後出現此錯誤:
--> Running transaction check ---> Package wireshark.x86_64 0:1.10.14-16.el7 will be installed --> Processing Dependency: libsmi.so.2()(64bit) for package: wireshark-1.10.14-16.el7.x86_64 --> Finished Dependency Resolution Error: Package: wireshark-1.10.14-16.el7.x86_64 (base) Requires: libsmi.so.2()(64bit) Available: libsmi-0.4.8-13.el7.x86_64 (base) libsmi.so.2()(64bit) You could try using --skip-broken to work around the problem ** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows: libsmi-0.4.8-13.el7.x86_64 has missing requires of libsmi.so.2()(64bit)
但是,試圖找到我得到的那個失去的庫:
[root@localhost frank]# yum provides libsmi.so.2 Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.hostduplex.com * epel: mirrors.sonic.net * extras: mirror.keystealth.org * updates: mirror.hostduplex.com libsmi-0.4.8-13.el7.i686 : A library to access SMI MIB information Repo : base Matched from: Provides : libsmi.so.2 libsmi-0.4.8-13.el7.i686 : A library to access SMI MIB information Repo : @base Matched from: Provides : libsmi.so.2
如果我嘗試安裝提供的包:
[root@localhost frank]# yum install libsmi-0.4.8-13.el7.i686 Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.hostduplex.com * epel: mirrors.sonic.net * extras: mirror.keystealth.org * updates: mirror.hostduplex.com Package libsmi-0.4.8-13.el7.i686 already installed and latest version Nothing to do
我還嘗試安裝 64 位軟體包:
[frank@localhost ~]$ sudo yum install libsmi-0.4.8-13.el7.x86_64 [sudo] password for frank: Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.hostduplex.com * epel: mirrors.sonic.net * extras: mirror.keystealth.org * updates: mirror.hostduplex.com Package libsmi-0.4.8-13.el7.x86_64 already installed and latest version Nothing to do
雖然我不是很有經驗,但在我看來我有包含**libsmi.so.2()**的包,那麼我遇到的問題是什麼。我更新了我的回購併完成了 yum 交易,但似乎沒有任何幫助。
我也想了解發生了什麼。參考libsmi.so.2(),.so 名稱中的空括號 ** “()” ** 是什麼意思。我已經閱讀了有關主要、次要、版本編號的資訊,但我不確定它是如何適用的。
您需要安裝 libsmi.so.2 的 64 位架構,您已安裝的 (libsmi-0.4.8-13.el7.i686) 看起來像 32 位架構的 libsmi。
對於 CentOS7, https: //centos.pkgs.org/7/centos-x86_64/libsmi-0.4.8-13.el7.x86_64.rpm.html
嘗試
yum install libsmi-0.4.8-13.el7.x86_64