pbuilder create fails on debootstrap

2005-08-17 Thread Maurits van Rees
Hello everyone,

I am playing around with Roberto Sanchez's Debian Package
Customization HOWTO on
http://familiasanchez.net/~roberto/?page=debcustomize.  This is
failing for me at the first step already: pbuilder create.

To capture the output I used the following line:

sudo pbuilder create  output.std 2 output.err

This results in almost as much error output as normal output, which
isn't too comforting:

$ wc -l output.*
  626 output.err
  760 output.std

output.err:

---
dpkg: base-passwd: dependency problems, but configuring anyway as you request:
 base-passwd depends on libc6 (= 2.3.2.ds1-4); however:
  Package libc6 is not installed.
dpkg: base-files: dependency problems, but configuring anyway as you request:
 base-files depends on awk; however:
  Package awk is not installed.
/var/lib/dpkg/info/base-files.postinst: line 8: /dev/null: Permission denied
/var/lib/dpkg/info/base-files.postinst: line 9: /dev/null: Permission denied
(...)
dpkg: libc6: dependency problems, but configuring anyway as you request:
 libc6 depends on libdb1-compat; however:
  Package libdb1-compat is not installed.
/var/lib/dpkg/info/libc6.postinst: line 97: /dev/null: Permission denied
/var/lib/dpkg/info/libc6.postinst: line 99: /dev/null: Permission denied
/var/lib/dpkg/info/libc6.postinst: line 1: /dev/null: Permission denied
/var/lib/dpkg/info/libc6.postinst: line 1: /dev/null: Permission denied
(...)
dpkg: warning - ignoring pre-dependency problem !
Errors were encountered while processing:
 /var/cache/apt/archives/bash_2.05b-26_i386.deb
 /var/cache/apt/archives/e2fsprogs_1.37-2sarge1_i386.deb
W: Failure while unpacking required packages.  This will be attempted up to 
five times.
umount: /var/cache/pbuilder/build/14648/./dev/pts: not found
umount: /var/cache/pbuilder/build/14648/./dev/shm: not found
umount: /var/cache/pbuilder/build/14648/./proc/bus/usb: not mounted
pbuilder: debootstrap failed


output.std looks better of course and starts like this:

W: /home/maurits/.pbuilderrc does not exist
Distribution is sarge.
Building the build environment
 - running debootstrap
I: Retrieving debootstrap.invalid_dists_sarge_Release
I: Validating debootstrap.invalid_dists_sarge_Release
I: Retrieving debootstrap.invalid_dists_sarge_main_binary-i386_Packages
I: Validating debootstrap.invalid_dists_sarge_main_binary-i386_Packages
I: Checking apt...
I: Checking base-files...

and ends with:

Preparing to replace zlib1g 1:1.2.2-4 (using .../zlib1g_1%3a1.2.2-4_i386.deb) 
...
Unpacking replacement zlib1g ...
 - Aborting with an error
 - cleaning the build env
- removing directory /var/cache/pbuilder/build//14648 and its 
subdirectories

After all is done I am left with just the two files mentioned and
nothing else, so it doesn't quite work for me.  My system is sarge and
the system I try to let pbuilder create is also sarge.



The uncommented lines from /etc/pbuilderrc are:

BASETGZ=/var/cache/pbuilder/base.tgz
BUILDPLACE=/var/cache/pbuilder/build/
MIRRORSITE=ftp://download.xs4all.nl/pub/mirror/debian/
USEPROC=yes
USEDEVPTS=yes
USEDEVFS=no
BUILDRESULT=/var/cache/pbuilder/result/
DISTRIBUTION=sarge
APTCACHE=/var/cache/pbuilder/aptcache/
APTCACHEHARDLINK=yes
REMOVEPACKAGES=lilo
HOOKDIR=
export DEBIAN_FRONTEND=noninteractive
DEBEMAIL=Maurits van Rees [EMAIL PROTECTED]
BUILDSOURCEROOTCMD=fakeroot
PBUILDERROOTCMD=sudo
DEBBUILDOPTS=-mMaurits van Rees [EMAIL PROTECTED]
APTCONFDIR=/etc/apt/
BUILDUSERID=1234
DEBOOTSTRAPOPTS[0]='--variant=buildd'

