Bug#633525: multistrap fails when aptsources not specified

July 11th, 2011 - 03:10 am ET by Wachholz, Ruediger | Report spam

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 <mtxdk@users.sourceforge.net<mailto:mtxdk@users.sourceforge.net>>
### 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.



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



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




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Neil Williams
July 11th, 2011 - 12:40 pm ET | Report spam

tag 633525 + pending
thanks

I've got a fix for this in SVN which will go into unstable and then
into Wheezy. I note you are using 2.1.7 from stable, so for improved
support of other bugs, you might want to use the recently backported
multistrap 2.1.15~bpo60 +1 (it doesn't have this fix) once it makes it
onto the mirrors.

http://lists.debian.org/debian-back...00430.html



Neil Williams
=
http://www.linux.codehelp.co.uk/







To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics