apt-get 操作被强行中断后,会出现无法进行新的安装或删除的情况只是提示你使用apt-get -f install来解决问题,但实际上,你按它的提示操作却解决不了任何问题。
这时你需要这样做:
sudo dpkg –configure -a
sudo apt-get update
sudo apt-get install -f
sudo apt-get autoremove
sudo apt-get upgrade
如果还有一些有问题的包可以用这个命令干掉它他:
dpkg -r packagename
Force yes. This is a dangerous option that will cause apt-get to continue without prompting if it is doing something potentially harmful. It should not be used except in very special situations. Using –force-yes can potentially destroy your system!