今日安装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
遇到其他模块出现类似问题可以用以上的解决方法。