Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a custom package installed on my Ubuntu 10.10, and trying to remove it, I got:

$ sudo dpkg -r package
sub-process script post-installation installed returne an error state 127

(the message returned from the command was translated from portuguese(br).

So, I noted that on the installation script of this package, what it did was create an entry on my startup, create a folder on /opt and create a user.

I removed all it created. But now, I just want to remove it from dpkg list, because I want to make my linux like if I never installed this package.

How can I do this?

share|improve this question

migrated from stackoverflow.com Jun 10 '11 at 9:00

This question came from our site for professional and enthusiast programmers.

2 Answers 2

up vote 3 down vote accepted

This is what worked for me when I had a similar problem: http://superuser.com/questions/22110/how-to-fix-broken-synaptic-updates-package-is-in-a-very-bad-inconsistent-state/210764#210764 None of the other answers on that page worked for me.

PS you should have posted this to either superuser.com, askubuntu.com or serverfault.com.

share|improve this answer
    
sorry for the wrong place. I had to admit that I thought about asking it on askubuntu, but forgot about superuser. Still don`t use serverfault, for instance. Thank you! –  Gabriel L. Oliveira Apr 18 '11 at 7:39

You may need to manually remove the package using:

sudo dpkg --purge --force-all package

Replace package with the name of the package.

share|improve this answer
    
worked for me, thanks! –  Reut Sharabani Dec 10 '13 at 10:56

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.