The following packages have unmet dependencies:
vim-gtk : Depends: vim-common (= 2:7.4.1689-3ubuntu1.3) but 2:7.4.1689-3ubuntu1.2 is to be installed
Depends: vim-runtime (= 2:7.4.1689-3ubuntu1.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
使用命令sudo apt-get install vim-gtk安装vim时报了这个错误。。。
然后上网查资料,首先参考这个方法https://www.zybang.com/question/94de2ee5201d94d3f24bfb9a0825c5d8.html修复受损软件包,然后再安装试试
结果第一步就有问题
嗯,放弃这个方法,又参考了这个方法http://blog.sina.com.cn/s/blog_8d56d7440102v6wo.html
上面说出现错误的原因可能是安装vim所依赖的vim-common和系统自带的vim-common版本冲突