在虚拟机Ubuntu12.04系统下安装vim,总是失败,错误如下:
alan@alan-virtual-machine:~/SDK/Daemon$ sudo apt-get install vim
---->执行命令
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
vim : Depends: vim-common (= 2:7.3.429-2ubuntu2.1) but 2:7.3.547-4ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
大致意思:已经有了个vim版本--vim-common,需要先卸载该vim
alan@alan-virtual-machine:~/SDK/Daemon$ sudo apt-get remove vim-common
卸载成功后,再执行:
alan@alan-virtual-machine:~/SDK/Daemon$ sudo apt-get install vim
执行vim --version,显示如下则成功
alan@alan-virtual-machine:~/SDK/Daemon$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 4 2012 04:25:35)
Included patches: 1-429
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
........
阅读(1502) | 评论(0) | 转发(0) |