近日在ubuntu-16.04-desktop下安装vim时遇到如下问题:

garfield@ubuntu:~$ sudapt-get install vimst
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) but 2:7.3.429-2ubuntu2.1 is to be installed
E: Unable to correct problems, you have held broken packages.

解决方法:

近日在ubuntu-12.04.1下安装vim时遇到如下问题:

garfield@ubuntu:~$ sudapt-get install vimst
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) but 2:7.3.429-2ubuntu2.1 is to be installed
E: Unable to correct problems, you have held broken packages.

解决方法:

a.先执行$ sudo apt-get remove vim-common 卸载vim-common

b. 再进行安装vim,执行$ sudo apt-get install vim

遇到其他软件安装问题 也可以尝试这个解决方法

ubuntu下安装vim失败相关推荐

  1. ubuntu 下安装 VIM 依赖vim-common错误

    ubuntu 下安装 VIM 依赖vim-common错误 sudo apt-get remove vim-common   先把上面的错误依赖删除 sudo apt-get install vim  ...

  2. Ubuntu下安装Vim教程

    ubuntu下 vim工具的安装与使用@TOC vim工具介绍 vim官网为(http://www.vim.org),Vim是从vi发展出来的一个文本编辑器.代码补完.编译及错误跳转等方便编程的功能特 ...

  3. Ubuntu下安装vim以及常用命令

    众所周知,Linux与Win之间的区别是Linux需要大量的命令行操作,而有些配置文件也是在命令行中输入的. 这些操作就需要编辑器的帮助了. 我接触Ubuntu的时间不长,碰到过三个编辑器 gedit ...

  4. 在Ubuntu下安装vim

    安装步骤: 打开控制台,也可用快捷键 CTRL+ALT+T打开,在控制台执行以下命令 更新安装包,执行命令: sudo apt update 搜索vim安装包,执行命令: sudo apt searc ...

  5. vm怎么装vim_虚拟机中Ubuntu下安装vim及配置文件和插件之菜鸟初体验

    在命令行下,输入命令如图: 必须加上sudo,否则你是没有权限编辑vimrc的. 2. 下图为我的VIM配置.配置很多,所以我也只安装了些我觉得有用的. 输入他们,可以让您的VIM变得更漂亮.舒服. ...

  6. ubuntu下安装vmtools失败,提示The path is not a valid path to the 3.5.0-17-generic kernel headers的解决办法...

    今天安装完ubuntu12.10后,安装vmtools时提示以下错误信息: The path "" is not a valid path to the 3.5.0-17-gene ...

  7. ubuntu下安装并配置VIM编辑器

    Ubuntu 16.04 下安装Vim 默认已经安装了VIM-tiny linuxidc@linuxidc:~$ locate vi | grep 'vi$' |xargs ls -al lrwxrw ...

  8. Ubuntu MySQL 亚马逊_亚马逊EC2 ubuntu下安装mysql远程无法连接问题o

    无法远程的原因有很多,我今天遇到的问题是通过navicat无法远程连接我在EC2上创建的实例. 1.通过命令" netstat -an|grep 3306 "检查一下3306端口对 ...

  9. Ubuntu下安装Apache+PHP+Mysql

    Ubuntu下安装 apache+php+mysql文本服务器! ------------------------------------------------------------------- ...

最新文章

  1. java 跳表_跳表 skiplist
  2. 让你见识一下什么叫最完整、最系统的前端学习路线
  3. Linux node使用npm成功安装命令后,执行时却报找不到命令的问题
  4. 韩语识别_韩语文字识别_韩语图片识别 - 云+社区 - 腾讯云
  5. mysql做一个邮箱_php+mysql 做一个注册页面 注册成功后给用户邮箱发一份确认邮件,发送邮件的代码怎么加到下面的代码里了...
  6. PHP的CI框架接入redis
  7. Wireshark中lua脚本介绍
  8. 用Photoshop制作一张“油画”
  9. SAP中新增移动类型科目确定配置处理实例
  10. 【物理应用】Matlab实现两端固支梁热力耦合的有限元分析
  11. Android如何做出带有复杂水印的图片
  12. cad文件默认打开程序改为acad程序
  13. Nero Platinum Suite 2023 白金套装DVD刻录软件 -您强大的无忧包
  14. 都2021年了,为什么想回看5分钟前写的代码就这么难
  15. [Android开发] 实现点击缩略图查看大图的功能
  16. 你对我热情,我就喜欢你
  17. win10鼎信诺为什么安装不了_电脑无法安装win10系统原因和解决方法
  18. 基于Python完成的配音软件之适用于有声主播
  19. 1533 Moving Pegs[暴力+打表]
  20. 智安网络|数据安全问题频发,首推云墙·网站综合防御系统

热门文章

  1. 小程序菜单栏吸顶效果
  2. java集合框架栈_自己实现集合框架(九):栈接口
  3. 预装鸿蒙系统的手机,首款预装鸿蒙系统的手机入网,麒麟9000加持,型号亮了...
  4. ftok file php,Linux和PHP中的ftok函数返回值不一致问题跟踪
  5. 清空list_3. Python3轻食丨一个故事看懂List所有用法:1年级1班的班级生活
  6. 面试题整理8 字符串的排列
  7. Opencv Kmeans聚类算法
  8. 【Tools】cmake 常用变量和常用环境变量查表手册---整理
  9. git rebase -i 修改提交
  10. 从零开始学习jQuery (八) 插播:jQuery实施方案