fmouse
September 21st, 2010, 05:41 PM
I recently upgraded to lucid from a previous Ubuntu version on a laptop. The hard drive on the laptop is old, with only 20G or so of drive space, and I ran out of drive space at one point, which threw the upgrade off track. To make more space, I manually (at the CLI) deleted a lot of stuff, such as old /lib/module hierarchies, downloaded and previously installed packages, kernel header and source trees and such. I've since gotten things working pretty well, however I have some inconsistencies in the package database which I'd like to get rid of. Everything I try on these returns an error and nothing gets changed. For example, I have the linux-ubuntu-modules-2.6.24-26-386 package installed, and aptitude shows the state as "H" (half installed) and the action as "d" (marked for deletion), but I can neither fully delete it nor fully install it. The .deb is gone, although the postrm script is still there.
What do I need to do to clean up the dpkg database and get rid of references to these packages?
What do I need to do to clean up the dpkg database and get rid of references to these packages?