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

How to add "Copy to" and "Move to" options to the right-click context menu in Windows:

Method 1: Registry Editor (Manual) Note: Back up your registry first or create a system restore point. Add "Copy to" Option:...