apt-get 安装过程被强制中断后

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

关于xmsg

技术面前人人平等.同时技术也不分高低贵贱.正所谓学无大小,达者为尊.
此条目发表在Linux, Skill分类目录,贴了, , , 标签。将固定链接加入收藏夹。

apt-get 安装过程被强制中断后》有2条回应

  1. Site说:

    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!

评论已关闭。