WebHosting

Thursday, March 29, 2012

Package sun-java6-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

If you get this error :

Package sun-java6-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


Execute following commands :



  1. sudo apt-get install python-software-properties
  2. sudo add-apt-repository ppa:ferramroberto/java
  3. sudo apt-get update
  4. sudo apt-get install sun-java6-jdk
  5. sudo update-java-alternatives -s java-6-sun


:) Enjoy....

1 comment:

  1. Thank you so much.. this save me from having to download from Oracle and having to set correct paths and environment!

    ReplyDelete

Thank you for Commenting Will reply soon ......

Featured Posts

Error Message in DBeaver connecting using jdbc: Public Key Retrieval is not allowed

Fixing “Public Key Retrieval is not allowed” Error in MySQL with DBeaver   If you are trying to connect MySQL 8+ with DBeaver and suddenly...