如何修复 apt-get?我无法安装或更新任何内容

如何修复 apt-get?我无法安装或更新任何内容

sudo apt-get update

apt-get: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by apt-get)
apt-get: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by apt-get)
apt-get: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib/i386-linux-gnu/libapt-private.so.0.0)
apt-get: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/i386-linux-gnu/libapt-private.so.0.0)
apt-get: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/i386-linux-gnu/libapt-private.so.0.0)
apt-get: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib/i386-linux-gnu/libapt-pkg.so.5.0)
apt-get: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/i386-linux-gnu/libapt-pkg.so.5.0)
apt-get: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/i386-linux-gnu/libapt-pkg.so.5.0)

这不是全新安装。我还尝试通过重新安装 libc6-udeb 包来修复它。

sudo dpkg -i libc6-udeb_2.24-12_i386.udeb

dpkg: warning: files list file for package 'libstdc++6-4.7-dev:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libc6-dbg:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libstdc++-6-dev:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libc6:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libstdc++-4.8-dev:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libc6-dev:i386' missing; assuming package has no files currently installed
(Reading database ... 245802 files and directories currently installed.)
Preparing to unpack libc6-udeb_2.24-12_i386.udeb ...
Unpacking libc6-udeb (2.24-12) ...
dpkg: error while cleaning up:
 subprocess rm command for cleanup was killed by signal (Segmentation fault)
Setting up libc6-udeb (2.24-12) ...   

运行sudo dpkg --configure -a结果为:

Segmentation fault

有什么建议么?

答案1

有时事情会变得非常糟糕,唯一的解决方法就是重新开始。谢谢大家,但在尝试了所有其他方法却没有成功之后,我知道我必须重新安装一个新的干净的系统,这就是我所做的。现在一切都很好。

相关内容