I tried this a while ago as well, tried some different settings, tried
as root, tried adding ~/.pbuilderrc, tried adding --extrapackages
libc6 awk dselect libdb1-compat to the command line, as pbuilder
complained about these packages, but the output indicated that they
were being installed even without that addition.

Is there something wrong with the /dev that is being build?  I tried
adding BINDMOUNTS=/dev but that didn't work out.

What could be wrong?  I would appreciate any help.

-- 
Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands] 
Public GnuPG key:  http://maurits.vanrees.org/var/gpgkey.asc
It can seem like you're doing just fine,
but the creep's creeping into your mind. - Neal Morse


signature.asc
Description: Digital signature


Re: pbuilder create fails on debootstrap

2005-08-17 Thread Jon Dowland
On Wed, Aug 17, 2005 at 04:44:37PM +0200, Maurits van Rees wrote:
 What could be wrong?  I would appreciate any help.

It may or may not be related, but there's a thread in -devel atm about
pbuilder being broken for unstable chroots. Try explicitly specifying
either stable or testing. If you want sid, the recommended approach is
to start with testing then update it to sid.

-- 
Jon Dowland   http://jon.dowland.name/
FD35 0B0A C6DD 5D91 DB7A  83D1 168B 4E71 7032 F238


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: pbuilder create fails on debootstrap

2005-08-17 Thread Kevin Coyner


On Wed, Aug 17, 2005 at 04:44:37PM +0200, Maurits van Rees wrote..

 I am playing around with Roberto Sanchez's Debian Package
 Customization HOWTO on
 http://familiasanchez.net/~roberto/?page=debcustomize.  This is
 failing for me at the first step already: pbuilder create.

Have a look at this:

http://lists.debian.org/debian-devel/2005/07/msg00649.html

... which is a workaround.  Essentially create a stable chroot
first, then upgrade it to unstable.

Keivn

-- 
Kevin Coyner  GnuPG key: 1024D/8CE11941  http://rustybear.com/publickey


signature.asc
Description: Digital signature


Re: pbuilder create fails on debootstrap

2005-08-17 Thread Maurits van Rees
On Wed, Aug 17, 2005 at 03:56:13PM +0100, Jon Dowland wrote:
 It may or may not be related, but there's a thread in -devel atm about
 pbuilder being broken for unstable chroots. Try explicitly specifying
 either stable or testing. If you want sid, the recommended approach is
 to start with testing then update it to sid.

AFAICT that thread is unrelated.

I want sarge/stable.  I tried specifying stable just now, but that
results in an error:

E: No such script: /usr/lib/debootstrap/scripts/stable.buildd

In that directory are only files with sarge, woody, etcetera.  I'll
stick to sarge then.

Thanks for trying though.

-- 
Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands] 
Public GnuPG key:  http://maurits.vanrees.org/var/gpgkey.asc
It can seem like you're doing just fine,
but the creep's creeping into your mind. - Neal Morse


signature.asc
Description: Digital signature


Re: pbuilder create fails on debootstrap

2005-08-17 Thread Maurits van Rees
On Wed, Aug 17, 2005 at 01:06:11PM -0400, Kevin Coyner wrote:
 Have a look at this:
 
 http://lists.debian.org/debian-devel/2005/07/msg00649.html
 
 ... which is a workaround.  Essentially create a stable chroot
 first, then upgrade it to unstable.

And how do I create a stable chroot?  *That* is the part that is not
working for me.  :( At the moment I just want a stable chroot and
don't want to play yet with unstable.

-- 
Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands] 
Public GnuPG key:  http://maurits.vanrees.org/var/gpgkey.asc
It can seem like you're doing just fine,
but the creep's creeping into your mind. - Neal Morse


signature.asc
Description: Digital signature


Re: pbuilder create fails on debootstrap

2005-08-17 Thread Kevin Coyner


