Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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:
 /var/cache/apt/archives/emacs23-common_23.2+1-7ubuntu2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

How can I solve this situation?

share|improve this question
5  
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
add comment

2 Answers 2

up vote 1 down vote accepted

try a

sudo apt-get clean

your local repository may be out of date

share|improve this answer
add comment

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
2  
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
add comment

Your Answer

 
discard

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.