我是 Linux(ubuntu)的新手,我不知道我做了什么,但是现在我有一些应用程序无法运行,例如对于 freecad,错误如下:
freecad: symbol lookup error: /lib/x86_64-linux-gnu/libQt5Qml.so.5: undefined symbol: _ZN15QNetworkRequestC1Ev, version Qt_5
我正在运行 Ubuntu 22.04
的输出ldd /lib/x86_64-linux-gnu/libQt5Qml.so.5
为:
libQt5Network.so.5 => /usr/local/lib/libQt5Network.so.5 (0x00007f8036c00000)
libQt5Core.so.5 => /lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f8036600000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8036200000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f80374a5000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8036fe0000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8035e00000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f803749e000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f8036fc4000)
libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007f8036faf000)
libicui18n.so.70 => /lib/x86_64-linux-gnu/libicui18n.so.70 (0x00007f8035a00000)
libicuuc.so.70 => /lib/x86_64-linux-gnu/libicuuc.so.70 (0x00007f8035805000)
libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007f8036b71000)
libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f8036531000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f80360c6000)
/lib64/ld-linux-x86-64.so.2 (0x00007f80375aa000)
libicudata.so.70 => /lib/x86_64-linux-gnu/libicudata.so.70 (0x00007f8033a00000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f80364b9000)
答案1
非常感谢@steeldriver 的帮助,基本上我已经浏览了应用程序/usr/local
,并找到了一个有该libQt5Network.so.5
文件的应用程序。我卸载了该应用程序,现在一切恢复正常。