安装vim的问题
我尝试使用终端命令sudo apt-get install vim
安装VIM,但它没有安装,我得到了这条消息:
You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: flashplugin-installer : Breaks: flashplugin-downloader (< 11.1.102.55ubuntu3) but 11.0.1.152ubuntu1 is to be installed vim : Depends: vim-common (= 2:7.3.429-2ubuntu2.1) but 2:7.3.429-2ubuntu2 is to be installed Depends: vim-runtime (= 2:7.3.429-2ubuntu2.1) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution
我尝试使用apt-get -f
进行安装,但它没有用。
我该如何解决?
可能很晚才回答这个问题。 但尝试卸载vim-common。 我遇到了与错误消息类似的问题
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.
我首先通过卸载vim-common软件包解决了这个问题。
sudo apt-get remove vim-common
之后,我能够安装它没有任何问题。
我所看到的是flashplugin-installer
软件包有某种下载或安装问题,它不会让你安装vim。 我建议删除flashplugin包,然后刷新存储库缓存然后下载vim。 之后只需再次安装闪存,虽然我建议通过限制附加function来实现。 类似于以下内容:
sudo apt-get remove flashplugin-installer sudo apt-get update sudo apt-get install vim sudo apt-get install ubuntu-restricted-extras
另一方面,我实际上仍然建议在apt-get上使用aptitude。 甚至是突触以简单的方式解决包之间的多个冲突问题。
我想结合你的两个答案。 逐个输入:
sudo apt-get install ubuntu-restricted-extras sudo apt-get update sudo apt-get remove vim-common sudo apt-get install vim
我意识到这是4年多前发布的。
所以在2017年6月,我安装了lubuntu 12.04
我遇到了所有这些问题。
我尝试了所有可以找到的答案中列出的所有内容,但无法安装vim或vim-nox。
所以当我输入时你可以想象我的惊喜
vi
它想出了vim的彩色屏幕。
我很尴尬,我花了一个小时试图强制安装只发现它已经存在。
这就解释了为什么vim-common存在版本问题。