[Bug 1376590] Re: dpkg postinst uses awk before it exists during bootstrap

Adam Conrad adconrad at 0c3.net
Sun Apr 26 23:29:04 UTC 2015


FWIW, this feels a bit like a bug/misfeature in cdebootstrap that it
doesn't run postinsts in the same order as debootstrap (which doesn't
show this bug).  Being gross-hack-for-gross-hack compatible would seem
like a worthwhile goal.

Then again, having a base system that's more robust against gross hacks
being incompatible would also be a good thing. :P

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/1376590

Title:
  dpkg postinst uses awk before it exists during bootstrap

Status in dpkg package in Ubuntu:
  Fix Released
Status in dpkg source package in Trusty:
  Won't Fix
Status in dpkg source package in Utopic:
  Won't Fix

Bug description:
  O: Setting up dpkg (1.17.5ubuntu5.3) ...
  P: Configuring package dpkg
  D: Updating dpkg to status 3
  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 (>= 2.1.0); 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: /var/lib/dpkg/info/dpkg.postinst: 79: /var/lib/dpkg/info/dpkg.postinst: awk: not found
  O: dpkg: error processing package 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

  
  The problem is that awk is a symlink to either mawk or gawk that is setup in their postinst script. But during bootstrap none of them have run yet so the link does not exist.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1376590/+subscriptions



More information about the foundations-bugs mailing list