Manually removing a corruped .deb install

I was getting this error, on a corruped install of a debian package.
""The package 'printers-bangalore' is in an inconsistent state and needs to be reinstalled, but no archive can be found for it. Please reinstall the package manually or remove it from the system"

To solve this issue, I followed these steps.

1) I edited /var/lib/dpkg/status and remove all references of that package. (Note that this is a tricky step; in my case it was simple)

2) sudo dpkg --configure -a

1 comment:

Anonymous said...

I love you man
Been looking all over the net, installed a bad 64 bit version of flash and this was able to remove it when nothing else would,
Cool!