Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

While trying to install openJDK to start installing netbeans 6.9 - I'm getting this:

The installation could have failed because of an error in the corresponding software package or it was cancelled in an unfriendly way. You have to repair this before you can install or remove any further software.

I read it... and I have no clue what to do next. :( how can we repair that?

I have forget openSDK and I'm trying the java one. All seems to go well... but know I'm stuck here: jdk on terminal

And here is the amazing question: How can I click or hit, or push or something, that OK?

Arrows, Page Up and Page Down work. Enter and Click don't.


K. Regards, MEM

share|improve this question
up vote 2 down vote accepted


sudo dpkg --configure -a


As the original message says, you have to repair the error (run the above command) regardless. However, if you do want to install the Sun JRE, you use tab to get to the OK.

share|improve this answer
Thanks. How more newbie can we get? Stuck on a screen... still how can we guess the tab? :s ;) Thanks. – MEM Aug 21 '10 at 2:55
@Mathew - About the command, and if you don't mind to reply, how does ubuntu knows that we are talking about a specific thing that goes wrong, and it's that that should be repaired and not something else? Thanks. – MEM Aug 21 '10 at 2:57
@MEM, the package management system (APT) keeps track of what packages still need to be configured. So it knows that the OpenJDK configuration hasn't finished successfully yet. – Matthew Flaschen Aug 21 '10 at 8:00

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.