I was trying to get a game working. But I have Lucid Lynx on amd64 running while the game binary was 32 bit (no 64 bit version available and nobody was in the mood for recompiling). It lacked libfsml-windows1.5 to run, and apt-getting it failed. So I have to manually download the i386 packages and force install them. (No, not part of ia32libs.)

Now I'm wondering if there is an automated way to have x86 packages downloaded at least on a 64-bit installation. apt-get -o apt::architecture=i386 did not work. (If you switch the architecture mode it doesn't find the package or assumes missing dependencies for existing packages all around.)

Is there another tool to automate that? Possibly one which downloads the i386 packages and relocates contained libraries into /usr/lib32/ implicitely?

link|improve this question

75% accept rate
I could think of only ia32-libs using apt-get install. – Jamess Mar 9 '11 at 16:44
feedback

3 Answers

Yes having chroot environment is the way to go, it allows even to have previous releases side by side your existing ubuntu.

It is simple to do it;

sudo apt-get install debootstrap schroot

Edit /etc/schroot/schroot.conf and add a new schroot config:

[lucid32]
type=directory
description=Ubuntu Lucid 32bit
directory=/chroot/lucid32
users=your-user
root-groups=root
personality=linux32

Then install the chroot environment:

sudo debootstrap --variant=buildd --arch i386 lucid /chroot/lucid32 http://nl.archive.ubuntu.com/ubuntu

Then enter the chroot with:

schroot -c lucid32

Or for root tasks e.g.: run apt-get tasks:

sudo schroot -c lucid32
link|improve this answer
I already have two chroot setups, but considered it a bit overkill for the task at hand. But thanks for the howto! – mario Mar 9 '11 at 22:10
feedback
up vote 3 down vote accepted

Silly me. That's indeed a solved problem.

getlibs

As the name implies it can only install libraries, not applications. But it works exceptionally well for bolting 32-bit libraries onto a x86-64 system. It automates the download and installation into /usr/lib32 (let's assume it does the path substitution internally.)

ppa:jcollins/jaminppa
https://launchpad.net/~jcollins/+archive/jaminppa/+packages

Some documentation (getlibs doesn't seem to have a current homepage):
http://ubuntuforums.org/showthread.php?t=474790
https://help.ubuntu.com/community/32bit_and_64bit
http://www.dedoimedo.com/computers/ubuntu-utils.html
http://wiki.ubuntuusers.de/getlibs (in german)

link|improve this answer
feedback

Force installing the 32 bit libs on a 64bit system will break your system. You need to setup a 32bit chroot. See http://ubuntuforums.org/showthread.php?t=24575.

link|improve this answer
Thanks for the idea. Already have a /hardy and /maverick chroot, but 64bit too. It seems a bit overkill for this issue, but it's certainly an option to keep in mind. – mario Mar 9 '11 at 22:11
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.