[Bug 1813923] Re: MERGED_USR=yes breaks debootstrap of updated xenial distrib

Ken Sharp 1813923 at bugs.launchpad.net
Mon Jan 22 02:56:47 UTC 2024


> 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

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

Title:
  MERGED_USR=yes breaks debootstrap of updated xenial distrib

Status in debootstrap package in Ubuntu:
  Invalid

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.

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




More information about the foundations-bugs mailing list