#590209 preinst fails if awk is unpacked but not configured

Package:
cdebootstrap
Source:
cdebootstrap
Description:
Bootstrap a Debian system
Submitter:
Goswin von Brederlow
Date:
2015-10-03 21:42:08 UTC
Severity:
important
#590209#5
Date:
2010-07-22 15:10:26 UTC
From:
To:
Hi,

when cdebootstraping an Ubuntu Lucid system initramfs-tools gets
installed now. The problem then is that at the point initramfs-tools
is unpacked the mawk package is unpacked but not configured. That
means the /usr/bin/awk alternative is not yet setup.

O: Selecting previously deselected package mawk.
O: dpkg: regarding .../mawk_1.3.3-15ubuntu2_amd64.deb containing mawk, pre-dependency problem:
O:  mawk pre-depends on libc6 (>= 2.11~20100104-0ubuntu3)
O:   libc6 is unpacked, but has never been configured.
O: dpkg: warning: ignoring pre-dependency problem!
O: Unpacking mawk (from .../mawk_1.3.3-15ubuntu2_amd64.deb) ...
P: Unpacking package mawk
D: Updating mawk to status 2
O: Selecting previously deselected package base-files.
O: dpkg: regarding .../base-files_5.0.0ubuntu20_amd64.deb containing base-files, pre-dependency problem:
O:  base-files pre-depends on awk
O:   mawk provides awk but is unpacked but not configured.
O: dpkg: warning: ignoring pre-dependency problem!
O: Unpacking base-files (from .../base-files_5.0.0ubuntu20_amd64.deb) ...
P: Unpacking package base-files
D: Updating base-files to status 2
...
O: Selecting previously deselected package initramfs-tools.
O: Unpacking initramfs-tools (from .../initramfs-tools_0.92bubuntu78_all.deb) ..
.
P: Unpacking package initramfs-tools
D: Updating initramfs-tools to status 2
O: /var/lib/dpkg/tmp.ci/preinst: 59:
O: awk: not found
O:
O: /var/lib/dpkg/tmp.ci/preinst: 59:
O: awk: not found
O:
O: dpkg: error processing /var/cache/bootstrap/initramfs-tools_0.92bubuntu78_all.deb (--unpack):
O:  subprocess new pre-installation script returned error exit status 127


While this could be blamed on cdebootstrap I think it might be a good
idea to fix initramfs-tools. The relevant command is

  awk ' { print $1 } '

which really does not need awk. "cut" would do instead and avoid the
rather probelamtic pseudo-essential awk issue.

MfG
	Goswin

#590209#12
Date:
2010-07-24 04:38:41 UTC
From:
To:
clone 589963 -1
reassign -1 cdebootstrap
severity 589963 minor
severity -1 important
thanks

Only because it's a cdebootstrap bug.  Unless you see something that causes
initramfs-tools to be pulled into the essential set (which I do not), this
is a cdebootstrap bug for not fulfilling the pre-depends of the essential
packages before continuing.

#590209#27
Date:
2015-10-03 17:47:09 UTC
From:
To:
 ❦ 24 juillet 2010 06:38 +0200, Steve Langasek <vorlon@debian.org> :

I am now running on this bug on Sid while I didn't hit it last
week. There has been an update of cdebootstrap in the meantime. I am
using the two-stage bootstrapping:

cdebootstrap --foreign --flavour=build sid /var/tmp/sid
chroot /var/tmp/sid /sbin/cdebootstrap-foreign

[...]
Unpacking mawk (1.3.3-17) over (1.3.3-17) ...
dpkg: regarding .../base-files_9.4_amd64.deb containing base-files, pre-dependency problem:
 base-files pre-depends on awk
  mawk provides awk but is unpacked but not configured.

dpkg: error processing archive /var/cache/bootstrap/base-files_9.4_amd64.deb (--install):
 pre-dependency problem - not installing base-files
[...]
Errors were encountered while processing:
 /var/cache/bootstrap/base-files_9.4_amd64.deb
Failed to run dpkg!

I can file a new bug if needed.

#590209#32
Date:
2015-10-03 17:47:09 UTC
From:
To:
 ❦ 24 juillet 2010 06:38 +0200, Steve Langasek <vorlon@debian.org> :

I am now running on this bug on Sid while I didn't hit it last
week. There has been an update of cdebootstrap in the meantime. I am
using the two-stage bootstrapping:

cdebootstrap --foreign --flavour=build sid /var/tmp/sid
chroot /var/tmp/sid /sbin/cdebootstrap-foreign

[...]
Unpacking mawk (1.3.3-17) over (1.3.3-17) ...
dpkg: regarding .../base-files_9.4_amd64.deb containing base-files, pre-dependency problem:
 base-files pre-depends on awk
  mawk provides awk but is unpacked but not configured.

dpkg: error processing archive /var/cache/bootstrap/base-files_9.4_amd64.deb (--install):
 pre-dependency problem - not installing base-files
[...]
Errors were encountered while processing:
 /var/cache/bootstrap/base-files_9.4_amd64.deb
Failed to run dpkg!

I can file a new bug if needed.

#590209#37
Date:
2015-10-03 21:40:15 UTC
From:
To:
 ❦  3 octobre 2015 19:47 +0200, Vincent Bernat <bernat@debian.org> :

I did file a new bug as this is not similar to the bug originally
reported (not a problem with awk symlink, only happens with two-stage
bootstrap).