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 installing Spark IM Client for Ubuntu.

The tar.gz doesn't appear to be functional at ALL, (considering the /bin directory is completely empty and lacks important things like unpack200) but I have a .deb for 2.6.0. It's not the latest version, but it'll do.

The issue is, I can't satisfy its dependency for sun-java6-jre. I'm fairly certain using OpenJDK will work, I just need the deb to go through.

How can I fix this? Can I install a dummy sun-java6-jre package somehow, then use OpenJDK? Or is there a way to ACTUALLY install sun-java6-jre even after all this craziness of Ubuntu removing Sun/Oracle Java from their repositories?

share|improve this question

The java wiki page does tell you how to install sun-java6-jre manually if you choose to do so.


$ wget
$ chmod u+x jre-6u31-linux-i586.bin
$ ./jre-6u31-linux-i586.bin
$ sudo mv jre1.6.0_31 /usr/lib/jvm/
$ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_31/bin/java" 1
$ sudo update-alternatives --install "/usr/lib/mozilla/plugins/" "" "/usr/lib/jvm/jre1.6.0_31/lib/i386/" 1


$ sudo update-alternatives --config java
$ sudo update-alternatives --config
share|improve this answer

I installed Spark 2.6.3 on my Ubuntu 13.10 64 bit system. I installed Oracle Java 1.7 using the instructions for Java installation (Step 2) found here.

To get Spark to run, because it comes with a 32 bit JRE, I had to modify the ./Spark script to get it to find the Oracle JRE, and also so it would accept version 1.7.

Changes to line 4 (was commented out, added location of oracle JRE):


Changes to line 95 (change "6" to "7"):

if [ "$ver_minor" -gt "7" ]; then

These changes should be made properly in the Spark installation script so Spark supports the newer computers.

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.