Yum 找不到似乎已经安装的依赖项

Yum 找不到似乎已经安装的依赖项

我无法在 Centos 7 机器上“yum installwireshark-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 名称中的空括号 **“()”** 是什么意思。我读过有关主要、次要、版本编号的内容,但我不确定它是如何适应的。

答案1

您需要安装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

相关内容