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
 default-jre depends on default-jre-headless (= 1:1.7-43ubuntu3); however:
  Package default-jre-headless is not installed.

dpkg: error processing default-jre (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-jdk:
 default-jdk depends on default-jre (= 1:1.7-43ubuntu3); however:
  Package default-jre is not configured yet.

dpkg: error processing default-jdk (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:

How can I solve this? Actually I had another problem ((Failing package manager?) ) and found a solution here, but then dpkg gives above error.

share|improve this question
up vote 0 down vote accepted

Just do the same as in the other question (Failing package manager?):

sudo apt-get update

sudo apt-get clean

sudo apt-get autoremove

sudo apt-get update && sudo apt-get upgrade

sudo dpkg --configure -a

sudo apt-get install -f

Edit: oops, sorry, you did already do that. I recommend to skip the dpkg --configure -a and first do apt-get install -f.

share|improve this answer

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.