What if Ubuntu can't install vim?

  

The vim text editor was developed from vi and has extensive editing features. The vim text editor is often used on Linux systems. In the Ubuntu system, there is no installation problem in the vim text editor. How to deal with this problem? The following small series will tell you how to solve the problem that Ubuntu can't install vim text editor.

Solution

apt-get install vim

Reading package lists. . . Done

Dependency tree for parsing package

Reading status information. . . Finish

There are some packages that cannot be installed. If you are using an unstable distribution, this may be

because the system is unable to reach the state you requested. There may be some software you need in this release.

Packages have not been created or they are still in the incoming directory.

The following information may be helpful in resolving the problem:

The following packages have unmet dependencies:

vim: dependencies: vim-common (= 1:7.1-138+1ubuntu3.1) But 2:7.2.079-1ubuntu5 is about to be installed

E: Unable to install package

The reason for this is mainly because vim The -common dependency version is lower than the version already installed, and the solution to this problem is simple.

apt-get remove vim-common, first uninstall the dependency package, then re-install vim ok, he will automatically resolve the dependency.

apt-get install vim

The above is the introduction of Ubuntu can not install the vim text editor solution, this method is only for Ubuntu system installation problems, encountered can not be installed to uninstall first Dependency package and then install.

Copyright © Windows knowledge All Rights Reserved