I have installed Ubuntu 12.04 on my laptop, but when I try to install a package e.g. vim, aptitude, synaptic etc, it shows this error message:
E: package "vim" has no installation candidate
Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.
Then try installing vim again using