升级到Ubuntu16.04后,我无法更新我的系统。在通常情况下:
apt-get upgrade
我知道这个错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libc-bin (2.23-0ubuntu3) ...
Segmentation fault (core dumped)
/sbin/ldconfig.real: Can't stat /lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Can't stat /usr/lib/i686-linux-gnu: No such file or directory
/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
Segmentation fault (core dumped)
dpkg: error processing package libc-bin (--configure):
subprocess installed post-installation script returned error exit status 139
Errors were encountered while processing:
libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
关于如何解决这个问题,有什么想法吗?apt-get clean
和apt-get -f install
什么也没做。
发布于 2018-05-12 08:23:49
这里的原因似乎是一个损坏的/var/cache/ldconfig/aux-cache
。
解决办法是(作为根):
rm /var/cache/ldconfig/aux-cache
然后执行
/sbin/ldconfig
发布于 2022-05-29 18:18:12
如果它在WSL中,请尝试(tks lifesaver.codes)
sudo mv /var/lib/dpkg/info/libc-bin.* /tmp/
sudo dpkg --remove --force-remove-reinstreq libc-bin
sudo dpkg --purge libc-bin
sudo apt install libc-bin
sudo mv /tmp/libc-bin.* /var/lib/dpkg/info/
发布于 2017-08-13 18:43:45
我以前在这里也有同样的错误,我执行了以下命令:
sudo apt-get --reinstall install libc-bin
它成功了,它重新安装了libc-bin
包并解决了这个问题。
希望它能帮上忙
https://askubuntu.com/questions/804997
复制相似问题