安装vim的问题

Raj*_*jan 4 vim package-management apt software-installation

我尝试使用终端命令安装 VIMsudo apt-get install 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
Run Code Online (Sandbox Code Playgroud)

我尝试使用apt-get -f安装,但它不起作用。

我该如何解决?

roo*_*unk 16

可能回答这个太晚了。但也尝试卸载 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.
Run Code Online (Sandbox Code Playgroud)

我可以通过先卸载 vim-common 包来解决它。

sudo apt-get remove vim-common
Run Code Online (Sandbox Code Playgroud)

之后,我可以毫无问题地安装它。


Lui*_*ado 8

我看到的是该flashplugin-installer软件包存在某种下载或安装问题,并且不允许您安装 vim。我的建议是删除 flashplugin 包,然后刷新存储库缓存,然后下载 vim。之后只需再次安装 flash,尽管我建议通过受限制的附加功能进行安装。类似于以下内容:

sudo apt-get remove flashplugin-installer
sudo apt-get update
sudo apt-get install vim
sudo apt-get install ubuntu-restricted-extras
Run Code Online (Sandbox Code Playgroud)

另一方面,我实际上仍然建议使用 aptitude 而不是 apt-get。甚至突触以简单的方式解决包之间的多个冲突问题。