错误:Ubuntu /sbin/ldconfig.real:不是没有 GUI 的虚拟机上的符号链接

错误:Ubuntu /sbin/ldconfig.real:不是没有 GUI 的虚拟机上的符号链接
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.6 LTS
Release:        16.04
Codename:       xenial

每当我在 Ubuntu 16 LTS 上运行 apt-get upgrade 时,都会出现这些错误:

/sbin/ldconfig.real: /usr/lib/libext2fs.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libply.so.4 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libnl-3.so.200 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libply-splash-core.so.4 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libusb-0.1.so.4 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libseccomp.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libgcrypt.so.20 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libss.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libpopt.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libkmod.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libsystemd.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libpci.so.3 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libudev.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libpcre.so.3 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/ld-linux-x86-64.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libhistory.so.5 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libcryptsetup.so.4 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libmnl.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libfdisk.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libdbus-1.so.3 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libtinfo.so.5 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libpamc.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/liblzma.so.5 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libcgmanager.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libply-boot-client.so.4 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libpng12.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libjson-c.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libisc-export.so.160 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libtirpc.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libreadline.so.6 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libxtables.so.11 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libparted.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libfuse.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libnih-dbus.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libsmartcols.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libe2p.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libntfs-3g.so.861 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libcom_err.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libdns-export.so.162 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libz.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libncursesw.so.5 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libip4tc.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libiptc.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libmount.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libacl.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libattr.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libuuid.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libpcsclite.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libexpat.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/liblzo2.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libusb-1.0.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libcap.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libnl-genl-3.so.200 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libglib-2.0.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libprocps.so.4 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libhistory.so.6 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libply-splash-graphics.so.4 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libwrap.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libncurses.so.5 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libulockmgr.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libip6tc.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libreadline.so.5 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libpam.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libnewt.so.0.52 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libapparmor.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libblkid.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libslang.so.2 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libnih.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libbsd.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libaudit.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libkeyutils.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libpam_misc.so.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libbz2.so.1.0 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/libgpg-error.so.0 is not a symbolic link

这些情况可能由什么原因造成以及如何解决?

我使用 do-release-upgrade 升级到 Ubuntu 18,但在运行 ldconfig 时仍然出现完全相同的错误。这是在没有图形驱动程序的仅有命令行的虚拟机上执行的 - 运行级别 3。

ldconfig -p 和 grep -r deb /etc/apt/source* 的输出如下: https://gist.github.com/omegagx/551a62dfbc00c7e41a93d7eb1591b597

相关内容