The vim text editor is developed from vi and has rich editing functions. The vim text editor is often used in Linux systems. Under normal circumstances, only the vi editing tool is installed in ubuntu by default, and the vim editing tool is not installed. Since vim has optimized vi, it can actively identify keywords in the Linux C language and mark them with different colors, making it highly readable. In the Ubuntu system, the vim text editor has a problem of not being installed. How to deal with this problem? The editor below will introduce to you how to solve the problem that Ubuntu cannot install the vim text editor.
Solution
apt-get install vim
Reading package list. . . Finish
Analyzing a package's dependency tree
Reading status information. . . Finish
Some packages cannot be installed. If you are using an unstable distribution, this may be
It's because the system cannot reach the state you requested. There may be some software you need in this version
The packages have not been created yet or they are still in the incoming directory.
The following information may help solve the problem:
The following packages have dependencies that cannot be met:
vim: Dependencies: vim-common (= 1:7.1-138+1ubuntu3.1) but 2:7.2.079-1ubuntu5 is about to be installed
E: Uninstallable package
The reason for this is mainly because the dependency version of vim-common is lower than the installed version. The solution to this problem is very simple.
Just apt-get remove vim-common. First uninstall the dependency package, then reinstall vim and it will be ok. It will automatically resolve the dependencies.
apt-get install vim
The above is the editor’s summary of the solution to the problem that Ubuntu cannot install the vim text editor. This method is only for the installation problem of the Ubuntu system. If it cannot be installed, you must first uninstall the dependent package and then install it.