我从很早以前就喜欢使用 Ubuntu 作为我的主要操作系统,但最终遇到了一个我无法自行解决的问题。每次使用 APT 安装更新时,我都会收到有关截断库的消息。我想这就是为什么我无法运行直到最近还正常的软件的原因。
我正在运行新安装的桌面 18.04LTS 64 位。
$ ldconfig
/sbin/ldconfig.real: file /usr/lib/libgthread-2.0.so.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libXdamage.so.1 is truncated
/sbin/ldconfig.real: file /usr/lib/libgstapp-1.0.so.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libwrap.so.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libEGL.so.1 is truncated
/sbin/ldconfig.real: file /usr/lib/libasyncns.so.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libFLAC.so.8 is truncated
/sbin/ldconfig.real: file /usr/lib/libvorbisenc.so.2 is truncated
/sbin/ldconfig.real: file /usr/lib/libcrypto.so.1.0.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libpulsecommon-8.0.so is truncated
/sbin/ldconfig.real: file /usr/lib/libselinux.so.1 is truncated
/sbin/ldconfig.real: file /usr/lib/libXi.so.6 is truncated
/sbin/ldconfig.real: file /usr/lib/libunbound.so.2 is truncated
/sbin/ldconfig.real: file /usr/lib/libpng12.so.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libgcrypt.so.20 is truncated
/sbin/ldconfig.real: file /usr/lib/libxcb-glx.so.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libpcre.so.3 is truncated
/sbin/ldconfig.real: file /usr/lib/libffi.so.6 is truncated
/sbin/ldconfig.real: file /usr/lib/libgstreamer-1.0.so.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libXcomposite.so.1 is truncated
/sbin/ldconfig.real: file /usr/lib/libvorbis.so.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libsndfile.so.1 is truncated
/sbin/ldconfig.real: file /usr/lib/libXrender.so.1 is truncated
/sbin/ldconfig.real: file /usr/lib/libXau.so.6 is truncated
/sbin/ldconfig.real: file /usr/lib/liblzma.so.5 is truncated
/sbin/ldconfig.real: file /usr/lib/libXext.so.6 is truncated
/sbin/ldconfig.real: file /usr/lib/libcrypto.so.1.1 is truncated
/sbin/ldconfig.real: file /usr/lib/libX11-xcb.so.1 is truncated
/sbin/ldconfig.real: file /usr/lib/libogg.so.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libssl.so.1.1 is truncated
/sbin/ldconfig.real: file /usr/lib/libgstbase-1.0.so.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libdbus-1.so.3 is truncated
/sbin/ldconfig.real: file /usr/lib/libxcb-xfixes.so.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libgsttag-1.0.so.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libgstaudio-1.0.so.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libgstpbutils-1.0.so.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libgstvideo-1.0.so.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libXdmcp.so.6 is truncated
/sbin/ldconfig.real: file /usr/lib/liborc-0.4.so.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libssl.so.1.0.0 is truncated
/sbin/ldconfig.real: file /usr/lib/libjson-c.so.2 is truncated
我已经研究过这个问题,但找不到任何可以帮我的方法。如果有人能帮我摆脱困境,我将非常感激。
PS.我真的不想重新安装系统。
的输出sudo ldconfig -p
太长,无法在此处显示。前几行是;
1188 libs found in cache `/etc/ld.so.cache'
libzvbi.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libzvbi.so.0
libzvbi-chains.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libzvbi-chains.so.0
libzstd.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libzstd.so.1
libzmq.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libzmq.so.5
libzmq.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libzmq.so
libzeitgeist-2.0.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libzeitgeist-2.0.so.0
的输出cat /etc/ld.so.conf.d/*.conf
是;
/usr/lib/x86_64-linux-gnu/libfakeroot
# libc default configuration
/usr/local/lib
# Multiarch support
/usr/local/lib/x86_64-linux-gnu
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu
谢谢!
答案1
我在我的树莓派上全新安装 raspbian 时遇到了同样的错误。
对于我来说,重新安装所有损坏的库是有效的,例如:
apt install libffi6 --reinstall