Results 1 to 10 of 19

Thread: Ubuntu 12.04 Java Failed Install

Hybrid View

  1. #1
    Join Date
    Apr 2011
    Location
    UK
    Beans
    60
    Distro
    Ubuntu 18.04 Bionic Beaver

    Ubuntu 12.04 Java Failed Install

    Hi I tried to install Java for Ubuntu 12.04 LTS and the install failed!
    I am getting loads of random app crashes and spongy slow response of the system
    in general.

    I don't know how to remove what's been done or how to actually
    get Java on the system.

    Everything was good until this. I have copied the terminal
    output for you to look at and maybe offer me a way out of this.

    Reinstalling is not a good option right now, as i have a ton of data.

    Thank you



    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-java7-installer (7u3-0~eugenesan~precise4) ...
    Downloading...
    --2012-05-10 11:37:55-- http://download.oracle.com/otn-pub/j...nux-x64.tar.gz
    Resolving download.oracle.com (download.oracle.com)... 92.123.154.83, 92.123.154.75
    Connecting to download.oracle.com (download.oracle.com)|92.123.154.83|:80... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://edelivery.oracle.com/otn-pub...nux-x64.tar.gz [following]
    --2012-05-10 11:37:55-- https://edelivery.oracle.com/otn-pub...nux-x64.tar.gz
    Resolving edelivery.oracle.com (edelivery.oracle.com)... 2.18.210.174
    Connecting to edelivery.oracle.com (edelivery.oracle.com)|2.18.210.174|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: http://download.oracle.com/errors/do...l-1505220.html [following]
    --2012-05-10 11:37:55-- http://download.oracle.com/errors/do...l-1505220.html
    Connecting to download.oracle.com (download.oracle.com)|92.123.154.83|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 5307 (5.2K) [text/html]
    Saving to: `./jdk-7u3-linux-x64.tar.gz'

    0K ..... 100% 5.10M=0.001s

    2012-05-10 11:37:55 (5.10 MB/s) - `./jdk-7u3-linux-x64.tar.gz' saved [5307/5307]

    Download done.
    sha256sum mismatch jdk-7u3-linux-x64.tar.gz
    Oracle JDK 7 is NOT installed.
    dpkg: error processing oracle-java7-installer (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    oracle-java7-installer
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    alex@U-Box:~$ sudo apt-get install oracle-java7-installer
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    oracle-java7-installer is already the newest version.
    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-java7-installer (7u3-0~eugenesan~precise4) ...
    Downloading...
    --2012-05-10 11:38:47-- http://download.oracle.com/otn-pub/j...nux-x64.tar.gz
    Resolving download.oracle.com (download.oracle.com)... 92.123.154.83, 92.123.154.75
    Connecting to download.oracle.com (download.oracle.com)|92.123.154.83|:80... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://edelivery.oracle.com/otn-pub...nux-x64.tar.gz [following]
    --2012-05-10 11:38:52-- https://edelivery.oracle.com/otn-pub...nux-x64.tar.gz
    Resolving edelivery.oracle.com (edelivery.oracle.com)... 2.18.210.174
    Connecting to edelivery.oracle.com (edelivery.oracle.com)|2.18.210.174|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: http://download.oracle.com/errors/do...l-1505220.html [following]
    --2012-05-10 11:38:53-- http://download.oracle.com/errors/do...l-1505220.html
    Connecting to download.oracle.com (download.oracle.com)|92.123.154.83|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 5307 (5.2K) [text/html]
    Saving to: `./jdk-7u3-linux-x64.tar.gz'

    0K ..... 100% 3.49M=0.001s

    2012-05-10 11:38:53 (3.49 MB/s) - `./jdk-7u3-linux-x64.tar.gz' saved [5307/5307]

    Download done.
    sha256sum mismatch jdk-7u3-linux-x64.tar.gz
    Oracle JDK 7 is NOT installed.
    dpkg: error processing oracle-java7-installer (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    oracle-java7-installer
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    alex@U-Box:~$
    Last edited by rigel4; May 10th, 2012 at 01:06 PM.

  2. #2
    Join Date
    Apr 2011
    Location
    UK
    Beans
    60
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Ubuntu 12.04 Java Failed Install

    HI I have solved it myself from a post elsewhere:



    Code:
    sudo rm /var/lib/dpkg/info/oracle-java7-installer* sudo apt-get purge oracle-java7-installer* sudo rm /etc/apt/sources.list.d/*java* sudo apt-get update sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer

  3. #3
    Join Date
    May 2012
    Beans
    1

    Re: Ubuntu 12.04 Java Failed Install

    I could kiss you.. 2 days of looking and you solved it for me in 3 minutes. Thanks a Bunch!

  4. #4
    Join Date
    Jul 2009
    Beans
    3

    Re: Ubuntu 12.04 Java Failed Install

    Rigel / Helopoh,

    Can you tell me the clear commands? if possible step by step
    I am facing same problem

    The commands you given i tried.
    Instead of symbols what i have to use.?

    Please forgive me.. I am not good in Linux.

    Expecting your best response ASAP.

  5. #5
    Join Date
    Feb 2011
    Beans
    2

    Re: Ubuntu 12.04 Java Failed Install

    Thanks guys, worked perfectly for me.

    Try this bsprakash, if you're unsure, one command at a time.

    Code:
    sudo rm /var/lib/dpkg/info/oracle-java7-installer*
    sudo apt-get purge oracle-java7-installer*
    sudo rm /etc/apt/sources.list.d/*java*
    sudo apt-get update
    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java7-installer
    Or all in one :

    Code:
    sudo rm /var/lib/dpkg/info/oracle-java7-installer*; sudo apt-get purge oracle-java7-installer*; sudo rm /etc/apt/sources.list.d/*java*; sudo apt-get update; sudo add-apt-repository ppa:webupd8team/java; sudo apt-get update; sudo apt-get install oracle-java7-installer;

  6. #6
    Join Date
    May 2012
    Beans
    1

    Talking Re: Ubuntu 12.04 Java Failed Install

    Words cannot describe how much I appreciate this fix. I was going absolutely bonkers. I'm a newbie to Ubuntu but I love the vast helpful community it creates. Thanks again!

  7. #7
    Join Date
    Sep 2009
    Beans
    4

    Re: Ubuntu 12.04 Java Failed Install

    Following up your CLI, It is workable on my system. Thanks guys ^_~
    Quote Originally Posted by ibussieres View Post
    Thanks guys, worked perfectly for me.

    Try this bsprakash, if you're unsure, one command at a time.

    Code:
    sudo rm /var/lib/dpkg/info/oracle-java7-installer*
    sudo apt-get purge oracle-java7-installer*
    sudo rm /etc/apt/sources.list.d/*java*
    sudo apt-get update
    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java7-installer
    Or all in one :

    Code:
    sudo rm /var/lib/dpkg/info/oracle-java7-installer*; sudo apt-get purge oracle-java7-installer*; sudo rm /etc/apt/sources.list.d/*java*; sudo apt-get update; sudo add-apt-repository ppa:webupd8team/java; sudo apt-get update; sudo apt-get install oracle-java7-installer;

  8. #8
    Join Date
    Sep 2012
    Beans
    8

    Re: Ubuntu 12.04 Java Failed Install

    Quote Originally Posted by ibussieres View Post
    Thanks guys, worked perfectly for me.

    Try this bsprakash, if you're unsure, one command at a time.

    Code:
    sudo rm /var/lib/dpkg/info/oracle-java7-installer*
    sudo apt-get purge oracle-java7-installer*
    sudo rm /etc/apt/sources.list.d/*java*
    sudo apt-get update
    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java7-installer
    Or all in one :

    Code:
    sudo rm /var/lib/dpkg/info/oracle-java7-installer*; sudo apt-get purge oracle-java7-installer*; sudo rm /etc/apt/sources.list.d/*java*; sudo apt-get update; sudo add-apt-repository ppa:webupd8team/java; sudo apt-get update; sudo apt-get install oracle-java7-installer;

    Very Nice...Than you!

  9. #9
    Join Date
    Aug 2012
    Beans
    1

    Re: Ubuntu 12.04 Java Failed Install

    Quote Originally Posted by rigel4 View Post
    HI I have solved it myself from a post elsewhere:



    Code:
    sudo rm /var/lib/dpkg/info/oracle-java7-installer* sudo apt-get purge oracle-java7-installer* sudo rm /etc/apt/sources.list.d/*java* sudo apt-get update sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer
    Oh, man, thank you so much. Spent hours looking at other forums and trying different ideas to install Java. This worked! Thanks.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •