Friday, May 18, 2012

Failed Installing Java on Ubuntu 12.04? Here Are The Workaround

If you happen to experience the same flaw to installing Java on Ubuntu 12.04, then you could do these steps:

sudo rm /var/lib/dpkg/info/oracle-java7-installer*
sudo apt-get purge oracle-java7-installer*
sudo rm /etc/apt/sources.list.d/*java*
sudo apt-get update
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Proven to be worked well :) Credit goes to the Ubuntu Forum thread here