ubuntu安装程序时遇到错误 you might want to run 'apt-get -f install' to correct these

来源:互联网 发布:陈克礼枪毙 知乎 编辑:程序博客网 时间:2024/06/16 14:45

问题描述:

ubuntu使用”apt-get install“安装程序时遇到错误提示

         you might want to run 'apt-get -f install' to correct these


解决方案:

使用如下命令修复安装包(不过在我遇到的问题中没有起作用) 

$ sudo apt-get --fix-broken install

或者使用命令

$ sudo dpkg --purge xxx

其中xxx为安装失败的程序,错误提示中会给出其名称,不过也有可能是错误提示中未给出的,但之前安装的确出错的程序。


0 0
原创粉丝点击