Vim cannot be installed in Ubuntu

Source: Internet
Author: User
Tags aliyun
Vim cannot be installed in Ubuntu
In general, Ubuntu only installs the VI editing tool by default and does not have the VIM editing tool installed. Because Vim to VI optimization, can actively identify the Linux C language keywords, and different color tags, with a strong reading.          So how do you install the Vim tool in Ubuntu? Ubuntu, through the command "sudo apt-get install vim" to install, in general, can be installed normally. After the successful installation of Vim, in the shell Terminal Input command vim, you can see the relevant vim information, as shown in the following figure.
Figure Vim Details
Sometimes vim will install failed, at this time we can from the installation failure feedback information to find the reason, general vim installation failed, most are unable to obtain VIM resources, so this time need to update the source, involved in the file for/etc/apt/sources.list file. The specific steps are as follows:
1, backup sources.list file sudo cp sources.list Sources.list.back
2, replace the contents of the sources.list (I use the official source) according to their own needs to choose a different source, the corresponding source copy to the Sources.list file. Because of permissions issues, the most effective approach is to create a new sources.list file in the home directory, copy the source information to the file, and then copy the Sources.list file to the/etc/apt/directory via the CP command. Related source information is as follows: 1 official source Deb Http://archive.ubuntu.com/ubuntu/trusty main restricted universe multiverse
Deb Http://archive.ubuntu.com/ubuntu/trusty-security main restricted universe multiverse
Deb Http://archive.ubuntu.com/ubuntu/trusty-updates main restricted universe multiverse
Deb http://archive.ubuntu.com/ubuntu/trusty-proposed main restricted universe multiverse
Deb Http://archive.ubuntu.com/ubuntu/trusty-backports main restricted universe multiverse
DEB-SRC http://archive.ubuntu.com/ubuntu/trusty main restricted universe multiverse
DEB-SRC http://archive.ubuntu.com/ubuntu/trusty-security main restricted universe multiverse
DEB-SRC http://archive.ubuntu.com/ubuntu/trusty-updates main restricted universe multiverse
DEB-SRC http://archive.ubuntu.com/ubuntu/trusty-proposed main restricted universe multiverse
DEB-SRC http://archive.ubuntu.com/ubuntu/trusty-backports main restricted universe multiverse
2) 163 source Deb Http://mirrors.163.com/ubuntu/trusty main restricted universe multiverse
Deb Http://mirrors.163.com/ubuntu/trusty-security main restricted universe multiverse
Deb Http://mirrors.163.com/ubuntu/trusty-updates main restricted universe multiverse
Deb http://mirrors.163.com/ubuntu/trusty-proposed main restricted universe multiverse
Deb Http://mirrors.163.com/ubuntu/trusty-backports main restricted universe multiverse
DEB-SRC http://mirrors.163.com/ubuntu/trusty main restricted universe multiverse
DEB-SRC http://mirrors.163.com/ubuntu/trusty-security main restricted universe multiverse
DEB-SRC http://mirrors.163.com/ubuntu/trusty-updates main restricted universe multiverse
DEB-SRC http://mirrors.163.com/ubuntu/trusty-proposed main restricted universe multiverse
DEB-SRC http://mirrors.163.com/ubuntu/trusty-backports main restricted universe multiverse
3) Ali Deb Http://mirrors.aliyun.com/ubuntu/trusty main restricted universe multiverse
Deb Http://mirrors.aliyun.com/ubuntu/trusty-security main restricted universe multiverse
Deb Http://mirrors.aliyun.com/ubuntu/trusty-updates main restricted universe multiverse
Deb http://mirrors.aliyun.com/ubuntu/trusty-proposed main restricted universe multiverse
Deb Http://mirrors.aliyun.com/ubuntu/trusty-backports main restricted universe multiverse
DEB-SRC http://mirrors.aliyun.com/ubuntu/trusty main restricted universe multiverse
DEB-SRC http://mirrors.aliyun.com/ubuntu/trusty-security main restricted universe multiverse
DEB-SRC http://mirrors.aliyun.com/ubuntu/trusty-updates main restricted universe multiverse
DEB-SRC http://mirrors.aliyun.com/ubuntu/trusty-proposed main restricted universe multiverse
DEB-SRC http://mirrors.aliyun.com/ubuntu/trusty-backports main restricted universe multiverse
4 Sohu Source Deb Http://mirrors.sohu.com/ubuntu/trusty main restricted universe multiverse
Deb Http://mirrors.sohu.com/ubuntu/trusty-security main restricted universe multiverse
Deb Http://mirrors.sohu.com/ubuntu/trusty-updates main restricted universe multiverse
Deb http://mirrors.sohu.com/ubuntu/trusty-proposed main restricted universe multiverse
Deb Http://mirrors.sohu.com/ubuntu/trusty-backports main restricted universe multiverse
DEB-SRC http://mirrors.sohu.com/ubuntu/trusty main restricted universe multiverse
DEB-SRC http://mirrors.sohu.com/ubuntu/trusty-security main restricted universe multiverse
DEB-SRC http://mirrors.sohu.com/ubuntu/trusty-updates main restricted universe multiverse
DEB-SRC http://mirrors.sohu.com/ubuntu/trusty-proposed main restricted universe multiverse
DEB-SRC http://mirrors.sohu.com/ubuntu/trusty-backports main restricted universe multiverse
5) CentOS Source Deb Http://centos.bitcomm.cn/ubuntu trusty main restricted universe multiverse
Deb Http://centos.bitcomm.cn/ubuntu trusty-security main restricted universe multiverse
Deb Http://centos.bitcomm.cn/ubuntu trusty-updates main restricted universe multiverse
Deb Http://centos.bitcomm.cn/ubuntu trusty-backports main restricted universe multiverse
Deb Http://centos.bitcomm.cn/ubuntu trusty-proposed main restricted universe multiverse
DEB-SRC http://centos.bitcomm.cn/ubuntu trusty main restricted universe multiverse
DEB-SRC http://centos.bitcomm.cn/ubuntu trusty-security main restricted universe multiverse
DEB-SRC http://centos.bitcomm.cn/ubuntu trusty-updates main restricted universe multiverse
DEB-SRC http://centos.bitcomm.cn/ubuntu trusty-backports main restricted universe multiverse
DEB-SRC http://centos.bitcomm.cn/ubuntu trusty-proposed main restricted universe multiverse

3, update source 1) sudo apt-get update (update source information) 2) sudo apt-get upgrade (update source corresponding to the software library information)
4, install vim sudo apt-get install vim




Related Article

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.