The program 'vim 'can be found in the following packages:
* Vim
* Vim-gnome
* Vim-tiny
* Vim-GTK
* Vim-NOx
Try: sudo apt-Get install <Selected Package>
The above information is estimated to prompt that Vim has not been installed and the vim installation package has been installed. In the listed packages, you can use the sudo apt-Get install Vim command to install it,
Then, I enter sudo apt-Get install vim and the following prompt appears:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package Vim is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
Is only available from another source
E: Package Vim has no installation candidate
Google, it seems that some packages are missing and the software source needs to be updated. The solution is as follows:
Modify the software source list in/etc/APT/sources. List.
Steps:
First, for security, back up the file to be modified. Command: CP-I/etc/APT/sources. LIST/etc/APT/sources. list_backup
Then, open sources. List and check that they are opened in the nano editor. I copied them. Command: sudo nano/etc/APT/sources. List
After opening the page, you can view the instructions on this page according to your own situation.
Http://ubuntuguide.org/wiki/Ubuntu:Lucid#Add_Extra_Repositories
Modify and press Ctrl + X to exit.
Then, update it. Command: sudo apt-Get update
After the update, run sudo apt-Get install Vim to automatically download the missing package. Then Vim can be installed smoothly.