Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I was trying to install vim and g++ but I couldn't. Presently I'm using Ubuntu 10.10. I tried all that I went through the net, but no use. This how it appears every time I do.

root@ubuntu:~#  apt-get install vim vim-scripts vim-doc vim-latexsuite vim-gui-common vim gnome
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
E: Unable to locate package vim-scripts
E: Unable to locate package vim-doc
E: Unable to locate package vim-latexsuite
E: Unable to locate package vim-gui-common
E: Package 'vim' has no installation candidate
E: Unable to locate package gnome

How do I fix this?

share|improve this question
1  
what happens when you do apt-cache search vim? –  Journeyman Geek Jan 6 '13 at 12:09
    
Have you tried doing a apt-get update prior to installing? Have you enabled the repositories containing the packages? Easy way to check enabled repositories is to peek inside /etc/apt/sources.list. –  Herman Torjussen Jan 6 '13 at 15:06

1 Answer 1

You are trying to install a package named 'gnome', that does not seem like a fully valid package name:

E: Unable to locate package gnome

Remove 'gnome' from your command and try again:

sudo apt-get update && sudo apt-get install vim vim-scripts vim-doc vim-latexsuite vim-gui-common
share|improve this answer

Your Answer

 
discard

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.