I am a new Linux user that currently uses 18.04 on my HP laptop with AMD processor. Sometimes I tried to install JDK11 from this repository
sudo add-apt-repository ppa:linuxuprising/java so
sudo apt-get update and finally press this command
sudo apt-get install oracle-java11-installer-local After doing this, the error package is not installed, okay, I closed my terminal and yesterday I will install it.
sudo apt install ubuntu-restricted-extras so I have this error every time I use
sudo apt update / sudo apt upgrade
The error I received each time:
aus@aus-pc:~$ sudo apt install ubuntu-restricted-extras (sudo) password for aus: Reading package lists... Done Building dependency tree Reading state information... Done ubuntu-restricted-extras is already the newest version (66). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? (Y/n) Y Setting up oracle-java11-installer-local (11.0.4-1~linuxuprising1) ... 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)
Note: I have manually removed the URL from Software and Update Center But I received this error every time please help me.
PPA reference URL: Path since I obtained the JDK11 reference