继续出现此错误:
/usr/bin/gdbus: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: g_date_copy
看着:
root@server-sl:~# ldd /usr/bin/gdbus
linux-vdso.so.1 (0x00007ffefddfa000)
libgio-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007f77eaa5e000)
libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f77eaa0a000)
libgmodule-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007f77eaa04000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f77ea6f5000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f77ea538000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f77ea4c4000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f77ea4a1000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f77ea298000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f77ea07a000)
libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f77e9e52000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f77e9e39000)
libmount.so.1 => /lib/x86_64-linux-gnu/libmount.so.1 (0x00007f77e9ddd000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f77e9dd6000)
/lib64/ld-linux-x86-64.so.2 (0x00007f77eac33000)
libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f77e9d84000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f77e9d7a000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f77e9d71000)
并检查这一点:
root@server-sl:~# ls -l /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
lrwxrwxrwx 1 root root 26 set 22 05:53 /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 -> libgobject-2.0.so.0.5800.1
我找不到问题所在。我使用的是 DebianLinux server-sl 4.18.0-2-amd64 #1 SMP Debian 4.18.10-2 (2018-11-02) x86_64 GNU/Linux
答案1
从 16.04 升级到 18.04 后遇到类似问题
还遇到了 ssh 登录速度慢、dpkg 和 apt 工作速度慢等问题(在“处理触发器”期间进程总是卡住很长时间)
解决方案太简单了:
ls -il /lib/x86_64-linux-gnu/libglib-2.0.so*
ls -il /usr/lib/x86_64-linux-gnu/libglib-2.0.so*
我遇到了一个情况
/lib/x86_64-linux-gnu/libglib-2.0.so.0 -> libglib-2.0.so.0.3200.4
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4
指向 libglib-2.0.so.0.3200.4 而
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 -> libglib-2.0.so.0.5600.4
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.5600.4
指向较新的版本。
所以解决方案是删除 /lib/ 文件夹中的文件
rm /lib/x86_64-linux-gnu/libglib-2.0.so.0
rm /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4