I'm getting the below error message while downloading Oracle JDK on Ubuntu 16.04

HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.tar.gz?AuthParam=1539316934_f62bf0da38562308851b00738a1641b2 [following]
--2018-10-12 09:30:14--  http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.tar.gz?AuthParam=1539316934_f62bf0da38562308851b00738a1641b2
Connecting to download.oracle.com (download.oracle.com)|23.221.54.182|:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

Download done.
Removing outdated cached downloads...
sha256sum mismatch jdk-8u181-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
dpkg: dependency problems prevent configuration of default-jre-headless:
 default-jre-headless depends on openjdk-8-jre-headless; however:
  Package openjdk-8-jre-headless is not installed.
  Package oracle-java8-installer which provides openjdk-8-jre-headless is not configured yet.

dpkg: error processing package default-jre-headless (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                    dpkg: dependency problems prevent configuration of default-jre:
 default-jre depends on default-jre-headless (= 2:1.8-56ubuntu2); however:
  Package default-jre-headless is not configured yet.
  Version of default-jre-headless on system, provided by oracle-java8-installer:all, is <none>.
 default-jre depends on openjdk-8-jre; however:
  Package openjdk-8-jre is not installed.
  Package oracle-java8-installer which provides openjdk-8-jre is not configured yet.

dpkg: error processing package default-jre (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-jdk-headless:
 default-jdk-headless depends on default-jre-headless (= 2:1.8-56ubuntu2); however:
  Package default-jre-headless is not configured yet.
  Version of default-jre-headless on system, provided by oracle-java8-installer:all, is <none>.
 default-jdk-headless depends on openjdk-8-jdk-headless; however:
  Package openjdk-8-jdk-headless is not installed.
  Package oracle-java8-installer which provides openjdk-8-jdk-headless is not configured yet.

dpkg: error processing package default-jdk-headless (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of default-jdk:
 default-jdk depends on default-jre (= 2:1.8-56ubuntu2); however:
  Package default-jre is not configured yet.
  Version of default-jre on system, provided by oracle-java8-installer:all, is <none>.
 default-jdk depends on default-jdk-headless (= 2:1.8-56ubuntu2); however:
  Package default-jdk-headless is not configured yet.
 default-jdk depends on openjdk-8-jdk; however:
  Package openjdk-8-jdk is not installed.
  Package oracle-java8-installer which provides openjdk-8-jdk is not configured yet.

dpkg: error processing package default-jdk (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 oracle-java8-installer
 default-jre-headless
 default-jre
 default-jdk-headless
 default-jdk
E: Sub-process /usr/bin/dpkg returned an error code (1)

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.