无法打开基于 qt 的应用程序,例如 qbittorrent、nomacs 等。出现错误:
nomacs:加载共享库时出错:libicui18n.so.56:无法打开共享对象文件:没有此文件或目录
qbittorrent:加载共享库时出错:libicui18n.so.56:无法打开共享对象文件:没有此文件或目录
已解决::sudo apt install --reinstall libqt5widgets5 libqt5gui5 libqt5dbus5 libqt5network5 libqt5core5a
这解决了这个问题
qbittorrent 的 ldd 输出:
linux-vdso.so.1 (0x00007ffe988ee000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f8af08ad000)
libcrypto.so.1.1 => /lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f8af05d7000)
libtorrent-rasterbar.so.10 => /lib/x86_64-linux-gnu/libtorrent-rasterbar.so.10 (0x00007f8af0178000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8af0155000)
libQt5Widgets.so.5 => /lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f8aefaba000)
libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f8aef4cf000)
libQt5DBus.so.5 => /lib/x86_64-linux-gnu/libQt5DBus.so.5 (0x00007f8aef431000)
libQt5Network.so.5 => /lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f8aef270000)
libQt5Xml.so.5 => /lib/x86_64-linux-gnu/libQt5Xml.so.5 (0x00007f8aef22e000)
libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f8aeea38000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8aee856000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8aee707000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8aee6ea000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8aee4f8000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8af123a000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8aee4f2000)
libssl.so.1.1 => /lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f8aee45f000)
libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f8aee3d7000)
libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f8aee39f000)
libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f8aee298000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f8aee247000)
libicui18n.so.56 => not found
libicuuc.so.56 => not found
libicudata.so.56 => not found
libgthread-2.0.so.0 => /lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f8aee240000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f8aee117000)
libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f8aee05f000)
libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f8aee02b000)
libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f8aedf6c000)
libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f8aedf3d000)
libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f8aede8e000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f8aede1b000)
libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f8aedcde000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f8aedcd3000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f8aedca8000)
liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f8aedc87000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f8aedb69000)
libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f8aedb3f000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f8aedb1c000)
libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f8aedb14000)
libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f8aedb0c000)
libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f8aedaf2000)
ldd /usr/bin/nomacs 的输出
ldd /usr/bin/nomacs
linux-vdso.so.1 (0x00007ffd41fa6000)
libnomacsCore.so.3 => /usr/lib/nomacs/libnomacsCore.so.3 (0x00007fd5d97ea000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd5d95f4000)
libQt5Widgets.so.5 => /lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007fd5d8f59000)
libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007fd5d896e000)
libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007fd5d8178000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd5d815d000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd5d7f69000)
libexiv2.so.27 => /lib/x86_64-linux-gnu/libexiv2.so.27 (0x00007fd5d7c5e000)
libraw.so.19 => /lib/x86_64-linux-gnu/libraw.so.19 (0x00007fd5d7b7e000)
libopencv_imgproc.so.4.2 => /lib/x86_64-linux-gnu/libopencv_imgproc.so.4.2 (0x00007fd5d75d7000)
libtiff.so.5 => /lib/x86_64-linux-gnu/libtiff.so.5 (0x00007fd5d7556000)
libquazip5.so.1 => /lib/x86_64-linux-gnu/libquazip5.so.1 (0x00007fd5d7523000)
libQt5Network.so.5 => /lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007fd5d7360000)
libQt5PrintSupport.so.5 => /lib/x86_64-linux-gnu/libQt5PrintSupport.so.5 (0x00007fd5d72e7000)
libQt5Concurrent.so.5 => /lib/x86_64-linux-gnu/libQt5Concurrent.so.5 (0x00007fd5d72de000)
libQt5Svg.so.5 => /lib/x86_64-linux-gnu/libQt5Svg.so.5 (0x00007fd5d7282000)
libopencv_core.so.4.2 => /lib/x86_64-linux-gnu/libopencv_core.so.4.2 (0x00007fd5d6ed2000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd5d6d83000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd5d6d5e000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd5d9bd4000)
libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007fd5d6cd6000)
libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007fd5d6c9e000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fd5d6c82000)
libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007fd5d6b7d000)
libicui18n.so.56 => not found
libicuuc.so.56 => not found
libicudata.so.56 => not found
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd5d6b75000)
libgthread-2.0.so.0 => /lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007fd5d6b70000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fd5d6a47000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fd5d6a17000)
libjpeg.so.8 => /lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007fd5d6992000)
liblcms2.so.2 => /lib/x86_64-linux-gnu/liblcms2.so.2 (0x00007fd5d6937000)
libgomp.so.1 => /lib/x86_64-linux-gnu/libgomp.so.1 (0x00007fd5d68f5000)
libwebp.so.6 => /lib/x86_64-linux-gnu/libwebp.so.6 (0x00007fd5d688b000)
libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007fd5d67e0000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fd5d67b7000)
libjbig.so.0 => /lib/x86_64-linux-gnu/libjbig.so.0 (0x00007fd5d65a9000)
libtbb.so.2 => /lib/x86_64-linux-gnu/libtbb.so.2 (0x00007fd5d6563000)
libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007fd5d64ab000)
libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007fd5d6475000)
libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007fd5d63b6000)
libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007fd5d6389000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fd5d6316000)
libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007fd5d61d9000)
libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fd5d61ad000)
libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007fd5d61a7000)
libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fd5d619f000)
libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007fd5d6185000)
dpkg -S $(realpath $(grep -E "/lib.*" --only-matching /tmp/not-from-apt)) 2> /tmp/not-from-apt-final
qbittorrent的输出
libssl1.1:amd64: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
libtorrent-rasterbar10: /usr/lib/x86_64-linux-gnu/libtorrent-rasterbar.so.10.0.0
libqt5widgets5:amd64: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.12.8
libqt5gui5:amd64: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.12.8
libqt5dbus5:amd64: /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5.12.8
libqt5network5:amd64: /usr/lib/x86_64-linux-gnu/libQt5Network.so.5.12.8
libqt5xml5:amd64: /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5.12.8
libqt5core5a:amd64: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.8
libstdc++6:amd64: /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28
libssl1.1:amd64: /usr/lib/x86_64-linux-gnu/libssl.so.1.1
libgl1:amd64: /usr/lib/x86_64-linux-gnu/libGL.so.1.7.0
libpng16-16:amd64: /usr/lib/x86_64-linux-gnu/libpng16.so.16.37.0
libharfbuzz0b:amd64: /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.20600.4
libglib2.0-0:amd64: /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0.6400.6
libglib2.0-0:amd64: /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6
libglvnd0:amd64: /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0.0.0
libglx0:amd64: /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0
libfreetype6:amd64: /usr/lib/x86_64-linux-gnu/libfreetype.so.6.17.1
libgraphite2-3:amd64: /usr/lib/x86_64-linux-gnu/libgraphite2.so.3.2.1
libx11-6:amd64: /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
liblz4-1:amd64: /usr/lib/x86_64-linux-gnu/liblz4.so.1.9.2
libgcrypt20:amd64: /usr/lib/x86_64-linux-gnu/libgcrypt.so.20.2.5
libxcb1:amd64: /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
libxau6:amd64: /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
libxdmcp6:amd64: /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
libbsd0:amd64: /usr/lib/x86_64-linux-gnu/libbsd.so.0.10.0
答案1
重新安装 libqt5 软件包解决了这个问题
sudo apt install --reinstall libqt5widgets5 libqt5gui5 libqt5dbus5 libqt5network5 libqt5core5a
答案2
在terminal
...
sudo apt update
sudo apt install libicu56
或者sudo apt reinstall libicu56
sudo apt reinstall nomacs qbittorrent
reboot
重试 nomacs 和 qbittorrent。
笔记:您可能需要重新安装 20.04 来解决此问题。
笔记:不要玩弄 /usr 和 /lib 中的系统文件