/sbin/ldconfig: File /usr/lib64/libsnappy.so.1.1.4 is empty, not checked

在执行“yum-update/install”命令的过程中会出现以下错误:

/sbin/ldconfig: File /usr/lib64/libsnappy.so.1.1.4 is empty, not checked.
/sbin/ldconfig: File /usr/lib64/libbfd-2.20.51.0.2-5.43.el6.so is empty, not checked.
/sbin/ldconfig: File /usr/lib64/libopcodes-2.20.51.0.2-5.43.el6.so is empty, not checked.
/sbin/ldconfig: File /usr/lib64/libp11-kit.so.0 is empty, not checked.
/sbin/ldconfig: File /usr/lib64/libLLVM-3.4-mesa.so is empty, not checked.
/sbin/ldconfig: File /usr/lib64/libXft.so.2.3.1 is empty, not checked.
/sbin/ldconfig: File /usr/lib64/libsnappy.so.1 is empty, not checked.
/sbin/ldconfig: File /usr/lib64/libp11-kit.so.0.0.0 is empty, not checked.

解决方案

查找每个文件所属的程序包,然后重新安装该程序包:

[root@yunweixia.com ~]# rpm -qf /usr/lib64/libsnappy.so.1.1.4
snappy-1.1.0-1.el6.x86_64
[root@yunweixia.com ~]# yum reinstall snappy-1.1.0-1.el6.x86_64

在尝试重新安装软件包时,您可能会遇到类似以下错误:

Error: Multilib version problems found. This often means that the root
....
Protected multilib versions: binutils-2.20.51.0.2-5.43.el6.x86_64 != binutils-2.20.51.0.2-5.34.el6.x86_64

如果安装了同一软件包的多个版本,就会发生这种情况。删除其中一个以继续:

[root@yunweixia.com ~]# grep binutils installed-rpms 
binutils-2.20.51.0.2-5.34.el6.x86_64                        Sun 02 Mar 2014 03:59:41 PM GMT
binutils-2.20.51.0.2-5.43.el6.x86_64                        Thu 25 Feb 2016 09:26:21 PM GMT
[root@yunweixia.com ~]# rpm -e --nodeps binutils-2.20.51.0.2-5.34.el6.x86_64

原创文章,作者:运维侠,如若转载,请注明出处:https://www.yunweixia.com/solutions/linux-ldconfig-libsnappy-so-empty-file-error-solution.html

(0)
运维侠的头像运维侠共建用户
上一篇 2025年7月10日 18:11
下一篇 2025年7月12日 18:11

相关推荐

发表回复

登录后才能评论