openjdk6 not available

13,228

Solution 1

Please try a sudo apt-get clean && sudo apt-get update after changing your software mirrors :)

Solution 2

Open a terminal and try these commands:

sudo add-apt-repository ppa:openjdk-r/ppa  
sudo apt-get update   
sudo apt-get install openjdk-6-jre 
Share:
13,228

Related videos on Youtube

Paris
Author by

Paris

I am a co-founder at SourceLair, an online IDE for developers that build Python and JavaScript web applications.

Updated on September 18, 2022

Comments

  • Paris
    Paris over 1 year

    I run a server with Ubuntu 10.04 (Lucid Lynx) Minimal Server, on amd64 system. I 'd like to install the openjdk packages (jre and jdk), but when I try

    sudo apt-get install openjdk-6-jdk
    

    I get

    Package openjdk-6-jdk is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package openjdk-6-jdk has no installation candidate
    

    And I 'd like to install this package andI don't know how, while it seems to be available here

    • macrobook
      macrobook about 12 years
      (1) Do you have lucid main in your sources.list? Run cat /etc/apt/sources.list and provide the output in your question. (2) What do you mean by "minimal" server? Did you use the official server image (ubuntu-10.04*-server-*.iso) from releases.ubuntu.com/lucid ?
    • Nitin Venkatesh
      Nitin Venkatesh about 12 years
      Did you try a sudo apt-get update after changing your software mirrors?
    • Paris
      Paris about 12 years
      Ok I tried apt-get clean and apt-get update and it worked. Thank you very much :-)
    • Nitin Venkatesh
      Nitin Venkatesh about 12 years
      @bodhi.zazen Done :)