MERGED_USR=yes breaks debootstrap of updated xenial distrib

Bug #1813923 reported by Frederic Van Espen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
debootstrap (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

The latest change of MERGED_USR=yes in bionic is causing failure to debootstrap an updated xenial chroot on bionic.

We have a mirror of ubuntu apt repositories where xenial, xenial-updates and xenial-security are merged into one distribution called xenial-updated-bootstrap. We do this to be able to debootstrap a fully up to date chroot.

The debootstrap command looks like this:
debootstrap --arch=amd64 --components=main --include=SOME_PACKAGES xenial-updated-bootstrap target/ http://mirror /usr/share/debootstrap/scripts/xenial

This results in the debootstrap failing with these errors:
W: Failure while installing base packages. This will be re-attempted up to five times.
W: See /data/foober/debootstrap/debootstrap.log for details (possibly the package /var/cache/apt/archives/kbd_1.15.5-1ubuntu5_amd64.deb is at fault)
I: Unpacking kbd...
W: Failure while installing base packages. This will be re-attempted up to five times.
W: See /data/foober/debootstrap/debootstrap.log for details (possibly the package /var/cache/apt/archives/kbd_1.15.5-1ubuntu5_amd64.deb is at fault)
W: Failure while installing base packages. This will be re-attempted up to five times.
W: See /data/foober/debootstrap/debootstrap.log for details (possibly the package /var/cache/apt/archives/kbd_1.15.5-1ubuntu5_amd64.deb is at fault)
W: Failure while installing base packages. This will be re-attempted up to five times.
W: See /data/foober/debootstrap/debootstrap.log for details (possibly the package /var/cache/apt/archives/kbd_1.15.5-1ubuntu5_amd64.deb is at fault)
W: Failure while installing base packages. This will be re-attempted up to five times.
W: See /data/foober/debootstrap/debootstrap.log for details (possibly the package /var/cache/apt/archives/kbd_1.15.5-1ubuntu5_amd64.deb is at fault)

In the debootstrap log I find these:
Unpacking kbd (1.15.5-1ubuntu5) ...
dpkg: error processing archive /var/cache/apt/archives/kbd_1.15.5-1ubuntu5_amd64.deb (--unpack):
 unable to open '/bin/dumpkeys.dpkg-new': No such file or directory
Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1.1) ...
dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb (--unpack):
 unable to install new version of '/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory

Even if I add --no-merged-usr option (which is supposed to be the default according to the man page) the debootstrap fails.

The version previously available in bionic works fine to debootstrap the updated xenial distribution.

Tags: xenial
description: updated
Ken Sharp (kennybobs)
tags: added: xenial
Revision history for this message
Ken Sharp (kennybobs) wrote :

> We do this to be able to debootstrap a fully up to date chroot.

debootstrap --arch=amd64 --components=main --include=SOME_PACKAGES --extra-suites=xenial-updates,xenial-security xenial target http://mirror

> Even if I add --no-merged-usr option (which is supposed to be the default according to the man page) the debootstrap fails.

case "$CODENAME" in
  gutsy|hardy|intrepid|jaunty|karmic|lucid|maverick|natty|oneiric|precise|quantal|raring|saucy|trusty|utopic|vivid|wily|xenial|yakkety|zesty|artful|bionic|cosmic) ;;
  *)
   # disco+ is merged-usr by default
   MERGED_USR=yes

In Focal & Jammy the opposite is true. You can change that script if you wish but Bionic is ESM only now.

However, all the debootstraps I tested with -updates and -security enabled fail and it has nothing to do with MERGED_USR.

Changed in debootstrap (Ubuntu):
status: New → Invalid
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.