How to install the Sun Java JDK on Ubuntu 10.10 (Maverick Meerkat)?

后端 未结 13 1666
一整个雨季
一整个雨季 2020-12-02 05:33

I\'ve tried to add the Canonical Partner repository, but I still can\'t find the sun-java6-jdk package. What is the right way to install the Oracle Sun JDK inst

相关标签:
13条回答
  • 2020-12-02 05:56

    I am assuming that you need the JDK itself. If so you can accomplish this with:

    sudo add-apt-repository ppa:sun-java-community-team/sun-java6
    
    sudo apt-get update
    
    sudo apt-get install sun-java6-jdk
    

    You don't really need to go around editing sources or anything along those lines.

    0 讨论(0)
  • 2020-12-02 06:00

    For Ubuntu 10.10 Desktop simply do this: Ubuntu - Installing Java.

    0 讨论(0)
  • 2020-12-02 06:01
    sudo add-apt-repository ppa:sun-java-community-team/sun-java6
    
    sudo apt-get update
    
    sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-jdk
    
    0 讨论(0)
  • 2020-12-02 06:06

    It is working fine for me, but with a different command:

    root@ubuntu:/usr/bin# sudo apt-get install sun-java6
    

    Error message:

    Couldn't find package sun-java6.

    root@ubuntu:/usr/bin# sudo apt-get install sun-java*
    

    Bam, it worked.

    0 讨论(0)
  • 2020-12-02 06:08

    You might have to use the version in the Lucid partner repository. I did this in Lucid (I used the version from Karmic multiverse, before I realized it had been moved to the partner repo), and it worked fine. Not sure where it went in Maverick though.

    0 讨论(0)
  • 2020-12-02 06:09

    All you need to do is uncomment the two lines in /etc/apt/sources.list that refer to "partner"

    sudo nano /etc/apt/sources.list
    # uncomment the two lines referring to "partner"
    sudo apt-get update 
    sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-jdk
    

    (I can't find the command add-apt-repository on Ubuntu 10.10, 64 amd ... even searching with apt-cache yields nothing)

    0 讨论(0)
提交回复
热议问题