Multiarch: How To Use 32bit Packages On A 64bit System (Debian 7 Wheezy)

Want to support HowtoForge? Become a subscriber!
 
Submitted by planet_fox (Contact Author) (Forums) on Wed, 2013-06-19 17:26. :: Debian

Multiarch: How To Use 32bit Packages On A 64bit System (Debian 7 Wheezy)

Version 1.0
Author: PlaNet Fox
Follow me on Twitter
Last edited 06/06/2013

On Debian Wheezy, it is now possible to run a i386-linux-gnu application on an amd64-linux-gnu system. This is called Multiarch and refers to the capability of a system to install and run applications of multiple different binary targets on the same system.

On the old Debian Squeeze you had to install the package ia32-libs to get support for i386 packages on an AMD64 system. On Debian Wheezy this is different, you must add the architecture i386 with this command:

dpkg --add-architecture i386

Then run this:

apt-get update

You can now install packages that exist only in a 32bit version.

If you later install packages that have their own package server (instead of the official Debian repos) which only supports 64bit packages and not 32bit packages, you might get an error. You therefore have to add [arch=amd64] to your /etc/apt/sources.list.

Example for Proxmox:

# PVE packages provided by proxmox.com
deb [arch=amd64] http://download.proxmox.com/debian wheezy pve

When you run

apt-get update

then you can install Proxmox without problems.

 

Links:

Debian Multiarch
Proxmox
PlaNet Fox


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Sergio (not registered) on Tue, 2013-10-15 15:26.
Era lo que buscaba, efectivamente en Wheezy cambio la manera de instalar paquetes i386 en sistemas amd64.

dpkg --add-architecture i386

apt-get update

apt-get install apackage i386

 Si tienes cualquier problema de dependencias ~$ apt-get -f install

Submitted by Ken Hough (not registered) on Mon, 2013-08-26 15:33.

Sorry to disagree, but your instructions for running 32bit software under 64bit Debian Wheezy do not seem to work.

After following your instructions, my 64bit Wheezy system still would not recognise 32bit software (eg firefox and Adobe Reader)

It was only after I installed packages 'ia32libs' and 'ia32libs-gtk' (via synaptic) that it all worked correctly.

 

 

Submitted by Kurt (not registered) on Sun, 2013-06-23 05:49.
Wish I had known this before installing and setting up a Debian Wheezy based distro.  I used my notes for installing 32-bit apps under Squeeze for Wheezy.