Unable to install java 8 on Ubuntu 14.04 32 bit

14,289

it seems that your download is corrupted.

[..] sha256sum mismatch jdk-8u77-linux-i586.tar.gz [..]

Try to remove the package

sudo apt-get purge oracle-java8-installer
sudo apt-get clean
sudo apt-get update

then remove the repo and reimport it

sudo add-apt-repository --remove ppa:webupd8team/java
sudo apt-get update
sudo apt-add-repository ppa:webupd8team/java

and reinstall the package

sudo apt-get update
sudo apt-get install oracle-java8-installer

update: if you want to install java you can use this code instead of the last line :

sudo apt install default-jdk
Share:
14,289

Related videos on Youtube

BalaajiChander
Author by

BalaajiChander

Updated on September 18, 2022

Comments

  • BalaajiChander
    BalaajiChander over 1 year

    I used the following code to install openjdk 7 and to add repository,

    sudo apt-get install openjdk-7-jdk
    sudo apt-add-repository ppa:webupd8team/java
    

    Then I have updated the packages using sudo apt-get update, After this when I try to install Java using the following command,

    sudo apt-get install oracle-java8-installer

    I am getting error, the error code response is,

    2016-04-20 13:00:45 (442 MB/s) - ‘jdk-8u77-linux-i586.tar.gz’ saved [5165]
    Download done.
    Removing outdated cached downloads...
    sha256sum mismatch jdk-8u77-linux-i586.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)
    

    How to debug and resolve this, I am new to Ubuntu. Thanks.

    • BalaajiChander
      BalaajiChander about 8 years
      Later when I install chromium browser I am getting the following error, Removing outdated cached downloads... sha256sum mismatch jdk-8u77-linux-i586.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 Setting up chromium-browser (49.0.2623.108-0ubuntu0.14.04.1.1113) ... Setting up chromium-browser-l10n (49.0.2623.108-0ubuntu0.14.04.1.1113) Errors were encountered while processing: oracle-java8-installer E: Sub-process /usr/bin/dpkg returned an error code (1)
  • BalaajiChander
    BalaajiChander about 8 years
    Error : W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3BDAAC08614C4B38
  • BalaajiChander
    BalaajiChander about 8 years
    I have followed all the steps still I am getting the same error Removing outdated cached downloads... sha256sum mismatch jdk-8u77-linux-i586.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)
  • Francesco
    Francesco about 8 years
    @Bachan Did you import the GPG key when you performed "sudo apt-add-repository ppa:webupd8team/java" (at a certain point the terminal asked you "Press [ENTER] to continue or ctrl-c to cancel adding it")?
  • BalaajiChander
    BalaajiChander about 8 years
    Yes I pressed [Enter]
  • BalaajiChander
    BalaajiChander about 8 years
    I tried again and pressed [Enter], still the same error W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3BDAAC08614C4B38 on sudo apt-get update
  • Francesco
    Francesco about 8 years
    the problem is that missing GPG key...have a look at this post askubuntu.com/questions/645658/…
  • Francesco
    Francesco about 8 years
    if you can't sort it out you can install the java sdk by downloading it directly form Oracle
  • BalaajiChander
    BalaajiChander about 8 years
    the problem was with the firewall in my organization, with restricted download size and bandwidth, so is the corrupt packages problem. I resolved it later. And followed your steps. Installed JDK 8 :) . Thanks. How to enable debug switch in shell for detailed error report ?