Subject: multistrap fails when aptsources not specified
Package: multistrap
Version: 2.1.7
Severity: normal
*** Please type your report below this line ***
multistrap fails when aptsources is not specified within multistrap.conf:
# multistrap -f multistrap-occmp.conf
>> multistrap 2.1.7 using multistrap-occmp.conf
>> multistrap: No sources defined for a foreign multistrap.
>> Using your existing apt sources. To use different sources,
>> list them with aptsources= in 'multistrap-occmp.conf'.
>> Using foreign architecture: powerpcspe
>> multistrap building powerpcspe multistrap on 'i386'
>> INF: Setting ./lib64 -> ./lib symbolic link.
>> Getting package lists: [...]
>> E: Type 'ARRAY(0xa098de0)ARRAY(0xa098de0)' is not known on line 1 in
source list
/homes/nfs/multistrap/chroot/etc/apt/sources.list.d/multistrap.sources.list
>> E: Type 'ARRAY(0xa098de0)ARRAY(0xa098de0)' is not known on line 1 in
source list
/homes/nfs/multistrap/chroot/etc/apt/sources.list.d/multistrap.sources.list
>> E: The list of sources could not be read.
>> apt update failed. Exit value: 100
# cat
/homes/nfs/multistrap/chroot/etc/apt/sources.list.d/multistrap.sources.list
>> ARRAY(0xa098de0)ARRAY(0xa098de0)
# cat multistrap-occmp.conf
>> ###-*-conf-*-
>> ###
>> ### Configuration file for 'multistrap' to generate a debian sysroot from
>> ### official debian mirrors. Use it vor verifying DebParanoia, by
comparing
>> ### results against multistrap used with 'multistrap-debparanoia.conf'
>> ###
>> ### Author: Mtronix GmbH
<[email protected]<mailto:[email protected]>>
>> ### Created: Apr 2011
>> ###
>> ### Usage: mkdir -p packages-deb && multistrap -f multistrap-debian.conf
>>
>> [General]
>> # target cpu architecture:
>> arch=powerpcspe
>>
>> # output-directory for generated multistrap chroot:
>> directory=./chroot-powerpcspe
>>
>> # move packages outside of target chroot and collect source packages:
>> #retainsources=./packages-deb
>>
>> # remove apt cache data, downloaded Packages files and the apt package
cache:
>> cleanup=true
>>
>> # allow the use of unauthenticated repositories:
>> noauth=true
>>
>> # extract all downloaded archives (default is true):
>> unpack=true
>>
>> # ???
>> # whether to add the suite to be explicit about where apt
>> # needs to look for packages. (default is false):
>> explicitsuite=false
>>
>> # ???:
>> aptsources=occmp-unstable occmp-unreleased
>>
>> # list of target chroot sections to ...strap
>> # (order of sections not relevant)
>> bootstrap=occmp-unstable occmp-unreleased
>>
>>
>>
>> # definition of sections of the target chroot
>> # (multiple sections required if more than on suite is used [???])
>>
>> [occmp-unstable]
>> #source=http://ftp.de.debian.org/debian-ports
>> source=http://192.168.171.190/debian-ports_20110403T005802Z
>> suite=unstable
>> omitdebsrc=true
>> packages=ssh debootstrap build-essential fakeroot dpkg-dev apt-build
>>
>> [occmp-unreleased]
>> #source=http://ftp.de.debian.org/debian-ports
>> source=http://192.168.171.190/debian-ports_20110403T005802Z
>> suite=unreleased
>> omitdebsrc=true
>> packages=ssh debootstrap build-essential fakeroot dpkg-dev apt-build
It's easy to workaround this problem but as parameter aptsources seems not to
be mandatory
it would be nice if multistrap does not fail when the parameter is omitted.
-- System Information:
Debian Release: 6.0.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages multistrap depends on:
ii apt 0.8.10.3+squeeze1 Advanced front-end for dpkg
ii libconfig-auto-perl 0.20-2 Magical config file parser
ii libparse-debian-packag 0.01-2 parse the data from a Debian Packa
ii perl 5.10.1-17squeeze1 Larry Wall's Practical Extraction
ii realpath 1.15 Return the canonicalized absolute
Versions of packages multistrap recommends:
ii emdebian-archive-keyring 2.0.1 GnuPG archive keys for the emdebia
Versions of packages multistrap suggests:
ii fakeroot 1.14.4-1 Gives a fake root environment
-- no debconf information