On Wed, Aug 17, 2005 at 07:54:20PM +0200, Maurits van Rees wrote..

 On Wed, Aug 17, 2005 at 01:06:11PM -0400, Kevin Coyner wrote:
  Have a look at this:
  
  http://lists.debian.org/debian-devel/2005/07/msg00649.html
  
  ... which is a workaround.  Essentially create a stable chroot
  first, then upgrade it to unstable.
 
 And how do I create a stable chroot?  *That* is the part that is
 not working for me.  :( At the moment I just want a stable chroot
 and don't want to play yet with unstable.


Oops.  Missed the fact that you were trying to build stable at first
even though it was clearly stated in your first email.

In looking closer at your first email, I noticed you set:

APTCONFDIR=/etc/apt/   in your .pbuilderrc file

... which means the apt sources will be copied from your setup.  The
default is to leave this blank.  Do you have anything unordinary in
your sources.list?

Kevin

-- 
Kevin Coyner  GnuPG key: 1024D/8CE11941  http://rustybear.com/publickey


signature.asc
Description: Digital signature


Re: pbuilder create fails on debootstrap

2005-08-17 Thread Maurits van Rees
On Wed, Aug 17, 2005 at 03:45:10PM -0400, Kevin Coyner wrote:
 In looking closer at your first email, I noticed you set:
 
 APTCONFDIR=/etc/apt/   in your .pbuilderrc file
 
 ... which means the apt sources will be copied from your setup.  The
 default is to leave this blank.  Do you have anything unordinary in
 your sources.list?

Not really, I would say.  Well, worth a try to remove that line from
/etc/pbuilderrc.  Nope, no change. :-/ I'll comment out some other
settings and try again.

-- 
Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands] 
Public GnuPG key:  http://maurits.vanrees.org/var/gpgkey.asc
It can seem like you're doing just fine,
but the creep's creeping into your mind. - Neal Morse


signature.asc
Description: Digital signature


Re: pbuilder create fails on debootstrap

2005-08-17 Thread Maurits van Rees
On Wed, Aug 17, 2005 at 10:13:57PM +0200, Maurits van Rees wrote:
 Not really, I would say.  Well, worth a try to remove that line from
 /etc/pbuilderrc.  Nope, no change. :-/ I'll comment out some other
 settings and try again.

I tried with the following uncommented and non empty lines in both
/etc/pbuilderrc and ~/.pbuilderrc:

mauritsvanrees:~# cat .pbuilderrc | grep -v ^$ | grep -v #
MIRRORSITE=ftp://download.xs4all.nl/pub/mirror/debian/
DISTRIBUTION=sarge
export DEBIAN_FRONTEND=noninteractive
BUILDSOURCEROOTCMD=fakeroot
PBUILDERROOTCMD=sudo
DEBBUILDOPTS=-mMaurits van Rees [EMAIL PROTECTED]

It still doesn't work.

-- 
Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands] 
Public GnuPG key:  http://maurits.vanrees.org/var/gpgkey.asc
It can seem like you're doing just fine,
but the creep's creeping into your mind. - Neal Morse


signature.asc
Description: Digital signature


Re: pbuilder create fails on debootstrap

2005-08-17 Thread Roberto C. Sanchez
On Wed, Aug 17, 2005 at 04:44:37PM +0200, Maurits van Rees wrote:
 Hello everyone,
 
 I am playing around with Roberto Sanchez's Debian Package
 Customization HOWTO on
 http://familiasanchez.net/~roberto/?page=debcustomize.  This is
 failing for me at the first step already: pbuilder create.
 
Hi Maurits,

Thanks for taking the time.

 To capture the output I used the following line:
 
 sudo pbuilder create  output.std 2 output.err
 
 This results in almost as much error output as normal output, which
 isn't too comforting:
 
 $ wc -l output.*
   626 output.err
   760 output.std
 
 output.err:
