Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Trying to install Oracle Java 7

  1. #1
    Join Date
    Apr 2012
    Beans
    192
    Distro
    Ubuntu 14.04 Trusty Tahr

    Trying to install Oracle Java 7

    I entered the following in terminal---

    sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installerI get the following output in the Terminal

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Suggested packages:
    visualvm ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho
    ttf-sazanami-mincho ttf-arphic-uming
    The following packages will be upgraded:
    oracle-java7-installer
    1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    1 not fully installed or removed.
    Need to get 0 B/15.3 kB of archives.
    After this operation, 3,072 B of additional disk space will be used.
    Setting up oracle-java7-installer (7u3-0~eugenesan~precise4) ...
    Downloading...
    --2012-08-07 18:39:45-- http://download.oracle.com/otn-pub/j...ux-i586.tar.gz
    Resolving download.oracle.com (download.oracle.com)... 24.143.193.147
    Connecting to download.oracle.com (download.oracle.com)|24.143.193.147|:80... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://edelivery.oracle.com/otn-pub...ux-i586.tar.gz [following]
    --2012-08-07 18:39:45-- https://edelivery.oracle.com/otn-pub...ux-i586.tar.gz
    Resolving edelivery.oracle.com (edelivery.oracle.com)... 184.85.238.174
    Connecting to edelivery.oracle.com (edelivery.oracle.com)|184.85.238.174|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: http://download.oracle.com/errors/do...l-1505220.html [following]
    --2012-08-07 18:39:46-- http://download.oracle.com/errors/do...l-1505220.html
    Connecting to download.oracle.com (download.oracle.com)|24.143.193.147|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 5307 (5.2K) [text/html]
    Saving to: `./jdk-7u3-linux-i586.tar.gz'

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

    2012-08-07 18:39:46 (6.46 MB/s) - `./jdk-7u3-linux-i586.tar.gz' saved [5307/5307]

    Download done.
    sha256sum mismatch jdk-7u3-linux-i586.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
    No apport report written because MaxReports is reached already
    Errors were encountered while processing:
    oracle-java7-installer
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Last edited by garyzw; August 8th, 2012 at 01:41 AM. Reason: Solved

  2. #2
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Trying to install Oracle Java 7

    You tried to install the Eugene San version once, didn't you?

    Unfortunately, that package is broken.

    In the Oracle Java 7 section of the wiki in my signature, I give some instructions for how to untangle the mess. Just look for the note about the Eugene San PPA.
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  3. #3
    Join Date
    Apr 2012
    Beans
    192
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Trying to install Oracle Java 7

    It may have been the Eugene San version--I ran the following

    $ sudo apt-get remove --purge oracle-java7-installer* $ sudo apt-get install ppa-purge $ sudo ppa-purge ppa:eugenesan/java $ sudo apt-get clean $ sudo apt-get update

    How do I install the Sun Java 7?
    Last edited by garyzw; August 8th, 2012 at 01:17 AM.

  4. #4
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Trying to install Oracle Java 7

    A little bit above the Eugene San instructions I added a link "Using webupd8.org's strikingly simple method"

    It really is strikingly simple. Those guys are good.
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  5. #5
    Join Date
    Apr 2012
    Beans
    192
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Trying to install Oracle Java 7

    I did the webupd8.org's strikingly simple method and this is what I got

    Reading package lists... Done
    gary@gary-FX400:~$ sudo apt-get install oracle-java7-installer
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Suggested packages:
    visualvm ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho
    ttf-sazanami-mincho ttf-arphic-uming
    The following packages will be upgraded:
    oracle-java7-installer
    1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    1 not fully installed or removed.
    Need to get 15.3 kB of archives.
    After this operation, 3,072 B of additional disk space will be used.
    Get:1 http://ppa.launchpad.net/webupd8team/java/ubuntu/ precise/main oracle-java7-installer all 7u5-0~webupd8~5 [15.3 kB]
    Fetched 15.3 kB in 0s (22.9 kB/s)
    Setting up oracle-java7-installer (7u3-0~eugenesan~precise4) ...
    Downloading...
    --2012-08-07 19:20:48-- http://download.oracle.com/otn-pub/j...ux-i586.tar.gz
    Resolving download.oracle.com (download.oracle.com)... 107.14.38.152, 107.14.38.155
    Connecting to download.oracle.com (download.oracle.com)|107.14.38.152|:80... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: https://edelivery.oracle.com/otn-pub...ux-i586.tar.gz [following]
    --2012-08-07 19:20:48-- https://edelivery.oracle.com/otn-pub...ux-i586.tar.gz
    Resolving edelivery.oracle.com (edelivery.oracle.com)... 184.85.238.174
    Connecting to edelivery.oracle.com (edelivery.oracle.com)|184.85.238.174|:443... connected.
    HTTP request sent, awaiting response... 302 Moved Temporarily
    Location: http://download.oracle.com/errors/do...l-1505220.html [following]
    --2012-08-07 19:20:49-- http://download.oracle.com/errors/do...l-1505220.html
    Connecting to download.oracle.com (download.oracle.com)|107.14.38.152|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 5307 (5.2K) [text/html]
    Saving to: `./jdk-7u3-linux-i586.tar.gz'

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

    2012-08-07 19:20:49 (7.12 MB/s) - `./jdk-7u3-linux-i586.tar.gz' saved [5307/5307]

    Download done.
    sha256sum mismatch jdk-7u3-linux-i586.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
    No apport report written because MaxReports is reached already
    Errors were encountered while processing:
    oracle-java7-installer
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  6. #6
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Trying to install Oracle Java 7

    The Eugene San PPA was not removed.

    Did you run each of the commands in that section independently or did you copy the text from the wiki into the terminal as a chunk?
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  7. #7
    Join Date
    Apr 2012
    Beans
    192
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Trying to install Oracle Java 7

    The following solved the problem

    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
    Apr 2012
    Beans
    192
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Trying to install Oracle Java 7

    Quote Originally Posted by QIII View Post
    The Eugene San PPA was not removed.

    Did you run each of the commands in that section independently or did you copy the text from the wiki into the terminal as a chunk?
    I did each section independently--Thanks for your help

  9. #9
    Join Date
    Aug 2012
    Beans
    19

    Question Re: Trying to install Oracle Java 7

    I've tried every means of installing java that i found in a google search and all to no avail. I'm a new user to ubuntu, but i am pasting the commands in line-by-line and every time i get the error code 1 message. i am aware that the eugene sans package is broken, but all other methods give me the same results.can anybody give me a walkthrough for installing java that doesn't end in frustration? also, i've noticed that these instructions have worked for everyone else, but not for me despite doing it exactly the same. I'm on 12.04, thanks.

  10. #10
    Join Date
    Feb 2009
    Location
    Hull, England
    Beans
    Hidden!
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Trying to install Oracle Java 7

    Try running the 3 commands in post 7, and post back here with the errors you encounter.

Page 1 of 2 12 LastLast

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
  •