Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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'm using Ubuntu 10.04 and am looking to install Rubymine. It seems every tutorial recommends installing sun-java6-jre before downloading rubymine but aptitude and apt-get are returning nothing, claiming that sun-java6-jre no longer exists.

I'm completely unfamiliar with how to handle tar files and am unfamiliar with what to do once I start extracting files from the download.

share|improve this question
up vote 4 down vote accepted

The Sun Java 6 packages are available from the "partner" repositories, which you can enable by adding the following lines to /etc/apt/sources.list, and then running sudo apt-get update:

deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner

After adding the "partner" repositories, you will be able to install the sun-java6-jre package the usual way (Ubuntu Software Center, Synaptic, apt-get, whatever).

Alternatively, you can try installing openjdk-6-jre instead, which is entirely free software and is thus available from the main repositories:

apt-get install openjdk-6-jre

Information on Java support for Ubuntu is available at: https://help.ubuntu.com/community/Java

share|improve this answer
Okay. Seems like promising advice, but at the end of the apt-get update I get this error E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? – Bodhidarma Jun 29 '11 at 14:20
Nevermind. I had to close synaptic package manager. This worked beautifully thank you. – Bodhidarma Jun 29 '11 at 14:23

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.