yum 检查输出显示系统上实际存在的许多缺失的系统库

yum 检查输出显示系统上实际存在的许多缺失的系统库

我正在运行 CentOS 6.10,我运行它yum check,它发现了一堆缺失的系统依赖项,下面是所有这些依赖项的简短片段。总共有140行。

[root@mybox /]# yum check
Loaded plugins: fastestmirror, security
GConf2-2.28.0-7.el6.x86_64 has missing requires of libORBit-2.so.0()(64bit)
abrt-addon-ccpp-2.0.8-44.el6.centos.x86_64 has missing requires of abrt = ('0', '2.0.8', '44.el6.centos')
abrt-addon-ccpp-2.0.8-44.el6.centos.x86_64 has missing requires of abrt-libs = ('0', '2.0.8', '44.el6.centos')
abrt-addon-ccpp-2.0.8-44.el6.centos.x86_64 has missing requires of elfutils
abrt-addon-ccpp-2.0.8-44.el6.centos.x86_64 has missing requires of elfutils-libs
abrt-addon-ccpp-2.0.8-44.el6.centos.x86_64 has missing requires of libabrt.so.0()(64bit)
abrt-addon-ccpp-2.0.8-44.el6.centos.x86_64 has missing requires of libreport.so.0()(64bit)
abrt-addon-ccpp-2.0.8-44.el6.centos.x86_64 has missing requires of libsatyr.so.3()(64bit)
abrt-tui-2.0.8-44.el6.centos.x86_64 has missing requires of abrt-libs = ('0', '2.0.8', '44.el6.centos')
abrt-tui-2.0.8-44.el6.centos.x86_64 has missing requires of libabrt.so.0()(64bit)
abrt-tui-2.0.8-44.el6.centos.x86_64 has missing requires of libreport.so.0()(64bit)
abrt-tui-2.0.8-44.el6.centos.x86_64 has missing requires of libsatyr.so.3()(64bit)
abrt-tui-2.0.8-44.el6.centos.x86_64 has missing requires of usermode
apr-util-1.3.9-3.el6_0.1.x86_64 has missing requires of libapr-1.so.0()(64bit)

运行 ldconfig 显示这些库已被链接。

[root@mybox /]# ldconfig -v | grep libabrt.so
        libabrt.so.0 -> libabrt.so.0.0.1

我不确定此时还应该看什么。任何帮助是极大的赞赏。

答案1

我发现这个相关问题很有帮助。在第一个丢失的库上运行locate后,

[root@myBox /]# locate libORBit-2
/usr/lib64/libORBit-2.so.0
/usr/lib64/libORBit-2.so.0.1.0

然后rpm -qf在库上运行。

[root@myBox /]# rpm -qf /usr/lib64/libORBit-2.so.0.1.0 
file /usr/lib64/libORBit-2.so.0.1.0 is not owned by any package

这告诉我 rpm 实际上并不知道这个库,尽管它存在。深入挖掘,我们可以看到 yum 甚至没有安装提供此库的软件包。根据 存在一个软件包yum whatprovides,但未安装。 yum list installed | grep ORBit2出现空的!

[root@myBox /]# yum whatprovides /usr/lib64/libORBit-2.so.0
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirror.cogentco.com
 * extras: mirrors.umflint.edu
 * updates: linux.cc.lehigh.edu
ORBit2-2.14.17-7.el6.x86_64 : A high-performance CORBA Object Request Broker
Repo        : base
Matched from:
Filename    : /usr/lib64/libORBit-2.so.0

因此,在 yum 安装 ORBit2 后,该库不再在 yum 检查结果中显示为未链接。我只需要对其他几十个也搞砸的包重复这个过程。

相关内容