Mol*_*ius 8 package-management apt dpkg
升级到 Ubuntu 16.04 后,我无法更新我的系统。平常之后:
apt-get upgrade
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
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)
Run Code Online (Sandbox Code Playgroud)
有想法该怎么解决这个吗?apt-get clean并apt-get -f install没有采取任何行动。
小智 7
如果是在 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/
Run Code Online (Sandbox Code Playgroud)
小智 5
这里的原因似乎是一个损坏的/var/cache/ldconfig/aux-cache。
解决方案是(以 root 身份):
rm /var/cache/ldconfig/aux-cache
Run Code Online (Sandbox Code Playgroud)
然后执行
/sbin/ldconfig
Run Code Online (Sandbox Code Playgroud)
小智 3
我曾经在这里遇到同样的错误,我执行了以下命令:
sudo apt-get --reinstall install libc-bin
Run Code Online (Sandbox Code Playgroud)
它起作用了,它重新安装了libc-bin软件包并解决了问题。
希望能帮助到你
| 归档时间: |
|
| 查看次数: |
18331 次 |
| 最近记录: |