Installing Java6 JDK on Ubuntu 11.10

UPDATE: To install on 12.04 (Precise Pangolin) you need a different PPA.

Since sun-java6-jdk has been removed from the default Ubuntu 11.10 (Oneiric Ocelot) repositories you need to add a PPA repository (unless you want to install by hand)

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

Author: Leo Gaggl

ict business owner specialising in mobile learning systems. interests: sustainability, internet of things, ict for development, open innovation, agriculture

38 thoughts on “Installing Java6 JDK on Ubuntu 11.10”

  1. if you get any error then try after follow command
    sudo add-apt-repository ppa:ferramroberto/java

    then run this
    apt-get install python-software-properties
    and now
    sudo add-apt-repository ppa:ferramroberto/java

  2. yo tras añadir el repo, tube que editar el fichero .list para borrar la 3º lista.

    sudo nano /etc/apt/sources.list.d/ferramroberto-java-oneiric.list

  3. while i am updating managers this is the error i am facing can one please help me..

    jnias@jnias-desktop:/$ sudo apt-get update
    E: Malformed line 99 in source list /etc/apt/sources.list (dist parse)
    E: The list of sources could not be read.

Leave a Reply

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