Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

I've tried to install emacs on Ubuntu server 64bit 11.04, but it's complaining about emacs23-common. If I do:

sudo apt-get -f install

I still see the same problem:

Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

How can I solve this situation?

share|improve this question
The actual error message from dpkg should be a few lines above the "Errors were encountered ..." line. Can you please post it? It will help figuring out what's actually wrong. – Riccardo Murri Jun 29 '11 at 12:49
It would also help to post the output of apt-cache policy packagenames where packagenames are the relevent packages (target/dependencies etc). – Faheem Mitha Jun 29 '11 at 14:20
up vote 1 down vote accepted

try a

sudo apt-get clean

your local repository may be out of date

share|improve this answer

As has been stated in the comments, more information is needed to accurately diagnose your problem.

I may be misinformed, but my understanding is that aptitude has better dependency resolution than regular old apt-get. You could try aptitude?

share|improve this answer
The error message refers to something that dpkg didn't like during the installation of package emacs23-common. So it's not dependency resolution that is failing, it's the actual installation of the package. – Riccardo Murri Jun 30 '11 at 7:44

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.