Server Fault is a question and answer site for system and network administrators. 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 am unable to add/remove any packages in ubuntu karmic

I keep getting the following

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

What do I do to completely remove this package ?

share|improve this question
Do something like dpkg -D776 -r crossplatfromui and post the output. – Vi. Apr 7 '10 at 2:18
Is that the only output it gives, feel free to include all the output that you get. – Rory May 9 '10 at 12:08

Try this:

rm /var/lib/dpkg/info/crossplatfromui.{pre,post}rm
dpkg -r crossplatfromui
share|improve this answer
Thanks for that little bit of info. It helped. – apesa May 8 '13 at 2:10

dpkg --purge thePackage

That also removes configuration files.. just use --remove if you want to keep them.

However, I still have the same problem. It keeps on coming back when i try to install a package i need. Perhaps i've fudged my system.. ;)

Where can i find a list of what the error codes mean?

share|improve this answer

To figure out what an error code means do this:

bash $ perror 1

but normally you get the error exact same error and code when you are debugging anyways!

share|improve this answer
The exit code of an application is not the same as an errno. So this wouldn't do anything useful in this case. – Michael Hampton Nov 26 '12 at 22:28

Your Answer


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