How to install i386 package under amd64 ubuntu/debian

13

2

So, how to install i386 package on amd64 under the ubuntu/debian multiarch environment?

This is the follow-up for Why I can't see Ubuntu restricted packages, where the sl-modem-daemon package doesn't have the amd64 but only i386 version in Ubuntu. Following https://askubuntu.com/questions/29665/how-do-i-apt-get-a-32-bit-package-on-a-64-bit-installation, I tried,

apt-get install sl-modem-daemon:i386

but still get the reply that package not found.

xpt

Posted 2014-04-14T02:53:29.553

Reputation: 5 548

Works on my machine. It is in restricted - did you enable that repository? – user55325 – 2014-04-14T04:59:40.407

No, so I guess the missing step is the "enabling that repository". How did you do that? – xpt – 2014-04-14T14:23:08.693

Start the "Software and Updates" tool (or go to the repository settings in Synaptic) and check the box called "Proprietary drivers for devices (restricted)". Then run apt-get update (if the package lists don't update automatically, which they might). – user55325 – 2014-04-14T21:48:47.573

As posted in http://superuser.com/questions/741368/why-i-cant-see-ubuntu-restricted-packages/741373, I've enabled the restricted repository (details there). Are you using i386 instead of Amd64?

– xpt – 2014-04-14T22:36:11.943

No, I'm using Kubuntu Saucy on amd64. Strange - if nothing else, assuming you have all the dependencies, you can always download the package and manually install it with dpkg -i --force-architecture. – user55325 – 2014-04-15T02:07:47.917

Answers

23

Found the answer in the Debian wiki (the ubuntu community MultiArch wiki is incomplete) -- https://wiki.debian.org/Multiarch/HOWTO. I.e., the step I'm missing is

To add an extra architecture (in Debian from dpkg 1.16.2 onwards):

dpkg --add-architecture <arch>

Having done that (and apt-get update of course), I'm now able to do apt-get install sl-modem-daemon:i386.

Thank you user55325 for riding the journey with me.

UPDATE: Found one that explains this explicitly:

How to enable 32-bit support for 64-bit Ubuntu 13.10 or greater
http://www.unixmen.com/enable-32-bit-support-64-bit-ubuntu-13-10-greater/

xpt

Posted 2014-04-14T02:53:29.553

Reputation: 5 548