Как установить jdk-6u25-linux-i586 на ubuntu-12.04-desktop-i386

chmod u+x jdk-6u25-linux-i586.bin
./jdk-6u25-linux-i586.bin
sudo mv jdk1.6.0_25 /usr/lib/jvm/
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.6.0_25/bin/java" 1
sudo update-alternatives --install "/usr/lib/mozilla/plugins/libjavaplugin.so" "mozilla-javaplugin.so" "/usr/lib/jvm/jdk1.6.0_25/jre/lib/i386/libnpjp2.so" 1

sudo update-alternatives --config java
sudo update-alternatives --config mozilla-javaplugin.so

--
Java - Community Ubuntu Documentation