I have downloaded java jdk-8u144-linux-x64.tar and put it in this location /var/cache/oracle-jdk8-installer and then I add the java 8 repo to apt-get like so
The following NEW packages will be installed:
oracle-java8-set-default
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:
oracle-java8-installer
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-installer folder. How can I tell it to use that 144 and not try to use the latest version.
cheers
Zolf
LinuxJavaUbuntuLinux OS Dev
Last Comment
CEHJ
8/22/2022 - Mon
arnold
Please run the following command, and post the resulting output
gzip -cd < /var/cache/oracle-jdk8-installer/jdk-8u151-linux-x64.tar.gz | tar -vtf -
here is the output from that command you posted. See attached file ubuntu.txt
Zolf
ASKER
error i get is
zaj@zajd2:/var/cache/oracle-jdk8-installer$ sudo apt-get install oracle-java8-set-default[sudo] password for zaj:Reading package lists... DoneBuilding dependency treeReading state information... DoneThe following NEW packages will be installed: oracle-java8-set-default0 upgraded, 1 newly installed, 0 to remove and 191 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) ...Using wget settings from /var/cache/oracle-jdk8-installer/wgetrcDownloading Oracle Java 8...--2017-11-21 11:26:05-- http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gzResolving download.oracle.com (download.oracle.com)... 185.48.240.224, 185.48.240.219Connecting to download.oracle.com (download.oracle.com)|185.48.240.224|:80... connected.HTTP request sent, awaiting response... 403 Forbidden2017-11-21 11:26:06 ERROR 403: Forbidden.download failedOracle JDK 8 is NOT installed.dpkg: error processing package oracle-java8-installer (--configure): subprocess installed post-installation script returned error exit status 1Errors were encountered while processing: oracle-java8-installerE: Sub-process /usr/bin/dpkg returned an error code (1)zaj@zajd2:/var/cache/oracle-jdk8-installer$
IN your prior attempt, the error related to the checksum mismatch.
Installing from local file /var/cache/oracle-jdk8-installer/jdk-8u151-linux-x64.tar.gz
Removing outdated cached downloads...
sha256sum mism
I'm not certain you can provide an option to apt-get to not validate if you manually run sha256sum of the tar.gz
Compared to the info on the link for 8.0..
gzip -cd < /var/cache/oracle-jdk8-ins
Trying to see the contents table of the archive.
The error seems to point to a signature mismatch.