Install Vim software source

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.