Fix problem with broken package that cannot be uninstalled in Ubuntu
During an update some package broke and caused apt-get to throw a fit. I could't remove the package, nor could I update it. It was really annoying, as no update would work, as long as this broken package was there.
If you got a similar problem, first try:
sudo apt-get autoclean
and then
sudo apt-get -f install
If that doesn't fix the problem:
Open /var/lib/dpkg/status, then remove the info about every package causing the issue. Make sure you really deleted all instances, then reinstalled the package(s) along with all dependencies, so all (broken) files are overwritten. After that, you could do a full uninstall, if that was you intention
887