I have downloaded java jdk-8u144-linux-x64.tar and put it in this location /var/cache/oracle-jdk8-ins
taller and then I add the java 8 repo to apt-get like so
sudo add-apt-repository ppa:webupd8team/java
and then when i try to install java using the following cmd
sudo apt-get install oracle-java8-set-default
. I get error that
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 132 not upgraded.
1 not fully installed or removed.
Need to get 0 B/6,788 B of archives.
After this operation, 20.5 kB of additional disk space will be used.
Setting up oracle-java8-installer (8u151-1~webupd8~0) ...
Installing from local file /var/cache/oracle-jdk8-installer/jdk-8u151-linux-x64.tar.gz
Removing outdated cached downloads...
sha256sum mismatch jdk-8u151-linux-x64.tar.gz
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
I know the cause of the error and that is it is trying to install the latest version which is 151 and I have version 144 in the /var/cache/oracle-jdk8-ins
taller folder. How can I tell it to use that 144 and not try to use the latest version.