我有一台 Ubuntu 20.04 服务器,在关闭时出现此错误。我不太清楚原因,也不知道该怎么做才能修复它。如能得到任何帮助,我将不胜感激。
/shutdown:加载共享库时出错:libsystemd-shared-245.so:无法打开共享对象文件:所以这样的文件或目录
这是 ldd /usr/bin/systemd-machine-id-setup 的输出,该文件肯定存在。
ldd /usr/bin/systemd-machine-id-setup
linux-vdso.so.1 (0x00007ffc9bdc3000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe27b937000)
libsystemd-shared-245.so => /lib/systemd/libsystemd-shared-245.so (0x00007fe27b6de000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe27bb77000)
libacl.so.1 => /lib/x86_64-linux-gnu/libacl.so.1 (0x00007fe27b6d3000)
libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007fe27b67c000)
libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007fe27b673000)
libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007fe27b638000)
libcryptsetup.so.12 => /lib/x86_64-linux-gnu/libcryptsetup.so.12 (0x00007fe27b5c6000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007fe27b4a8000)
libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x00007fe27b487000)
libip4tc.so.2 => /lib/x86_64-linux-gnu/libip4tc.so.2 (0x00007fe27b47d000)
libkmod.so.2 => /lib/x86_64-linux-gnu/libkmod.so.2 (0x00007fe27b462000)
liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007fe27b441000)
libmount.so.1 => /lib/x86_64-linux-gnu/libmount.so.1 (0x00007fe27b3fb000)
libpam.so.0 => /lib/x86_64-linux-gnu/libpam.so.0 (0x00007fe27b3e9000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fe27b3e4000)
libseccomp.so.2 => /lib/x86_64-linux-gnu/libseccomp.so.2 (0x00007fe27b3c2000)
libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007fe27b396000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fe27b36d000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe27b366000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fe27b35d000)
libdevmapper.so.1.02.1 => /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1 (0x00007fe27b2f2000)
libcrypto.so.1.1 => /lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007fe27b01c000)
libargon2.so.1 => /lib/x86_64-linux-gnu/libargon2.so.1 (0x00007fe27b012000)
libjson-c.so.4 => /lib/x86_64-linux-gnu/libjson-c.so.4 (0x00007fe27affe000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007fe27afdb000)
libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2 (0x00007fe27ae59000)
libaudit.so.1 => /lib/x86_64-linux-gnu/libaudit.so.1 (0x00007fe27ae2d000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe27ae28000)
libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007fe27ad96000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007fe27ad69000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe27ac85000)
libcap-ng.so.0 => /lib/x86_64-linux-gnu/libcap-ng.so.0 (0x00007fe27ac7d000)