Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am unable to install Vim and need help. I've tried the following:

root@cbitlab1:/home/cbitlib1# sudo -s
root@cbitlab1:/home/cbitlib1# apt-get install vim
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

How do I fix this - I'm on 14.04.

share|improve this question
  1. sudo apt-get update to make sure you have the latest sources.list
  2. sudo apt-get install vim
share|improve this answer

Vim is pre-installed in Linux based OS. For Ubuntu it minimal version is pre-installed.


You can create alias to run it as vim

alias vim=vim.tiny

To make that alias permanent,

gedit ~/.bashrc

Add "alias vim=vim.tiny" line in .bashrc file

For more on how to make alias permanent How do I create a permanent Bash alias?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.