Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am unable to add/remove any packages in ubuntu karmic

I keep getting the following

Errors were encountered while processing:
crossplatfromui
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
1  
Is that the only output it gives, feel free to include all the output that you get. –  Rory May 9 '10 at 12:08

3 Answers 3

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

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

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

Your Answer

 
discard

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