On 14/07/11 11:44, Tony van der Hoff wrote:
Due to a combination of fiddling and finger-trouble I have contrived to delete part of my /var partition. Unfortunately, I have never thought to back up /var, being transient data... Big mistake!
For the archives, there is a useful script at http://linuxmafia.com/faq/Debian/package-database-rebuild.htmlwhich scans the /usr/share/doc directory for installed packages, and rebuilds the database from that.
Don't know yet how fully it's fixed, but it looks like I've got most of the database back; apt and synaptic at least are working ... phew!
Cheers, Tony