您的位置:首页 > 运维架构 > Linux

linux(ubuntu)安装软件出现You might want to run 'apt-get -f install' to correct these解决

2017-03-01 10:02 916 查看
今日安装vim遇到错误

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'vim' is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-generic : Depends: linux-headers-generic (= 4.4.0.57.60) but 4.4.0.47.50 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


解决办法:
一般提示红色的软件有问题,卸载重装就会解决

sudo apt-get remove linux-generic
sudo apt-get install linux-geteric
遇到其他模块出现类似问题可以用以上的解决方法。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