Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle JDK 11 error occuring every time, I install anything in terminal

Tags:

ubuntu-18.04

Below is the Error message I get every time I install anything in the terminal . Its kinda stuck there for a while.

I tried no. of solutions from StackOverflow but nothing worked.

Before installing this package, please download the Oracle JDK 11 .tar.gz file with the same version as this package (version 11.0.4), and place it in /var/cache/oracle-jdk11-installer-local,

E.g.:

sudo mkdir -p /var/cache/oracle-jdk11-installer-local
sudo cp jdk-11.0.4_linux-x64_bin.tar.gz /var/cache/oracle-jdk11-installer-local/
sha256sum mismatch jdk-11.0.4_linux-x64_bin.tar.gz
Oracle JDK 11 is NOT installed.
dpkg: error processing package oracle-java11-installer-local (--configure):
 installed oracle-java11-installer-local package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 oracle-java11-installer-local
E: Sub-process /usr/bin/dpkg returned an error code (1)

Doesn't show up again.

like image 768
user63806 Avatar asked Jul 25 '19 19:07

user63806


People also ask

Where is jdk 11 located?

OpenJDK 11 is located at /usr/lib/jvm/java-11-openjdk-amd64/bin/java. Oracle Java is located at /usr/lib/jvm/java-11-oracle/jre/bin/java .


2 Answers

Remove the package oracle-java11-installer-local. You can do this in following way:

sudo apt remove oracle-java11-installer-local
like image 93
chunky Avatar answered Oct 17 '22 10:10

chunky


found this solution:

sudo rm /var/lib/dpkg/info/oracle-java11-installer-local.postinst

at this site.

like image 24
rüff0 Avatar answered Oct 17 '22 10:10

rüff0