Problems installing Sun Java SDK on Ubuntu

I've followed the instructions for installing the sun java sdk, but something's wrong.  I've checked canonical partners in Other Software

tac@xps-L502X:~/PhpStorm-111.19/bin$ sudo apt-get update
Ign stable InRelease
Get:1 stable Release.gpg [198 B]                                                                                                                                                             
Get:2 stable Release [1,347 B]                                                                                                                                                               
Ign oneiric InRelease                                                                                                           
Ign oneiric InRelease                                         
Ign oneiric-security InRelease                                  
Ign oneiric InRelease                                         
Ign oneiric-updates InRelease                                 
Ign oneiric-backports InRelease                               
Get:3 stable/main i386 Packages [765 B]                               
Ign stable/main TranslationIndex                                                                                   
Hit oneiric Release.gpg                                                                 
Hit oneiric Release.gpg                                       
Hit oneiric-security Release.gpg                                
Hit oneiric Release.gpg                                       
Hit oneiric Release                                               
Hit oneiric Release                                                                  
Hit oneiric-security Release                                                           
Hit oneiric-updates Release.gpg                                
Hit oneiric/main Sources                                                                 
Hit oneiric-backports Release.gpg                             
Hit oneiric/partner Sources             
Hit oneiric-security/main Sources         
Hit oneiric/main i386 Packages                                    
Ign oneiric/main TranslationIndex                                 
Hit oneiric/partner i386 Packages                             
Ign oneiric/partner TranslationIndex                          
Hit oneiric Release                                           
Hit oneiric-security/restricted Sources                                                                      
Hit oneiric-security/universe Sources                                                 
Hit oneiric-security/multiverse Sources   
Hit oneiric-security/main i386 Packages   
Hit oneiric-security/restricted i386 Packages
Ign stable/main Translation-en_US               
Hit oneiric-updates Release                                   
Ign stable/main Translation-en                                                                                     
Hit oneiric-security/universe i386 Packages                                                                  
Hit oneiric-security/multiverse i386 Packages                   
Hit oneiric-security/main TranslationIndex                      
Hit oneiric-security/multiverse TranslationIndex                
Hit oneiric-security/restricted TranslationIndex                
Hit oneiric-security/universe TranslationIndex                  
Hit oneiric-security/main Translation-en                        
Hit oneiric-backports Release           
Hit oneiric/main Sources                
Hit oneiric/restricted Sources          
Hit oneiric/universe Sources                                                         
Hit oneiric/multiverse Sources                                                       
Hit oneiric/main i386 Packages                                 
Hit oneiric/restricted i386 Packages                           
Hit oneiric-security/multiverse Translation-en                  
Hit oneiric/universe i386 Packages                            
Hit oneiric-security/restricted Translation-en                  
Hit oneiric/multiverse i386 Packages                          
Hit oneiric/main TranslationIndex       
Hit oneiric/multiverse TranslationIndex                       
Hit oneiric/restricted TranslationIndex                       
Hit oneiric/universe TranslationIndex                         
Hit oneiric-updates/main Sources                              
Hit oneiric-updates/restricted Sources                        
Hit oneiric-updates/universe Sources                          
Hit oneiric-security/universe Translation-en                    
Hit oneiric-updates/multiverse Sources  
Hit oneiric-updates/main i386 Packages  
Hit oneiric-updates/restricted i386 Packages
Hit oneiric-updates/universe i386 Packages
Hit oneiric-updates/multiverse i386 Packages
Hit oneiric-updates/main TranslationIndex
Hit oneiric-updates/multiverse TranslationIndex
Hit oneiric-updates/restricted TranslationIndex
Hit oneiric-updates/universe TranslationIndex
Hit oneiric-backports/main Sources      
Hit oneiric-backports/restricted Sources
Hit oneiric-backports/universe Sources
Hit oneiric-backports/multiverse Sources
Hit oneiric-backports/main i386 Packages
Hit oneiric-backports/restricted i386 Packages
Hit oneiric-backports/universe i386 Packages
Hit oneiric-backports/multiverse i386 Packages
Hit oneiric-backports/main TranslationIndex
Hit oneiric-backports/multiverse TranslationIndex
Hit oneiric-backports/restricted TranslationIndex
Hit oneiric-backports/universe TranslationIndex
Hit oneiric/main Translation-en         
Hit oneiric/multiverse Translation-en
Hit oneiric/restricted Translation-en
Hit oneiric/universe Translation-en
Hit oneiric-updates/main Translation-en
Hit oneiric-updates/multiverse Translation-en
Hit oneiric-updates/restricted Translation-en
Hit oneiric-updates/universe Translation-en
Hit oneiric-backports/main Translation-en
Ign oneiric/main Translation-en_US
Ign oneiric/partner Translation-en_US
Hit oneiric-backports/multiverse Translation-en
Hit oneiric-backports/restricted Translation-en
Ign oneiric/main Translation-en
Hit oneiric-backports/universe Translation-en
Ign oneiric/partner Translation-en
Fetched 2,310 B in 1s (1,432 B/s)
Reading package lists... Done

But the second step it fails:

tac@xps-L502X:~/PhpStorm-111.19/bin$ sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-plugin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package sun-java6-jre 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

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

E: Package 'sun-java6-jdk' has no installation candidate
E: Package 'sun-java6-jre' has no installation candidate
E: Unable to locate package sun-java6-plugin

I'm somewhat of a newbie to Unbuntu, what am I doing wrong?



Comment actions Permalink

See my reply at

For WebStorm/PhpStorm the only difference would be:

export WEBIDE_JDK=/path/to/jdk1.6.0_29

Comment actions Permalink

Try the steps in this post:

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin

Please sign in to leave a comment.