First:
sudo add-apt-repository ppa:eugenesan/java sudo apt-get update sudo apt-get install oracle-java7-installer
By now, you have probably gotten an error and the terminal has stated that Java was not installed. No problem.
Second:
Download Java directly from Oracle: http://www.oracle.co...ad-1501626.html
Now, move what you just downloaded to /var/cache/oracle-java7-installer/
Third:
sudo gedit /var/lib/dpkg/info/oracle-java7-installer.postinst
Now scroll down and find the following:
echo "Downloading..." rm -f $FILENAME WGETRC=wgetrc wget $PARTNER_URL || fp_exit_with_error "download failed" rm -f wgetrc echo "Download done."
Now put a # next to each line between "Downloading..." and "Downloading done."
echo "Downloading..."
#rm -f $FILENAME
#WGETRC=wgetrc wget $PARTNER_URL
#|| fp_exit_with_error "download failed"
#rm -f wgetrc
echo "Download done."Save, and go back to your terminal.
Finally, do:
sudo apt-get install oracle-java7-installer
Java should now install properly.
Source:
http://www.ubuntugee...untu-12-04.html (most helpful info is in the comments)
Sent from my ADR6400L using RootzWiki







