- HowTo, Linux, Ubuntu

Installing Oracle/Sun Java6 jdk on Ubuntu 12.04

As ubuntu droped the oracle jdk support from 12.04 fully, you may face some performance and stability problem with the open jdk. Here is the simple 3 line tricks to get the oracle/sun jdk in 12.04

sudo add-apt-repository ppa:flexiondotorg/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin

You may see few key warning. Just ignore those, it’s the PPA’s small issue. but the jdk will work great.

Please let us know if you face any problem


You may also like to read:



Views :11138

About lavluda

A linux guy, love to play with linux and unix thing.
Read All Posts By lavluda

7 thoughts on “Installing Oracle/Sun Java6 jdk on Ubuntu 12.04

  1. I get this message..

    The following packages have unmet dependencies:
    sun-java6-jdk:i386 : Depends: sun-java6-bin:i386 (>= 6.30-2~precise1) but it is not going to be installed
    sun-java6-plugin:i386 : Depends: sun-java6-bin:i386 (>= 6.30-2~precise1) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

  2. I also get the message :

    The following packages have unmet dependencies:
    sun-java6-jdk:i386 : Depends: sun-java6-bin:i386 (>= 6.30-2~precise1) but it is not going to be installed
    sun-java6-plugin:i386 : Depends: sun-java6-bin:i386 (>= 6.30-2~precise1) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

    1. These errors are being generated because there is not a 64bit copy of the sun-java6-jdk availible from the repository.

      As an alternative – you can install the version of java from the Oneiric repository and then install the most recent Java binaries from Sun.

  3. I get this message …

    You are about to add the following PPA to your system:
    tag:launchpad.net:2008:redacted
    More info: https://launchpad.net/~flexiondotorg/+archive/java
    Press [ENTER] to continue or ctrl-c to cancel adding it

    Exception in thread Thread-1:
    Traceback (most recent call last):
    File “/usr/lib/python2.7/threading.py”, line 551, in __bootstrap_inner
    self.run()
    File “/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py”, line 95, in run
    self.add_ppa_signing_key(self.ppa_path)
    File “/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py”, line 107, in add_ppa_signing_key
    print “Error reading %s: %s” % (lp_url, e[1])
    NameError: global name ‘lp_url’ is not defined

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.