Error processing Package Oracle-java8-installer problem solving

Source: Internet
Author: User

Ubuntu has encountered the following issues when installing the JDK through the PPA source:

Download failed
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)

Cause of the problem:

Version mismatch

Workaround:

Execute the following command

cd/var/lib/dpkg/Infosudo sed-I.'s| java_version=8u151| java_version=8u162|'Oracle-java8-installer.*sudo sed-I.'s| partner_url=http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/| partner_url=http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/|'Oracle-java8-installer.*sudo sed-I.'s| sha256sum_tgz= "c78200ce409367b296ec39be4427f020e2c585470c4eed01021feada576f027f" | sha256sum_tgz= "68ec82d47fd9c2b8eb84225b6db398a72008285fafc98631b1ff8d2229680257" |'Oracle-java8-installer.*sudo sed-I.'s| j_dir=jdk1.8.0_151| j_dir=jdk1.8.0_162|'Oracle-java8-installer.*

Re-install again

sudo Install oracle-java8-installersudoinstall Oracle-java8-set-default

Reference:

Https://stackoverflow.com/questions/43587635/dpkg-error-processing-package-oracle-java8-installer-configure

See second answer, released by user hrvoj3e

Error processing Package Oracle-java8-installer problem solving

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.