Help me recover from switching back and forth between apt-get and aptitude in Debian.
I recently started using aptitude instead of apt-get to manage packages on my Debian installation (testing, with some apt-pinning from unstable). Only afterwards did I discover that this is something of a bad idea; apt-get now complains about hash sum mismatches whenever I do:
# apt-get update
and aptitude refuses to do much of anything when I do:
# aptitude update && aptitude upgrade
although it does load the various repositories. Distressingly, neither
# apt-cache policy packagename
nor
# aptitude versions packagename
return any information about the repository that a given package was installed from.
Is there anything I can do to resolve this without reinstalling the system (something I can do as a last resort, since everything's backed up, but it'd be a pain)? And if I do manage to clear it up, which should I be using (presumably to the exclusion of the other) in the future, apt-get or aptitude?
Good luck. Sounds like the kind of mess I find myself in on a regular basis, a little bit of knowledge being a dangerous thing.
posted by Stagger Lee at 10:17 AM on May 16, 2011