最近我尝试将计算机从 Debian Jessie 升级到 Buster(我不是直接升级,而是先升级到 Stretch,然后再升级到 Buster)。当我将系统升级到 Stretch 时,当我运行它时,sudo apt-get dist-upgrade
它会抛出此错误:
dpkg: warning: subprocess old post-removal script was killed by signal (Segmentation fault)
dpkg: trying script from the new package instead ...
dpkg: error processing archive /var/cache/apt/archives/libc6_2.24-11+deb9u4_armhf.deb (--unpack):
subprocess new post-removal script was killed by signal (Segmentation fault)
dpkg: error while cleaning up:
subprocess installed pre-installation script was killed by signal (Segmentation fault)
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.24-11+deb9u4_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我几乎到处寻找解决方案,但找不到任何解决方案。我尝试过运行sudo apt-get -f install
,但它显示相同的错误消息。此外,我无法安装任何其他软件包,如下所示:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
E: Unmet dependencies. Try using apt-get -f install
但这样做似乎并不能解决问题。另外,我无法删除 libc6,因为我在某个地方发现它是一个非常重要的库,即使是傻瓜也不会删除。所以我可以告诉我如何解决这个错误或升级系统的替代方法。如果您能告诉我此错误的原因,那么这对我会更有帮助。
这是我用于升级到 Stretch 的 resources.list 文件。
deb http://ftp.debian.org/debian/ stretch main
deb-src http://ftp.debian.org/debian/ stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb http://security.debian.org/ stretch/updates main
deb-src http://security.debian.org/ stretch/updates main
# stretch-updates, previously known as 'volatile'
deb http://ftp.debian.org/debian/ stretch-updates main
deb-src http://ftp.debian.org/debian/ stretch-updates main
它在 armhf 端口上的 ARMv7 CPU 上运行。
请原谅我的任何语法错误。