Chinaunix首页 | 论坛 | 博客
  • 博客访问: 43769
  • 博文数量: 24
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 215
  • 用 户 组: 普通用户
  • 注册时间: 2015-02-10 09:58
个人简介

专业提供linux应用软件开发、oracle数据库底层开发,服务器开发及相关技术支持服务

文章分类

全部博文(24)

文章存档

2015年(24)

我的朋友

分类: LINUX

2015-11-26 16:07:34

在虚拟机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@
........

阅读(728) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~