Debootstrap fails for Noble with base-files 13ubuntu7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
base-files (Ubuntu) |
Won't Fix
|
Undecided
|
Julian Andres Klode | ||
Mantic |
Won't Fix
|
Undecided
|
Unassigned | ||
debootstrap (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Committed
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Mantic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
The last couple of days, I have been unable to run a successful debootstrap for Noble Numbat.
Apparently this is caused by the addition of symlinks (/bin, /lib, /lib64 and /sbin) in base-files 13ubuntu7. According to debootstrap.log, it fails to extract said symlinks because they already exist at that point.
This can be reproduced on build hosts running Jammy Jellyfish against any up-to-date Ubuntu public archive mirror as of today.
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
# apt-cache policy debootstrap
debootstrap:
Installed: 1.0.126+
Candidate: 1.0.126+
Version table:
*** 1.0.126+
500 http://
500 http://
100 /var/lib/
1.0.126+nmu1 500
500 http://
500 http://
Attached shell output of two runs of debootstrap. First run uses mirror archive.ubuntu.com (which as of this report serves base-files version 13ubuntu7), and second run uses a local custom mirror (which serves base-files 13ubuntu6). First run fails, second run succeeds.
[Test plan]
Successfully for each of focal, jammy, mantic, noble
- debootstrap
- mk-sbuild
- pbuilder-dist $release create
- ubuntu-image, if we can pull debootstrap from proposed for this
as well as
- debootstrap noble --merged-usr
[Where problems could occur]
We do not anticipate any regressions as we replace the previous *) case for usrmerge for post-hirsute with a new jammy|kinetic|
That said, this is a different approach than mantic and newer take, and a different approach than Debian takes, where they moved to merging post-extraction, even in stable releases.
Changed in base-files (Ubuntu): | |
assignee: | nobody → Julian Andres Klode (juliank) |
tags: | added: rls-nn-incoming |
description: | updated |
Changed in debootstrap (Ubuntu Jammy): | |
status: | Triaged → In Progress |
description: | updated |
description: | updated |
description: | updated |
Changed in debootstrap (Ubuntu Focal): | |
status: | Triaged → In Progress |
description: | updated |
description: | updated |
Steve I'm sorry but I cannot reproduce this. I have verified this countless of times during working on this and I am also unable to verify this here:
# apt policy debootstrap /debian. charite. de/ubuntu noble/main amd64 Packages /debian. charite. de/ubuntu noble/main i386 Packages archive. ubuntu. com/ubuntu noble/main amd64 Packages archive. ubuntu. com/ubuntu noble/main i386 Packages dpkg/status
debootstrap:
Installed: 1.0.134ubuntu1
Candidate: 1.0.134ubuntu1
Version table:
*** 1.0.134ubuntu1 500
500 https:/
500 https:/
500 http://
500 http://
100 /var/lib/
# rm -r /tmp/nobletest/ && sudo debootstrap --variant=minbase noble /tmp/nobletest &> debootstrap.log amd64.. . pkg6.0: amd64.. . kit0:amd64. .. amd64.. .
# grep base-files debootstrap.log
I: Retrieving base-files 13ubuntu7
I: Validating base-files 13ubuntu7
I: Extracting base-files...
I: Unpacking base-files...
I: Configuring base-files...
# tail debootstrap.log
I: Configuring libtasn1-6:amd64...
I: Configuring libstdc++6:amd64...
I: Configuring libhogweed6:
I: Configuring libidn2-0:amd64...
I: Configuring libapt-
I: Configuring libp11-
I: Configuring libgnutls30:
I: Configuring apt...
I: Configuring libc-bin...
I: Base system installed successfully.
Your debootstrap log looks fine, it extracts base-files first. At this point, /tmp/nobletest should be empty. Unless I suppose you use a old broken version of debootstrap that used to create the symlinks before extracting the packages?
debootstrap (1.0.130) unstable; urgency=medium
[ Helmut Grohne ]
* implement merged-/usr by post-merging. Closes: #1049898
-- Luca Boccassi <email address hidden> Fri, 18 Aug 2023 16:02:59 +0100