dpkg postinst fails during cdebootstrap

Bug #1291263 reported by Tor Krill
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cdebootstrap (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

The migrate_multiarch_conffile() in dpkg, 1.16.12ubuntu1, postinst breaks cdebootstrap since it uses awk which is provided by mawk but not yet configured.

Running

sudo cdebootstrap --debug -f minimal saucy ./root http://ftp.acc.umu.se/mirror/ubuntu

on a fresh ubuntu 13.10 install ends with:

O: Unpacking dpkg (from .../dpkg_1.16.12ubuntu1_amd64.deb) ...
P: Unpacking package dpkg
D: Updating dpkg to status 2
O: dpkg: dpkg: dependency problems, but configuring anyway as you requested:
O: dpkg depends on libbz2-1.0; however:
O: Package libbz2-1.0 is not installed.
O: dpkg depends on libc6 (>= 2.14); however:
O: Package libc6 is not installed.
O: dpkg depends on liblzma5 (>= 5.1.1alpha+20120614); however:
O: Package liblzma5 is not installed.
O: dpkg depends on libselinux1 (>= 1.32); however:
O: Package libselinux1 is not installed.
O: dpkg depends on zlib1g (>= 1:1.1.4); however:
O: Package zlib1g is not installed.
O: dpkg depends on tar (>= 1.23); however:
O: Package tar is not installed.
O:
O: Setting up dpkg (1.16.12ubuntu1) ...
P: Configuring package dpkg
D: Updating dpkg to status 3
O: /var/lib/dpkg/info/dpkg.postinst: 78: /var/lib/dpkg/info/dpkg.postinst: awk: not found
O: dpkg: error processing dpkg (--install):
O: subprocess installed post-installation script returned error exit status 127
O: Errors were encountered while processing:
O: dpkg
D: Status: 256
E: Internal error: install

Revision history for this message
Jörg Frings-Fürst (jff-de) wrote :

Hi,

####
awk: not found
####

Please install one of the awk - packages and run it again

If after that the bug exists change the status of the bug to 'Confirmed'.

Jörg

Changed in dpkg (Ubuntu):
status: New → Invalid
affects: dpkg (Ubuntu) → cdebootstrap (Ubuntu)
Revision history for this message
Tor Krill (tor-krill) wrote :

Hi,

Awk (gawk) is installed on the host system but is not used when cdebootstrapping, instead it tries to use the half installed gawk in the root filesystem. Unfortunately the symlinks from gawk to awk has not yet been setup and thus postinst fails. If i understand correctly dpkg which is an essential package should not depend on a non essential package aka awk.

There are a lot of similar problems on this topic, see for example on this https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420799 or more generic https://www.google.se/#q=cdebootstrap+awk

Changed in cdebootstrap (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Bhavani Shankar (bhavi) wrote :

Closing this bug as Saucy is no longer supported in the latest version in the archives.

If anyone would experience same problem as a regression against the latest version in the archives, Request them to raise a new bug, which can be worked upon.

Regards
Bhavi

Changed in cdebootstrap (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.