Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to install java using the WebUpd PPA.

After adding their PPA and updating, I try:

sudo apt-get install oracle-java7-installer

and it gives me an error

Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-java7-installer (--configure): subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing: oracle-java7-installer E: Sub-process /usr/bin/dpkg returned an error code (1)
share|improve this question
1  
There must be more error messages. Please post all of them here, now it's incomplete, it's just like saying "I have an error" with no more info. –  Javier Rivera Jul 12 '13 at 10:31
    
this is when i do sudo apt-get install oracle-java7-installer Oracle JDK 7 is NOT installed. dpkg: error processing oracle-java7-installer (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: oracle-java7-installer E: Sub-process /usr/bin/dpkg returned an error code (1) –  Taha Jul 12 '13 at 10:50
    
Is that all?. There is usually some more info telling why the post-installation script failed. Anyway, please in the future edit your question instead of adding info in the comments. –  Javier Rivera Jul 12 '13 at 10:52
    
You are probably following some tutorial and you have probably added some PPA (WebUpd8 likely), can you tell us for sure witch one?. –  Javier Rivera Jul 12 '13 at 10:54
    
I did this command sudo add-apt-repository ppa:webupd8team/java –  Taha Jul 12 '13 at 10:58
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.