Errors when attempting to install Vim on Ubuntu 12.04

My computer is running Ubuntu 12.04. I tried to install a few programs (including Vim) through the Ubuntu Software Center, but it showed that there was no internet connection even though I was connected to internet. Then I found out that vi Editor will be required to allow me to save my password and proxy in the system configuration.

Apart from that, I also tried to install the programs through the terminal, but the same problem occurred -- it says this is not a candidate for install.

I tried to install Vim using command sudo apt-get install Vim-nox, but it responded that the package was broken and showed many failures.


Solution 1:

you carefully type command first.

sudo apt-get install vim-gnome

link:Installation Vim on Ubuntu

I hope to solve your issue.