Package: multistrap
Version: 2.2.1
Severity: normal

Creating an arm64 foreign chroot with the attached config file (on an
amd64 machine) results in a file /etc/dpkg/dpkg.cfg.d/multiarch being created,
containing:
foreign-architecture armhf

This is fatal to the operation of the dpkg 1.17.26 also installed in
that chroot, which just says 'unrecognised option'. And indeed
--foreign-architecture is not a dpkg option

This option was removed in 2011 (to be replaced by the
--add-foreign-architecture and --remove-foreign-architectures interface)

Once the file is removed dpkg works (and knows what its foreign
architectures are) 

I think multistrap should just stop writing that file. It is probably
still correct for creating some very old chroots, but definitely wrong
for jessie or later.

I'll test this.

config:

[General]
arch=arm64
cleanup=true
unpack=true
noauth=true
bootstrap=Jessie
aptsources=Jessie
multiarch=arm64 armhf

[Jessie]
packages=locales net-tools nfs-common apt nano iputils-ping openssh-server 
dialog netbase systemd kmod dhcpcd5 xorg xfce4-t
erminal openbox weston libgl1-mesa-dri python vim libgcc1 libc6
source=http://debian-mirror.cambridge.arm.com/debian
keyring=debian-archive-keyring
suite=jessie

Reply via email to