Bug#589963: preinst fails if awk is unpacked but not configured
Package: initramfs-tools
Version: 0.96.1
Severity: normal
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
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31.6-xen-2010.02.18 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages initramfs-tools depends on:
ii cpio 2.11-4 GNU cpio -- a program to manage ar
ii findutils 4.4.2-1 utilities for finding files--find,
ii klibc-utils 1.5.18-1 small utilities built with klibc f
ii module-init-tools 3.12~pre2-3 tools for managing Linux kernel mo
ii udev 157-1 /dev/ and hotplug management daemo
Versions of packages initramfs-tools recommends:
ii busybox 1:1.15.3-1 Tiny utilities for small and embed
initramfs-tools suggests no packages.
-- no debconf information
Reply to: