Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2013-06-14 08:34:35
Size: 2011
Comment:
Revision 5 as of 2013-06-14 14:41:01
Size: 2181
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#language en
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: none-~
----
Line 5: Line 8:
Please note this is still work in progress and re-installing is still safer.

== Links ==

 * [[https://lists.debian.org/debian-devel-announce/2012/03/msg00005.html|Announce by Guillem Jover, dpkg Maintainer]] (see "Cross-grading" at the bottom of the message)
 * [[http://blog.zugschlus.de/archives/972-How-to-amd64-an-i386-Debian-installation-with-multiarch.html|Howto amd64 an i386 Debian installation with multiarch]] by Marc Haber
Line 15: Line 11:

A full backup is also strongly recommended as this procedure is still very much work in progress. Reinstalling is still the safer option. You have been warned!
Line 52: Line 50:

== Credits ==

 * [[https://lists.debian.org/debian-devel-announce/2012/03/msg00005.html|Announce by Guillem Jover, dpkg Maintainer]] (see "Cross-grading" at the bottom of the message)
 * [[http://blog.zugschlus.de/archives/972-How-to-amd64-an-i386-Debian-installation-with-multiarch.html|Howto amd64 an i386 Debian installation with multiarch]] by Marc Haber

Translation(s): none


Cross-grading a Debian System

This page is meant to document the procedure for cross-grading a Debian install using Multiarch.

Pre-requisites

The first Debian release to feature Multiarch is Wheezy, so you will need to upgrade before attempting the procedure described here.

A full backup is also strongly recommended as this procedure is still very much work in progress. Reinstalling is still the safer option. You have been warned!

Steps

These are the steps for converting an i386 install to amd64, but they should be applicable for any other architecture pairs if your machine can run both (e.g. armel and armhf).

Add the new architecture

# dpkg --print-architecture
i386
# dpkg --add-architecture amd64
# dpkg --print-foreign-architectures
amd64
# apt-get update

Install a kernel capable to run the new architecture with the old architecture in userspace

# apt-get install linux-image-amd64:amd64
# reboot

Make sure you are actually running the new kernel before proceeding with the next steps (uname -a).

Crossgrade `dpkg` and `apt`

# apt-get --download-only install dpkg:amd64 apt:amd64
# dpkg --install /var/cache/apt/archives/*_amd64.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) it should be possible to remove the i386 package and install the amd64 version instead.

Credits