I'm upgrading some Debian machines from i386 arch to amd64. The process is fairly straitforward:
- Boot a amd64 kernel
- For libraries which are multiarch-capable, install their amd64 companion libraries
- Manually install amd64 versions of dpkg and apt
- Start installing the amd64 versions of packages over their i386 counterparts
All of this goes fairly smoothly, and I've been able to write scripts which help, but then I run into a problem: When I run aptitude, it thinks that I still want to install the old i386 versions of everything (in addition to the amd64 versions). So, my aptitude screen looks something like:
ii iptables ...
pi iptables:i386 ...
ii iptraf ...
pi iptraf:i386 ...
So, packages like iptables:i386 will show as "purged, but marked for install". This leads to several hundred collisions. Up until now, I've just been going through, one-by-one, and de-selecting them. I didn't have much luck with my attempts at using "dpkg --set-selections"
So, the official question is: Does anybody know of a trick to "un-mark for install" (in aptitude) the i386 versions of every package which already has a amd64 version installed?