Results 1 to 5 of 5

Thread: Trying to install sun-java6-jre

  1. #1
    Join Date
    Aug 2012
    Beans
    9

    Red face Trying to install sun-java6-jre

    Hello,

    On my debian box I am trying to install sun-java6-jre

    I added contrib non-free to my sorces list ran update then:

    apt-get install package sun-java6-jre
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package package

    I tried this s few days ago on another machine and it worked, so not sure what is going on here. Anyone got any ideas?

    Thanks..

  2. #2
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Trying to install sun-java6-jre

    For legal reason Oracle Java is no longer available in any of the standard repositories. Also you are better of using Java 7, version 6 has been depreciated and has known security issues.
    The easiest way to install is to do:
    Code:
    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java7-installer
    Oops, just noticed you are using Debian.
    Debian instructions are:
    Code:
    su -
    echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" > /etc/apt/sources.list.d/webupd8team-java.list
    echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" >> /etc/apt/sources.list.d/webupd8team-java.list
    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
    apt-get update
    apt-get install oracle-java7-installer
    exit
    Cheesemill

  3. #3
    Join Date
    Aug 2012
    Beans
    9

    Re: Trying to install sun-java6-jre

    Worked like a charm first time! You're a star, thank you very much indeed

  4. #4
    Join Date
    Nov 2010
    Location
    India
    Beans
    Hidden!

    Re: Trying to install sun-java6-jre

    Thats glad news , now please mark your thread as solved from thread tools . Thank you .
    Dont miss anything even it is small. one small pin is enough to bring down a man.


  5. #5
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Trying to install sun-java6-jre

    Moved to Other OS/Distro Talk.

Tags for this Thread

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
  •