When I upgraded to Ubuntu 12.04, all the sudden I couldn't install Java (sha256sum mismatch jdk-7u3-linux-x64.tar.gz), which means I can't do much deving. Well I searched through the interweb and finally found a solution.
First:
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.com/technetwork/java/javase/downloads/jdk-7u3-download-1501626.html
Now, move what you just downloaded to /var/cache/oracle-java7-installer/
Third:
Now scroll down and find the following:
Now put a # next to each line between "Downloading..." and "Downloading done."
Save, and go back to your terminal.
Finally, do:
Java should now install properly.
Source:
http://www.ubuntugeek.com/how-to-install-oracle-java-7-in-ubuntu-12-04.html (most helpful info is in the comments)
Sent from my ADR6400L using RootzWiki
First:
Code:
sudo add-apt-repository ppa:eugenesan/java<br />
sudo apt-get update<br />
sudo apt-get install oracle-java7-installer
Second:
Download Java directly from Oracle: http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u3-download-1501626.html
Now, move what you just downloaded to /var/cache/oracle-java7-installer/
Third:
Code:
sudo gedit /var/lib/dpkg/info/oracle-java7-installer.postinst
Code:
<br />
<br />
echo "Downloading..."<br />
rm -f $FILENAME<br />
WGETRC=wgetrc wget $PARTNER_URL <br />
|| fp_exit_with_error "download failed"<br />
rm -f wgetrc<br />
echo "Download done."
Code:
<br />
<br />
echo "Downloading..."<br />
#rm -f $FILENAME<br />
#WGETRC=wgetrc wget $PARTNER_URL <br />
#|| fp_exit_with_error "download failed"<br />
#rm -f wgetrc<br />
echo "Download done."
Finally, do:
Code:
sudo apt-get install oracle-java7-installer
Source:
http://www.ubuntugeek.com/how-to-install-oracle-java-7-in-ubuntu-12-04.html (most helpful info is in the comments)
Sent from my ADR6400L using RootzWiki