MERGED_USR=yes breaks debootstrap of updated xenial distrib
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-
The debootstrap command looks like this:
debootstrap --arch=amd64 --components=main --include=
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/
I: Unpacking kbd...
W: Failure while installing base packages. This will be re-attempted up to five times.
W: See /data/foober/
W: Failure while installing base packages. This will be re-attempted up to five times.
W: See /data/foober/
W: Failure while installing base packages. This will be re-attempted up to five times.
W: See /data/foober/
W: Failure while installing base packages. This will be re-attempted up to five times.
W: See /data/foober/
In the debootstrap log I find these:
Unpacking kbd (1.15.5-1ubuntu5) ...
dpkg: error processing archive /var/cache/
unable to open '/bin/dumpkeys.
Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1.1) ...
dpkg: error processing archive /var/cache/
unable to install new version of '/lib/x86_
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.
> 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 hardy|intrepid| jaunty| karmic| lucid|maverick| natty|oneiric| precise| quantal| raring| saucy|trusty| utopic| vivid|wily| xenial| yakkety| zesty|artful| bionic| cosmic) ;;
gutsy|
*)
# 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.