![20.04 apt install upgrade 不起作用](https://linux22.com/image/1181248/20.04%20apt%20install%20upgrade%20%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
环境?
适用于 Linux 的 Windows 子系统。
Ubuntu 20.04
怎么了?
apt 升级不起作用。
1.apt upgrade 给出以下消息
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
alsa-ucm-conf apt apt-utils curl gh isc-dhcp-client isc-dhcp-common landscape-common libapt-pkg6.0 libcurl3-gnutls libcurl4 libnss-systemd libpam-systemd libpython3.9-minimal
libpython3.9-stdlib libssl1.1 libsystemd0 libudev1 linux-libc-dev nodejs open-vm-tools openssl python3-distupgrade python3.9 python3.9-minimal systemd systemd-sysv systemd-timesyncd
ubuntu-keyring ubuntu-release-upgrader-core udev update-notifier-common
32 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/49.1 MB of archives.
After this operation, 760 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up libc-bin (2.31-0ubuntu9.2) ...
Aborted (core dumped)
/sbin/ldconfig.real: Can't stat /usr/local/lib/x86_64-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib' given more than once
/usr/lib/x86_64-linux-gnu/libfakeroot:
libfakeroot-0.so -> libfakeroot-tcp.so
/usr/local/lib:
/lib/x86_64-linux-gnu:
Aborted (core dumped)
dpkg: error processing package libc-bin (--configure):
installed libc-bin package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
2.“remove”给出以下消息
$ sudo dpkg --remove --force-remove-reinstreq libc-bin
dpkg: error processing package libc-bin (--remove):
this is an essential package; it should not be removed
Errors were encountered while processing:
libc-bin
复制?
在此处输入链接描述 我参考了上面的链接,但问题仍然没有解决。