Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 attempting to upgrade (sudo apt-get upgrade) Ubuntu 12.04, I had a pair of packages that would throw the following apt-get install errors for the dbus dependency:

dpkg: error processing dbus (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of accountsservice:
 accountsservice depends on dbus; however:
  Package dbus is not configured yet.
dpkg: error processing accountsservice (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
share|improve this question
up vote 6 down vote accepted

The solutions provided for similar issues of dpkg returning an error is to use:

dpkg --configure -a
apt-get install -f

Both did not resolve the issue and produced the same error output. In some cases, aptitude may be a better option to use than apt-get. The solution is to use aptitude install -f:

aptitude install -f

Explanation: As a special case, aptitude install with no arguments will act on any stored/pending actions. When the -f option is given, aptitude will be more aggressive when attempting to fix the dependencies of broken packages, even if it means ignoring the actions requested on the command line.

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.