+++ Michael Hope [2012-05-08 12:08 +1200]:
> On 8 May 2012 06:51, Marcin Juszkiewicz <marcin.juszkiew...@linaro.org> wrote:

> > echo 'foreign-architecture armel' >>/etc/dpkg/dpkg.cfg.d/multiarch
> > echo 'deb [arch=armel] http://ports.ubuntu.com/ precise main universe'
> >>/etc/apt/sources.list.d/armel.list
> > apt-get update
> > apt-get install libc6:armel
> 
> Ah, that's the magic.  The sources.list entry isn't needed as apt
> automatically includes any foreign architectures in the update.
> Probably only works as armhf is also on ports.ubuntu.com.

Excactly. You don't usually need an explicit deb [arch=foo,bar] line on Debian
because all arches are in the same repository, and apt will
automatically try using unqualified deb lines as sources for all
architectures (You do need to point at a server that actually mirror s
the arches you want - not all do). But you do usually need an explicit deb line 
on Ubuntu
because armel and armhf are in a different repo from the x86 stuff.

(I think - not actually checked with experiments on current code, but
that's my understanding). So in general marcin's advice is good and
the info on
https://wiki.linaro.org/MichaelHope/Sandbox/MultiarchWorkarounds won't
work if pointing at Ubuntu and haven't mentioned the ports line
already somewhere in the config. Putting both archive and ports in
unqualified will work, but every apt-get update will generate whinges
about missing files as it looks for amd64 on ports.u.c and arm* on
archive.u.c

Sadly this can't be automagically configured because of bug
https://bugs.launchpad.net/launchpad/+bug/645127

Wookey

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to