Cross-grading a Debian System
This page is meant to document the procedure for cross-grading a Debian install using Multiarch.
Please note this is still work in progress and re-installing is still safer.
Announce by Guillem Jover, dpkg Maintainer (see "Cross-grading" at the bottom of the message)
Howto amd64 an i386 Debian installation with multiarch by Marc Haber
Steps (more or less copy-pasted from Guillem's mail)
# dpkg --print-architecture i386 # dpkg --add-architecture amd64 # dpkg --print-foreign-architectures amd64 # apt-get update # apt-get install linux-image-amd64:amd64 # reboot
Make sure you are running the amd64 kernel before proceeding with the next steps.
# apt-get download gcc-4.6-base:amd64 libgcc1:amd64 libc6:amd64 libselinux1:amd64 zlib1g:amd64 libbz2-1.0:amd64 dpkg:amd64 # dpkg -i *.deb # dpkg --print-architecture amd64 # dpkg --print-foreign-architectures i386
If you got this far you are now effectively running amd64, but with mostly i386 packages. You can try to replace them with the corresponding amd64 packages. If that doesn't work (it is expected that not all libraries will be converted to Multiarch in wheezy) simply remove the i386 package and install the amd64 version instead.