我无法在 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
尝试