"sha256sum mismatch jdk-7u3-linux-x64.tar.gz " error when trying to install Oracle Java

Run the following commands from a Terminal:

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

Information about what PPAs are, as well as tips on recognizing which of them are unsafe, can be found here.


Glossary

Command, command line: the traditional Unix environment , where you type commands to tell the computer what to do.

Terminal: an application that allows you to access the command line. Open it by hitting its keyboard shortcut, Ctrl Alt T

Tags:

Java