apt-get upgrade中止如何恢复?

时间:2015-11-27 18:33:22

标签: debian apt

我害怕我做了一个booboo。

执行apt-get upgrade时,我意外退出,从而中途升级。现在我无法重新启动升级。

apt-get upgrade说没有要升级的软件包......

apt-get update会出错:

W: Failed to fetch http://security.debian.org/dists/wheezy/updates/main/binary-armel/Packages  Hash Sum mismatch

W: Failed to fetch http://security.debian.org/dists/wheezy/updates/contrib/binary-armel/Packages  Hash Sum mismatch

W: Failed to fetch http://security.debian.org/dists/wheezy/updates/non-free/binary-armel/Packages  Hash Sum mismatch

[several more of these]

我尝试了这些没有结果:

  • apt-get install -f
  • dpkg --configure -a
  • rm -vf /var/lib/apt/lists/*; rm -vf /var/lib/apt/lists/partial/*; apt-get update

1 个答案:

答案 0 :(得分:0)

使用purge和autoremove完全删除已安装的软件包,然后再次尝试更新/升级。