[SNIP error output]
 
 The uncommented lines from /etc/pbuilderrc are:
 
 BASETGZ=/var/cache/pbuilder/base.tgz
 BUILDPLACE=/var/cache/pbuilder/build/
 MIRRORSITE=ftp://download.xs4all.nl/pub/mirror/debian/
 USEPROC=yes
 USEDEVPTS=yes
 USEDEVFS=no
 BUILDRESULT=/var/cache/pbuilder/result/
 DISTRIBUTION=sarge
 APTCACHE=/var/cache/pbuilder/aptcache/
 APTCACHEHARDLINK=yes
 REMOVEPACKAGES=lilo
 HOOKDIR=
 export DEBIAN_FRONTEND=noninteractive
 DEBEMAIL=Maurits van Rees [EMAIL PROTECTED]
 BUILDSOURCEROOTCMD=fakeroot
 PBUILDERROOTCMD=sudo
 DEBBUILDOPTS=-mMaurits van Rees [EMAIL PROTECTED]
 APTCONFDIR=/etc/apt/
 BUILDUSERID=1234
 DEBOOTSTRAPOPTS[0]='--variant=buildd'
 
 I tried this a while ago as well, tried some different settings, tried
 as root, tried adding ~/.pbuilderrc, tried adding --extrapackages
 libc6 awk dselect libdb1-compat to the command line, as pbuilder
 complained about these packages, but the output indicated that they
 were being installed even without that addition.
 
 Is there something wrong with the /dev that is being build?  I tried
 adding BINDMOUNTS=/dev but that didn't work out.
 
 What could be wrong?  I would appreciate any help.
 

I am inclined to think that the comment someone else made further up in
the thread about the APTCONFDIR setting was right.  Make sure that there
is not a base.tgz alread there, remove or comment out the APTCONFDIR
variable and try it again.

Also, make sure that you are running at least pbuilder version 0.128.
When I was on IRC a few days ago, Junichi (the developer/maintainer of
pbuilder) said that it was really necessary to upgrade as there were
problems with the older versions.  Personally, I have version 0.128 and
was able to create a new pbuilder chroot just now with a configuration
that is functionally the same as yours.

-Roberto
-- 
Roberto C. Sanchez
http://familiasanchez.net/~roberto


pgp8btyHMNeSf.pgp
Description: PGP signature


Re: pbuilder create fails on debootstrap

2005-08-17 Thread Maurits van Rees
Hi Roberto,

On Wed, Aug 17, 2005 at 04:36:16PM -0400, Roberto C. Sanchez wrote:
 I am inclined to think that the comment someone else made further up in
 the thread about the APTCONFDIR setting was right.  Make sure that there
 is not a base.tgz alread there, remove or comment out the APTCONFDIR
 variable and try it again.

No, that wasn't it.  See my reply to that message that probably
arrived by now.

 Also, make sure that you are running at least pbuilder version 0.128.
 When I was on IRC a few days ago, Junichi (the developer/maintainer of
 pbuilder) said that it was really necessary to upgrade as there were
 problems with the older versions.  Personally, I have version 0.128 and
 was able to create a new pbuilder chroot just now with a configuration
 that is functionally the same as yours.

Since my system is sarge and the base.tgz I want to create is also
sarge I am hoping that I can just do that with the pbuilder that comes
with sarge, which is 0.123...

Meanwhile I notice a bug report called pbuilder: cannot build sarge
basetgz: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=316135.
That's for version 0.127, but might help me too.  My /var partition is
mounted nodev.  I'll remount it dev and see if that helps.

-- 
Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands] 
Public GnuPG key:  http://maurits.vanrees.org/var/gpgkey.asc
It can seem like you're doing just fine,
but the creep's creeping into your mind. - Neal Morse


signature.asc
Description: Digital signature


[Solved] Re: pbuilder create fails on debootstrap

2005-08-17 Thread Maurits van Rees
On Wed, Aug 17, 2005 at 11:15:00PM +0200, Maurits van Rees wrote:
 Meanwhile I notice a bug report called pbuilder: cannot build sarge
 basetgz: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=316135.
 That's for version 0.127, but might help me too.  My /var partition is
 mounted nodev.  I'll remount it dev and see if that helps.

And of course that solved it.  :) I now have a shiny new
/var/cache/pbuilder/base.tgz which looks fine.  Thanks for thinking
with me, everyone!

-- 
Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands] 
Public GnuPG key:  http://maurits.vanrees.org/var/gpgkey.asc
It can seem like you're doing just fine,
but the creep's creeping into your mind. - Neal Morse


signature.asc
Description: Digital signature