Super User is a question and answer site for computer enthusiasts and power users. 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

Just installed Ubuntu 9.0.4. When using apt-get, I found I could not get packages like OpenJDK, Ruby etc.

Do I need to add some additional repository?

share|improve this question
apt-cache search --names-only ruby – grawity Sep 24 '11 at 17:35
up vote 2 down vote accepted

Might be that the packages are not available under the name you expect them to be. Or you haven't enabled all repositories necessary. In any case, enable the "Universe" repository, as it contains most third-party tools.

  • OpenJDK is openjdk-7-jre, as mentioned on its website.

  • Ruby is in a few packages, but installing either ruby, ruby-full or ruby1.9.1 should do according to the Ruby website and the Ubuntu documentation. Note that you would be better off using RVM if you want to do serious work with Ruby and Gems. The packaged version of Ruby in Ubuntu might not always be the latest, and switching between versions is rather complicated without RVM.

  • For any other package, just look at the official website, if there is one. Ubuntu is so popular that it's hard not to find the appropriate package name. If you had to incldue additional non-Ubuntu repositories, you'd read about that in the installation documentation anyway.

share|improve this answer
The universe repository is enabled, hoevere I found the repository cannot be connected. My network is OK – user705414 Sep 25 '11 at 2:52
Ah it might be because you're using 9.04 and there aren't any official repositories for it anymore. Your release is EOL (End of Line); therefore you should maybe upgrade to a newer one, e.g. 10.04, which is a long-term supported release. – slhck Sep 25 '11 at 8:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .