Thread View: linux.debian.bugs.dist
10 messages
10 total messages
Started by Benjamin Drung
Thu, 19 Nov 2026 21:50
Bug#1154510: mmdebstrap fails to build images for Ubuntu xenial and trusty
Author: Benjamin Drung
Date: Thu, 19 Nov 2026 21:50
Date: Thu, 19 Nov 2026 21:50
180 lines
10566 bytes
10566 bytes
Package: mmdebstrap
Version: 1.7.0-5
Severity: normal
Tags: ftbfs
X-Debbugs-Cc: debian-amd64@lists.debian.org, bdrung@debian.org
User: debian-amd64@lists.debian.org
Usertags: amd64
Dear Maintainer,
mmdebstrap fails to build images for Ubuntu xenial:
```
$ mmdebstrap xenial xenial.tar http://archive.ubuntu.com/ubuntu
I: automatically chosen mode: unshare
I: chroot architecture amd64 is equal to the host's architecture
I: finding correct signed-by value...
done
I: automatically chosen format: tar
I: using /tmp/mmdebstrap.SPrWJ7eEHl as tempdir
I: running apt-get update...
done
I: downloading packages with apt...
done
I: extracting archives...
done
I: installing essential packages...
done
[...]
Setting up systemd (229-4ubuntu21.31) ...
Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service, pointing to /lib/systemd/system/getty@.service.
Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target, pointing to /lib/systemd/system/remote-fs.target.
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service, pointing to /lib/systemd/system/systemd-timesyncd.service.
Initializing machine ID from random generator.
Adding group `systemd-journal' (GID 101) ...
Done.
chfn: PAM: Critical error - immediate abort
adduser: `/usr/bin/chfn -f systemd Time Synchronization systemd-timesync' returned error code 1. Exiting.
dpkg: error processing package systemd (--install):
subprocess installed post-installation script returned error exit status 1
Setting up libpam-runtime (1.1.8-3.2ubuntu2.3) ...
Setting up login (1:4.2-3.1ubuntu5.4) ...
Setting up ncurses-bin (6.0+20160213-1ubuntu1) ...
Setting up sed (4.2.2-7) ...
Setting up libdebconfclient0:amd64 (0.198ubuntu1) ...
Setting up base-passwd (3.5.39) ...
Setting up libc-bin (2.23-0ubuntu11.3) ...
dpkg: init: dependency problems, but configuring anyway as you requested:
init depends on systemd-sysv | upstart-sysv; however:
Package upstart-sysv is not installed.
Setting up init (1.29ubuntu4) ...
dpkg: systemd-sysv: dependency problems, but configuring anyway as you requested:
systemd-sysv depends on systemd; however:
Package systemd is not configured yet.
Setting up systemd-sysv (229-4ubuntu21.31) ...
Errors were encountered while processing:
systemd
```
The systemd package calls:
adduser --quiet --system --group --no-create-home --home /run/systemd \
--gecos "systemd Time Synchronization" systemd-timesync
Then adduser calls /usr/bin/chfn from passwd.
I compared xenial with bionic: on xenial systemd is installed as part of
the essential packages, but on bionic systemd is part of the remaining
packages.
mmdebstrap also fails to build images for Ubuntu trusty:
```
$ mmdebstrap trusty trusty.tar http://archive.ubuntu.com/ubuntu
I: automatically chosen mode: unshare
I: chroot architecture amd64 is equal to the host's architecture
I: finding correct signed-by value...
done
I: automatically chosen format: tar
I: using /tmp/mmdebstrap.w0v46VeV27 as tempdir
I: running apt-get update...
done
I: downloading packages with apt...
done
I: extracting archives...
done
I: installing essential packages...
done
dpkg: error: failed to open package info file `/var/lib/dpkg/available' for reading: No such file or directory
E: setup failed: E: env --unset=APT_CONFIG --unset=TMPDIR chroot /tmp/mmdebstrap.w0v46VeV27 dpkg --install --force-depends --status-fd=<$fd> /var/cache/apt/archives/gcc-4.9-base_4.9.3-0ubuntu4_amd64.deb /var/cache/apt/archives/multiarch-support_2.19-0ubuntu6.15_amd64.deb /var/cache/apt/archives/libc6_2.19-0ubuntu6.15_amd64.deb /var/cache/apt/archives/libgcc1_1%3a4.9.3-0ubuntu4_amd64.deb /var/cache/apt/archives/mawk_1.3.3-17ubuntu2_amd64.deb /var/cache/apt/archives/base-files_7.2ubuntu5.6_amd64.deb /var/cache/apt/archives/sensible-utils_0.0.9ubuntu0.14.04.1_all.deb /var/cache/apt/archives/debianutils_4.4_amd64.deb /var/cache/apt/archives/libbz2-1.0_1.0.6-5_amd64.deb /var/cache/apt/archives/liblzma5_5.1.1alpha+20120614-2ubuntu2_amd64.deb /var/cache/apt/archives/libpcre3_1%3a8.31-2ubuntu2.3_amd64.deb /var/cache/apt/archives/libselinux1_2.2.2-1ubuntu0.1_amd64.deb /var/cache/apt/archives/zlib1g_1%3a1.2.8.dfsg-1ubuntu1.1_amd64.deb /var/cache/apt/archives/libattr1_1%3a2.4.47-1ubuntu1_amd64.deb /var/cache/apt/archives/libacl1_2.2.52-1_amd64.deb /var/cache/apt/archives/tar_1.27.1-1ubuntu0.1_amd64.deb /var/cache/apt/archives/dpkg_1.17.5ubuntu5.8_amd64.deb /var/cache/apt/archives/dash_0.5.7-4ubuntu1_amd64.deb /var/cache/apt/archives/libtinfo5_5.9+20140118-1ubuntu1_amd64.deb /var/cache/apt/archives/bash_4.3-7ubuntu1.7_amd64.deb /var/cache/apt/archives/coreutils_8.21-1ubuntu5.4_amd64.deb /var/cache/apt/archives/diffutils_1%3a3.3-1_amd64.deb /var/cache/apt/archives/e2fslibs_1.42.9-3ubuntu1.3_amd64.deb /var/cache/apt/archives/libaudit-common_1%3a2.3.2-2ubuntu1_all.deb /var/cache/apt/archives/libaudit1_1%3a2.3.2-2ubuntu1_amd64.deb /var/cache/apt/archives/perl-base_5.18.2-2ubuntu1.7_amd64.deb /var/cache/apt/archives/debconf_1.5.51ubuntu2_all.deb /var/cache/apt/archives/libpam0g_1.1.8-1ubuntu2.2_amd64.deb /var/cache/apt/archives/libsemanage-common_2.2-1_all.deb /var/cache/apt/archives/libsepol1_2.2-1ubuntu0.1_amd64.deb /var/cache/apt/archives/libustr-1.0-1_1.0.4-3ubuntu2_amd64.deb /var/cache/apt/archives/libsemanage1_2.2-1_amd64.deb /var/cache/apt/archives/libdb5.3_5.3.28-3ubuntu3.1_amd64.deb /var/cache/apt/archives/libpam-modules-bin_1.1.8-1ubuntu2.2_amd64.deb /var/cache/apt/archives/libpam-modules_1.1.8-1ubuntu2.2_amd64.deb /var/cache/apt/archives/passwd_1%3a4.1.5.1-1ubuntu9.5_amd64.deb /var/cache/apt/archives/libuuid1_2.20.1-5.1ubuntu20.9_amd64.deb /var/cache/apt/archives/libblkid1_2.20.1-5.1ubuntu20.9_amd64.deb /var/cache/apt/archives/libcomerr2_1.42.9-3ubuntu1.3_amd64.deb /var/cache/apt/archives/libss2_1.42.9-3ubuntu1.3_amd64.deb /var/cache/apt/archives/libncurses5_5.9+20140118-1ubuntu1_amd64.deb /var/cache/apt/archives/libslang2_2.2.4-15ubuntu1_amd64.deb /var/cache/apt/archives/lsb-base_4.1+Debian11ubuntu6.2_all.deb /var/cache/apt/archives/tzdata_2019a-0ubuntu0.14.04_all.deb /var/cache/apt/archives/insserv_1.14.0-5ubuntu2_amd64.deb /var/cache/apt/archives/sysv-rc_2.88dsf-41ubuntu6.3_all.deb /var/cache/apt/archives/sysvinit-utils_2.88dsf-41ubuntu6.3_amd64.deb /var/cache/apt/archives/util-linux_2.20.1-5.1ubuntu20.9_amd64.deb /var/cache/apt/archives/e2fsprogs_1.42.9-3ubuntu1.3_amd64.deb /var/cache/apt/archives/findutils_4.4.2-7_amd64.deb /var/cache/apt/archives/grep_2.16-1_amd64.deb /var/cache/apt/archives/gzip_1.6-3ubuntu1_amd64.deb /var/cache/apt/archives/hostname_3.15ubuntu1_amd64.deb /var/cache/apt/archives/libpam-runtime_1.1.8-1ubuntu2.2_all.deb /var/cache/apt/archives/login_1%3a4.1.5.1-1ubuntu9.5_amd64.deb /var/cache/apt/archives/libmount1_2.20.1-5.1ubuntu20.9_amd64.deb /var/cache/apt/archives/mount_2.20.1-5.1ubuntu20.9_amd64.deb /var/cache/apt/archives/ncurses-bin_5.9+20140118-1ubuntu1_amd64.deb /var/cache/apt/archives/sed_4.2.2-4ubuntu1_amd64.deb /var/cache/apt/archives/libdebconfclient0_0.187ubuntu1_amd64.deb /var/cache/apt/archives/base-passwd_3.5.33_amd64.deb /var/cache/apt/archives/bsdutils_1%3a2.20.1-5.1ubuntu20.9_amd64.deb /var/cache/apt/archives/libc-bin_2.19-0ubuntu6.15_amd64.deb /var/cache/apt/archives/ncurses-base_5.9+20140118-1ubuntu1_all.deb failed: process exited with 2 and error in console output
W: hooklistener errored out: E: received eof on socket
I: main() received signal PIPE: waiting for setup...
I: removing tempdir /tmp/mmdebstrap.w0v46VeV27...
E: mmdebstrap failed to run
```
I know that these are old Ubuntu releases, but they still get paid
support by Canonical. I like to use sbuild unshare to build package for
these releases.
Bug-Ubuntu: https://launchpad.net/bugs/2158250
--
Benjamin Drung
Debian & Ubuntu Developer
Bug#1154510: mmdebstrap fails to build images for Ubuntu xenial and trusty
Author: Johannes Schauer Marin Rodrigues
Date: Fri, 20 Nov 2026 05:10
Date: Fri, 20 Nov 2026 05:10
163 lines
7879 bytes
7879 bytes
--===============4550414742029002022== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, Quoting Benjamin Drung (2026-11-19 22:42:43) > Package: mmdebstrap > Version: 1.7.0-5 > Severity: normal > Tags: ftbfs I don't think this is the correct tag because this is not mmdebstrap failin= g to build on Ubuntu but mmdebstrap not being able to create chroots for Ubuntu,= no? > X-Debbugs-Cc: debian-amd64@lists.debian.org, bdrung@debian.org > User: debian-amd64@lists.debian.org > Usertags: amd64 >=20 > Dear Maintainer, >=20 > mmdebstrap fails to build images for Ubuntu xenial: >=20 > ``` > $ mmdebstrap xenial xenial.tar http://archive.ubuntu.com/ubuntu > I: automatically chosen mode: unshare > I: chroot architecture amd64 is equal to the host's architecture > I: finding correct signed-by value... > done > I: automatically chosen format: tar > I: using /tmp/mmdebstrap.SPrWJ7eEHl as tempdir > I: running apt-get update... > done > I: downloading packages with apt... > done > I: extracting archives... > done > I: installing essential packages... > done > [...] > Setting up systemd (229-4ubuntu21.31) ... > Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service= , pointing to /lib/systemd/system/getty@.service. > Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.tar= get, pointing to /lib/systemd/system/remote-fs.target. > Created symlink /etc/systemd/system/sysinit.target.wants/systemd-timesync= d.service, pointing to /lib/systemd/system/systemd-timesyncd.service. > Initializing machine ID from random generator. > Adding group `systemd-journal' (GID 101) ... > Done. > chfn: PAM: Critical error - immediate abort > adduser: `/usr/bin/chfn -f systemd Time Synchronization systemd-timesync'= returned error code 1. Exiting. > dpkg: error processing package systemd (--install): > subprocess installed post-installation script returned error exit status= 1 Why do you suspect mmdebstrap to be the problem, given the above? Did you investigate the reason for chfn exiting with a ciritical error related to p= am? It reminds me of a problem we used to have six years ago with mmdebstrap running in "proot" mode (that mode no longer exists). Under proot, one would get the following in the systemd postinst: chfn: PAM: System error adduser: `/usr/bin/chfn -f systemd Time Synchronization systemd-timesync' r= eturned error code 1. Exiting. And here is a similar error with fakechroot https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D745082#75 And here is the issue with proot: https://github.com/proot-me/PRoot/issues/= 156 So in either case it wasn't mmdebstrap doing the wrong thing. Can you prese= nt evidence that this is actually a bug in mmdebstrap? > The systemd package calls: >=20 > adduser --quiet --system --group --no-create-home --home /run/systemd \ > --gecos "systemd Time Synchronization" systemd-timesync >=20 > Then adduser calls /usr/bin/chfn from passwd. >=20 > I compared xenial with bionic: on xenial systemd is installed as part of > the essential packages, but on bionic systemd is part of the remaining > packages. Still sounds like a bug in one of the involved packages to me and not like a bug in mmdebstrap. > mmdebstrap also fails to build images for Ubuntu trusty: >=20 > ``` > $ mmdebstrap trusty trusty.tar http://archive.ubuntu.com/ubuntu > I: automatically chosen mode: unshare > I: chroot architecture amd64 is equal to the host's architecture > I: finding correct signed-by value... > done > I: automatically chosen format: tar > I: using /tmp/mmdebstrap.w0v46VeV27 as tempdir > I: running apt-get update... > done > I: downloading packages with apt... > done > I: extracting archives... > done > I: installing essential packages... > done > dpkg: error: failed to open package info file `/var/lib/dpkg/available' f= or reading: No such file or directory /var/lib/dpkg/available is no longer needed since dpkg 1.17.11, so mmdebstr= ap stopped writing it. For creating chroots for older releases, have a look at= the jessie-or-older hooks shipped by mmdebstrap. Using these you can create chr= oots for Debian unstable going as far back as 2006-08-04 using snapshot.debian.o= rg. That should be more than sufficient for Ubuntu, no? > I know that these are old Ubuntu releases, but they still get paid > support by Canonical. I like to use sbuild unshare to build package for > these releases. I'm not here to volunteer my freetime for Canonical. If somebody is paying money for this, then they should pay a person to fix these things. I hope I= was able to give you sufficient feedback for such a thing to happen. Thanks! cheers, josch --===============4550414742029002022== MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Description: signature Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmr/1IMACgkQ8sulx4+9 g+GcAxAAg+CGcE87aVexrfWuz3Y7MnaDmUTw/jMpOLqpNDuQ7PM742Qx3jkYZ7ki NunUz16m+yJA8BpAazh2cQ/zDsMcQIxlLTG80yuDOTAxIu0pnh+6wZ9+U3CBfiAu 3rxa3YLJr3uA3loCvG6zxPIqPWLwi7gF9fRs2bNneI679bIao0IFJea+ASoFWZ5f Qg9cKCDAJuBn8co5281z66AZa5Zl1FsDNS271DaeW+bE6GPt4NjPZ7njhH76/jBU 55YFvBeZcWILuZfYruv9Zu2VBdg4fiNNUG23ZaiRPbhrZxw1wzYq+MhRuvNynsn/ mUEpMg43y17VxCDC5FaNQQWCpyuBGQB7aAijtU136ijk43E4wPsr19GyhdRPAI/k 0kbZD+FncNGl88HdG5WI0gsY5D6pU091W95vLOWBRug7nV0FWkKu3VP5rm6lBnLI pRfwYQYhl+uKa6T8FAyjd5PkpnGPE4m2HPYmmo0brtAh5pse6elIcJ4XwbroBEpk x3CXouMCEnweMRMN5DGCHvJE7lRCif6psOgkM4Rpro+tkjXmluB/kJUrlBGDRcoK Y+K88NR9d5GkWkca8arI9xt2QN3Sa/ESG+mjwOYwTMgaussJ8StFaCReqvk3kt3/ SigHhvpqLNQRx9xZsAe67+gu2qKVaFdJDiDGSbOjYfUDjkyLT8k= =c9JN -----END PGP SIGNATURE----- --===============4550414742029002022==--
Bug#1154510: mmdebstrap fails to build images for Ubuntu xenial and trusty
Author: Benjamin Drung
Date: Tue, 24 Nov 2026 15:50
Date: Tue, 24 Nov 2026 15:50
248 lines
11687 bytes
11687 bytes
--=-7VpY7Pc0EPUVb0yDWTnE
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Fri, 2026-11-20 at 06:03 +0100, Johannes Schauer Marin Rodrigues
wrote:
> Hi,
>=20
> Quoting Benjamin Drung (2026-11-19 22:42:43)
> > Package: mmdebstrap
> > Version: 1.7.0-5
> > Severity: normal
> > Tags: ftbfs
>=20
> I don't think this is the correct tag because this is not mmdebstrap fail=
ing to
> build on Ubuntu but mmdebstrap not being able to create chroots for Ubunt=
u, no?
>=20
Yes, that tag is wrong. No idea how I happen to add that.
> > X-Debbugs-Cc: debian-amd64@lists.debian.org, bdrung@debian.org
> > User: debian-amd64@lists.debian.org
> > Usertags: amd64
> >=20
> > Dear Maintainer,
> >=20
> > mmdebstrap fails to build images for Ubuntu xenial:
> >=20
> > ```
> > $ mmdebstrap xenial xenial.tar http://archive.ubuntu.com/ubuntu
> > I: automatically chosen mode: unshare
> > I: chroot architecture amd64 is equal to the host's architecture
> > I: finding correct signed-by value...
> > done
> > I: automatically chosen format: tar
> > I: using /tmp/mmdebstrap.SPrWJ7eEHl as tempdir
> > I: running apt-get update...
> > done
> > I: downloading packages with apt...
> > done
> > I: extracting archives...
> > done
> > I: installing essential packages...
> > done
> > [...]
> > Setting up systemd (229-4ubuntu21.31) ...
> > Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.servi=
ce, pointing to /lib/systemd/system/getty@.service.
> > Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.t=
arget, pointing to /lib/systemd/system/remote-fs.target.
> > Created symlink /etc/systemd/system/sysinit.target.wants/systemd-timesy=
ncd.service, pointing to /lib/systemd/system/systemd-timesyncd.service.
> > Initializing machine ID from random generator.
> > Adding group `systemd-journal' (GID 101) ...
> > Done.
> > chfn: PAM: Critical error - immediate abort
> > adduser: `/usr/bin/chfn -f systemd Time Synchronization systemd-timesyn=
c' returned error code 1. Exiting.
> > dpkg: error processing package systemd (--install):
> > subprocess installed post-installation script returned error exit stat=
us 1
>=20
> Why do you suspect mmdebstrap to be the problem, given the above? Did you
> investigate the reason for chfn exiting with a ciritical error related to=
pam?
I reported a tracking bug in Ubuntu and thought that I can forward it to
Debian since Debian is affected as well. So it could be in pam or
passwd.
> It reminds me of a problem we used to have six years ago with mmdebstrap
> running in "proot" mode (that mode no longer exists). Under proot, one wo=
uld
> get the following in the systemd postinst:
>=20
> chfn: PAM: System error
> adduser: `/usr/bin/chfn -f systemd Time Synchronization systemd-timesync'=
returned error code 1. Exiting.
>=20
> And here is a similar error with fakechroot
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D745082#75
>=20
> And here is the issue with proot: https://github.com/proot-me/PRoot/issue=
s/156
>=20
> So in either case it wasn't mmdebstrap doing the wrong thing. Can you pre=
sent
> evidence that this is actually a bug in mmdebstrap?
Thanks. That was a helpful pointer. I tracked down the upstream change
for pam and tested it: It still did not fix it. After more
investigation, I found a solution for that part: libpam-runtime should
be configured before systemd. Workaround demonstrate that:
mmdebstrap --extract-hook=3D'for f in common-auth common-account common-
session common-password; do printf "auth sufficient
pam_permit.so\naccount sufficient pam_permit.so\nsession sufficient
pam_permit.so\npassword sufficient pam_permit.so\n" > "$1/etc/pam.d/$f";
done' xenial xenial.tar http://archive.ubuntu.com/ubuntu
Is this something that should be done by mmdebstrap?
It now fails at a later stage:
```
I: installing remaining packages inside the chroot...
[...]
Setting up makedev (2.3.1-93ubuntu2~ubuntu16.04.1) ...
grep: /proc/1/environ: Permission denied
mknod: mem-: Operation not permitted
makedev mem c 1 1 root kmem 0640: failed
mknod: kmem-: Operation not permitted
[...]
```
This looks like a bug in the postinst of makedev. makedev has this
check:
if which systemd-detect-virt > /dev/null; then
if container=3D$(systemd-detect-virt -c)
then
echo "$container container detected, aborting due to container-
managed /dev."
exit 0
fi
fi
but this does not seem to take action. As alternative, mmdebstrap could
create those dev devices before configuring makedev (makedev checks with
"test -e /dev/<dev>").
> > The systemd package calls:
> >=20
> > adduser --quiet --system --group --no-create-home --home /run/systemd \
> > --gecos "systemd Time Synchronization" systemd-timesync
> >=20
> > Then adduser calls /usr/bin/chfn from passwd.
> >=20
> > I compared xenial with bionic: on xenial systemd is installed as part o=
f
> > the essential packages, but on bionic systemd is part of the remaining
> > packages.
>=20
> Still sounds like a bug in one of the involved packages to me and not lik=
e a
> bug in mmdebstrap.
>=20
> > mmdebstrap also fails to build images for Ubuntu trusty:
> >=20
> > ```
> > $ mmdebstrap trusty trusty.tar http://archive.ubuntu.com/ubuntu
> > I: automatically chosen mode: unshare
> > I: chroot architecture amd64 is equal to the host's architecture
> > I: finding correct signed-by value...
> > done
> > I: automatically chosen format: tar
> > I: using /tmp/mmdebstrap.w0v46VeV27 as tempdir
> > I: running apt-get update...
> > done
> > I: downloading packages with apt...
> > done
> > I: extracting archives...
> > done
> > I: installing essential packages...
> > done
> > dpkg: error: failed to open package info file `/var/lib/dpkg/available'=
for reading: No such file or directory
>=20
> /var/lib/dpkg/available is no longer needed since dpkg 1.17.11, so mmdebs=
trap
> stopped writing it. For creating chroots for older releases, have a look =
at the
> jessie-or-older hooks shipped by mmdebstrap. Using these you can create c=
hroots
> for Debian unstable going as far back as 2006-08-04 using snapshot.debian=
.org.
> That should be more than sufficient for Ubuntu, no?
Thanks for this pointer.=C2=A0I tried:
mmdebstrap trusty trusty.tar "deb [trusted=3Dyes] http://de.archive.ubuntu.=
com/ubuntu trusty main universe
deb [trusted=3Dyes] http://de.archive.ubuntu.com/ubuntu trusty-updates main=
universe" -v --hook-dir=3D/usr/share/mmdebstrap/hooks/jessie-or-older
The jessie-or-older/extract01.sh scripts fails with dpkg complaining
about a missing awk. Attached a tested patch for mmedebstrap to also try
to install mawk. I successfully tested that the jessie command from the
man page still works.
With this patch trusty gets as far as the xenial case mentioned above.
> > I know that these are old Ubuntu releases, but they still get paid
> > support by Canonical. I like to use sbuild unshare to build package for
> > these releases.
>=20
> I'm not here to volunteer my freetime for Canonical. If somebody is payin=
g
> money for this, then they should pay a person to fix these things. I hope=
I was
> able to give you sufficient feedback for such a thing to happen.
Thanks. Your feedback was very helpful to help me move this topic
further. Feedback on my comments above will be appreciated.
--=20
Benjamin Drung
Debian & Ubuntu Developer
--=-7VpY7Pc0EPUVb0yDWTnE
Content-Disposition: attachment;
filename="0001-hooks-jessie-or-older-also-install-mawk-for-Ubuntu.patch"
Content-Type: text/x-patch;
name="0001-hooks-jessie-or-older-also-install-mawk-for-Ubuntu.patch";
charset="UTF-8"
Content-Transfer-Encoding: base64
RnJvbSA5ODVjNWY5ZjcwOWRlYzExMzg0MTQxMDAyMDA2ZWU1YmFkOGUwZGVhIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBCZW5qYW1pbiBEcnVuZyA8YmVuamFtaW4uZHJ1bmdAY2Fub25p
Y2FsLmNvbT4KRGF0ZTogVHVlLCAyNCBOb3YgMjAyNiAxNjozMDo0NiArMDEwMApTdWJqZWN0OiBb
UEFUQ0hdIGhvb2tzL2plc3NpZS1vci1vbGRlcjogYWxzbyBpbnN0YWxsIG1hd2sgKGZvciBVYnVu
dHUpCgpVYnVudHUgMTQuMDQgTFRTICJ0cnVzdHkiIG5lZWRzIHRoZSBqZXNzaWUtb3Itb2xkZXIg
aG9vay4gSW4gY29udHJhc3QgdG8KRGViaWFuIGplc3NpZSwgVWJ1bnR1J3MgYmFzZS1maWxlcyBw
cmUtZGVwZW5kcyBvbiBhd2sgKGFuZCBtYXdrIHByb3ZpZGVzCmF3aykuCgpCdWc6IGh0dHBzOi8v
YnVncy5kZWJpYW4ub3JnLzExNTQ1MTAKLS0tCiBob29rcy9qZXNzaWUtb3Itb2xkZXIvZXh0cmFj
dDAxLnNoIHwgNCArKystCiAxIGZpbGUgY2hhbmdlZCwgMyBpbnNlcnRpb25zKCspLCAxIGRlbGV0
aW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gY29udGludWUK
IAljaHJvb3QgIiRUQVJHRVQiIGRwa2cgLS1pbnN0YWxsIC0tZm9yY2UtZGVwZW5kcyAiJHZhbCIK
LS0gCjIuNTMuMAoK
--=-7VpY7Pc0EPUVb0yDWTnE--
Bug#1154510: mmdebstrap fails to build images for Ubuntu xenial and trusty
Author: Benjamin Drung
Date: Thu, 26 Nov 2026 23:30
Date: Thu, 26 Nov 2026 23:30
178 lines
13591 bytes
13591 bytes
--=-fG0XWLqmigsn++J4qwC5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, thanks for your help. Attached three patches to add/enhance hooks to make xenial and trusty building: mmdebstrap xenial /dev/null http://archive.ubuntu.com/ubuntu --hook-dir=3D.= /hooks/xenial/ --hook-dir=3D./hooks/skip-makedev/ mmdebstrap trusty /dev/null http://archive.ubuntu.com/ubuntu --hook-dir=3D.= /hooks/jessie-or-older/ --hook-dir=3D./hooks/skip-makedev/ What is your opinion to auto-add those hooks when detecting suites that need it? mmdebstrap could gain a parameter to disable that behaviour. --=20 Benjamin Drung Debian & Ubuntu Developer --=-fG0XWLqmigsn++J4qwC5 Content-Disposition: attachment; filename="0001-hooks-jessie-or-older-also-install-mawk-for-Ubuntu.patch" Content-Type: text/x-patch; name="0001-hooks-jessie-or-older-also-install-mawk-for-Ubuntu.patch"; charset="UTF-8" Content-Transfer-Encoding: base64 RnJvbSAwMzhlNDdhMWQ1OGM3MmQxMWZkYzZhZTM2ZWE2NDhkYjgxYTFjZGIxIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBCZW5qYW1pbiBEcnVuZyA8YmVuamFtaW4uZHJ1bmdAY2Fub25p Y2FsLmNvbT4KRGF0ZTogVHVlLCAyNCBOb3YgMjAyNiAxNjozMDo0NiArMDEwMApTdWJqZWN0OiBb UEFUQ0ggMS8zXSBob29rcy9qZXNzaWUtb3Itb2xkZXI6IGFsc28gaW5zdGFsbCBtYXdrIChmb3Ig VWJ1bnR1KQ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1vci1vbGRlci9leHRyYWN0MDEuc2gKQEAgLTI1LDYgKzI1LDcgQEAgZmkKIGZu YW1lX2Jhc2VfcGFzc3dkPQogZm5hbWVfYmFzZV9maWxlcz0KIGZuYW1lX2Rwa2c9CitmbmFtZV9t YXdrPQogZm9yIHBrZyBpbiAkTU1ERUJTVFJBUF9FU1NFTlRJQUw7IGRvCiAJcGtnbmFtZT0kKGRw a2ctZGViIC0tc2hvdyAtLXNob3dmb3JtYXQ9JyR7UGFja2FnZX0nICIkVEFSR0VULyRwa2ciKQog CSMgc2hlbGxjaGVjayBkaXNhYmxlPVNDMjAzNApAQCAtMzIsMTAgKzMzLDExIEBAIGZvciBwa2cg aW4gJE1NREVCU1RSQVBfRVNTRU5USUFMOyBkbwogCQliYXNlLXBhc3N3ZCkgZm5hbWVfYmFzZV9w YXNzd2Q9JHBrZzs7CiAJCWJhc2UtZmlsZXMpICBmbmFtZV9iYXNlX2ZpbGVzPSRwa2c7OwogCQlk cGtnKSAgICAgICAgZm5hbWVfZHBrZz0kcGtnOzsKKwkJbWF3aykgICAgICAgIGZuYW1lX21hd2s9 JHBrZzs7CiAJZXNhYwogZG9uZQogCi1mb3IgdmFyIGluIGJhc2VfcGFzc3dkIGJhc2VfZmlsZXMg ZHBrZzsgZG8KK2ZvciB2YXIgaW4gbWF3ayBiYXNlX3Bhc3N3ZCBiYXNlX2ZpbGVzIGRwa2c7IGRv CiAJZXZhbCAndmFsPSRmbmFtZV8nIiR2YXIiCiAJWyAteiAiJHZhbCIgXSAmJiBjb250aW51ZQog CWNocm9vdCAiJFRBUkdFVCIgZHBrZyAtLWluc3RhbGwgLS1mb3JjZS1kZXBlbmRzICIkdmFsIgot LSAKMi41My4wCgo= --=-fG0XWLqmigsn++J4qwC5 Content-Disposition: attachment; filename="0002-hooks-add-xenial-hook.patch" Content-Type: text/x-patch; name="0002-hooks-add-xenial-hook.patch"; charset="UTF-8" Content-Transfer-Encoding: base64 RnJvbSBiNDE2NGIxODhkY2RkMjU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wljaHJvb3QgIiRUQVJHRVQiIGRwa2cgLS1pbnN0YWxsIC0tZm9yY2Ut ZGVwZW5kcyAiJGZuYW1lX2xpYnBhbV9ydW50aW1lIgorZmkKLS0gCjIuNTMuMAoK --=-fG0XWLqmigsn++J4qwC5 Content-Disposition: attachment; filename="0003-hooks-add-hook-to-skip-makedev-postinst.patch" Content-Type: text/x-patch; name="0003-hooks-add-hook-to-skip-makedev-postinst.patch"; charset="UTF-8" Content-Transfer-Encoding: base64 RnJvbSA2YWU0OTY3Y2EzM2E1M2M4NTc3NjdkY2UwMTY5NGU1ZTQzMGNmNGI3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBCZW5qYW1pbiBEcnVuZyA8YmVuamFtaW4uZHJ1bmdAY2Fub25p Y2FsLmNvbT4KRGF0ZTogRnJpLCAyNyBOb3YgMjAyNiAwMDowODoyNSArMDEwMApTdWJqZWN0OiBb UEFUQ0ggMy8zXSBob29rczogYWRkIGhvb2sgdG8gc2tpcCBtYWtlZGV2IHBvc3RpbnN0CgptbWRl YnN0cmFwIHdpbGwgZmFpbCBmb3IgVWJ1bnR1IHJlbGVhc2VzIHRoYXQgaW5zdGFsbCBtYWtlZGV2 IChmb3IKZXhhbXBsZSBVYnVudHUgMTQuMDQgInRydXN0eSIgb3IgVWJ1bnR1IDE2LjA0ICJ4ZW5p YWwiKToKCmBgYAokIG1tZGVic3RyYXAgeGVuaWFsIC9kZXYvbnVsbCBodHRwOi8vYXJjaGl2ZS51 YnVudHUuY29tL3VidW50dQpbLi4uXQpJOiBpbnN0YWxsaW5nIHJlbWFpbmluZyBwYWNrYWdlcyBp bnNpZGUgdGhlIGNocm9vdC4uLgpbLi4uXQpTZXR0aW5nIHVwIG1ha2VkZXYgKDIuMy4xLTkzdWJ1 bnR1Mn51YnVudHUxNi4wNC4xKSAuLi4KZ3JlcDogL3Byb2MvMS9lbnZpcm9uOiBQZXJtaXNzaW9u IGRlbmllZApta25vZDogbWVtLTogT3B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vYmluL3No XG5leGl0IDBcbiIgPiAiJDEvc2Jpbi9NQUtFREVWIgorY2htb2QgNzU1ICIkMS9zYmluL01BS0VE RVYiCisKK2ZvciBpIGluIDAgMSAyIDMgNCA1IDYgNyA4IDk7IGRvCisgICAgdG91Y2ggIiQxL2Rl di90dHkkaSIKK2RvbmUKLS0gCjIuNTMuMAoK --=-fG0XWLqmigsn++J4qwC5--
Bug#1154510: mmdebstrap fails to build images for Ubuntu xenial and trusty
Author: Johannes Schauer Marin Rodrigues
Date: Fri, 27 Nov 2026 09:20
Date: Fri, 27 Nov 2026 09:20
133 lines
7387 bytes
7387 bytes
--===============7322059123936963596== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Control: tag -1 - ftbfs Quoting Benjamin Drung (2026-11-24 16:40:09) > Yes, that tag is wrong. No idea how I happen to add that. Okay. Removing. > I reported a tracking bug in Ubuntu and thought that I can forward it to > Debian since Debian is affected as well. So it could be in pam or passwd. Okay. We can revisit the topic again if it's indeed mmdebstrap's fault. > Thanks. That was a helpful pointer. I tracked down the upstream change for > pam and tested it: It still did not fix it. After more investigation, I f= ound > a solution for that part: libpam-runtime should be configured before syst= emd. > Workaround demonstrate that: >=20 > mmdebstrap --extract-hook=3D'for f in common-auth common-account common- > session common-password; do printf "auth sufficient > pam_permit.so\naccount sufficient pam_permit.so\nsession sufficient > pam_permit.so\npassword sufficient pam_permit.so\n" > "$1/etc/pam.d/$f"; > done' xenial xenial.tar http://archive.ubuntu.com/ubuntu >=20 > Is this something that should be done by mmdebstrap? Configuration order is selected by apt and dpkg. This is nothing mmdebstrap controls. It just tells apt: here are the packages, install plz. > It now fails at a later stage: >=20 > ``` > I: installing remaining packages inside the chroot... > [...] > Setting up makedev (2.3.1-93ubuntu2~ubuntu16.04.1) ... > grep: /proc/1/environ: Permission denied > mknod: mem-: Operation not permitted > makedev mem c 1 1 root kmem 0640: failed > mknod: kmem-: Operation not permitted > [...] > ``` >=20 > This looks like a bug in the postinst of makedev. makedev has this > check: I think the bug is that you install makedev. ;) Why would you need makedev? > As alternative, mmdebstrap could > create those dev devices before configuring makedev (makedev checks with > "test -e /dev/<dev>"). mmdebstrap does not create /dev/mem nor /dev/kmem. It creates those devices which debootstrap creates to increase compatibility. That makedev wants to create /dev/mem and fails because it cannot mknod is either a problem of makedev itself or that the user who really wants makedev is not executing mmdebstrap with --mode=3Droot. The root mode is the only mode where a real mknod is possible. > > /var/lib/dpkg/available is no longer needed since dpkg 1.17.11, so mmde= bstrap > > stopped writing it. For creating chroots for older releases, have a loo= k at the > > jessie-or-older hooks shipped by mmdebstrap. Using these you can create= chroots > > for Debian unstable going as far back as 2006-08-04 using snapshot.debi= an.org. > > That should be more than sufficient for Ubuntu, no? >=20 > Thanks for this pointer.=C2=A0I tried: >=20 > mmdebstrap trusty trusty.tar "deb [trusted=3Dyes] http://de.archive.ubunt= u.com/ubuntu trusty main universe > deb [trusted=3Dyes] http://de.archive.ubuntu.com/ubuntu trusty-updates ma= in universe" -v --hook-dir=3D/usr/share/mmdebstrap/hooks/jessie-or-older >=20 > The jessie-or-older/extract01.sh scripts fails with dpkg complaining > about a missing awk. Attached a tested patch for mmedebstrap to also try > to install mawk. I successfully tested that the jessie command from the > man page still works. >=20 > With this patch trusty gets as far as the xenial case mentioned above. Thank you, I locally applied that patch to the branch with your other Ubuntu related commits. I still want to clean that up but see the other mail thread about that topic. I think you didn't reply to my review yet? > > I'm not here to volunteer my freetime for Canonical. If somebody is pay= ing > > money for this, then they should pay a person to fix these things. I ho= pe I was > > able to give you sufficient feedback for such a thing to happen. >=20 > Thanks. Your feedback was very helpful to help me move this topic > further. Feedback on my comments above will be appreciated. I hope I addressed all the points. Thanks! cheers, josch --===============7322059123936963596== MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Description: signature Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmsJSnIACgkQ8sulx4+9 g+FMDQ/9GX6u9fk2Vcw/DkLP4UOiGISVMYg0nMxz+qLNhGeFUH+yJrR/BEJ/o45O 9cs9IJ+np5gM0YYqQTWxdLF5eoBsdGAb5OuhrETp298owz4R+qmYnguY0537KoRe ZW5YE9y3ogQXffaMTHNxmBa7CX9xxj5Q7WcjJj96drxBdFEX6wrYrOqjWyuVNQ83 wSOw2Vfi22Y3JLZGJ+iWTLkXgg7ostRsQrDlnvJHkL0FPpx0MrjodfrfodeaLXEc lfYS1NunjQ+PEawpIB4VDIElvMincGzQz2JnRISc/pNXh1s9VdvViJc5UKX6NANn oq80R0rZVM4gevuToU0PR/zksLDAGuZFVhbm7q4dFrsp9sKcGBqfZ3aIaRfPlLG6 P2foOarI9zxcmKSk9hgIJtiruGloK75UccgGbcuDRPUvCQNon1bZ+u7GrxtBjWFI AfCgCwnxvJmLs7cFZbcCUiEMZCzF4T5nnD8multAwYVXy5Jxq4jEA0WzE9CEJ4Jl r38bvu5TzaeDl0gW2n7fwZI1q67NHDiRJl5mQ+go2kKVQY8y0dXvlT0XVJf+ov7J yPHPch2oI9KQ9ZnvSsAS/cnz5ao8rJApIcZ3bAKGPBRUnX+/MzikpJ/N3Q23kqsm FLtwGYLLmYo6w9SGTR0tyTtINGFt8WqaaAhnaBMcuZuOuYL8nC0= =2T/s -----END PGP SIGNATURE----- --===============7322059123936963596==--
Bug#1154510: mmdebstrap fails to build images for Ubuntu xenial and trusty
Author: Johannes Schauer Marin Rodrigues
Date: Fri, 27 Nov 2026 09:50
Date: Fri, 27 Nov 2026 09:50
132 lines
7639 bytes
7639 bytes
--===============4642153419017021443== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, thank you for these patches! I see you updated 0001-hooks-jessie-or-older-also-install-maw. I locally rewrote history to instead contain the patch from this mail. Thank you for being verbose in yo= ur commit message. In your hooks, could you put your name and copyright in form of a SPDX head= er at the top? Quoting Benjamin Drung (2026-11-27 00:24:40) > thanks for your help. Attached three patches to add/enhance hooks to make > xenial and trusty building: >=20 > mmdebstrap xenial /dev/null http://archive.ubuntu.com/ubuntu --hook-dir= =3D./hooks/xenial/ --hook-dir=3D./hooks/skip-makedev/ > mmdebstrap trusty /dev/null http://archive.ubuntu.com/ubuntu --hook-dir= =3D./hooks/jessie-or-older/ --hook-dir=3D./hooks/skip-makedev/ Cool! > What is your opinion to auto-add those hooks when detecting suites that n= eed > it? mmdebstrap could gain a parameter to disable that behaviour. The situation is much better today but when mmdebstrap started, debootstrap= was full of crazy stunts to work around all kinds of distro-specific behaviour.= The fact that it's only "old" ubuntu releases which require these workaround sh= ows me that the time I spent back then to file patches against apt, dpkg and ot= her offending packages did have an effect and these days, the 13-line shell scr= ipt from the mmdebstrap is indeed sufficient to create a Debian chroot. This was not the case 10 years ago. So I also see mmdebstrap as my motivation to make sure that Debian does not regress and that it is possible to create a distro chroot without the bootstrapping tool implementing workarounds. If anything like a workaround = is needed, then that has to go into the packages themselves or in the package managers like apt or dpkg in a declarative format. This is to follow the id= eas of component-based software engineering. If I add package-specific workarou= nds into mmdebstrap, then that would be like fixing a bug in gcc by adding a ch= ange to apt which fixes that bug. We don't do that. We expect gcc to carry the f= ix and not the installation tool. That being said, old distros still require a lot of workarounds and most of them can no longer be fixed. This is what the jessie-or-older hook is for. = It contains all the hacks which used to be necessary and which debootstrap wor= ked around by manually selecting installation order and some such. Since debootstrap existed we were complacent and there was no pressure to fix the= se things in the respective packages because the bootstrapping tool took care = of papering over them. This bugged me, so I filed patches and for modern derivatives, the jessie-or-older hook is no longer required. Since I want to keep it that way, I would be very much against adding any command line options which enable or disable distro-specific hacks. Those options do then have to be carried forever. I want to go the opposite direction: fix packages so that hacks never have to be used again by a bootstrapping tool. For old distros: that's what the hooks are for. They allow you to implement= any hack you desire (as you now can confirm). About auto-adding those, did you have a look at the maybe-jessie-or-older h= ook? That one implements the auto-add behaviour that you are asking for. If you don't know what distro you are bootstrapping and if you want the hacks for = old distros to automatically be applied if your distro is too old, then the maybe-jessie-or-older hook will do the auto-detection and run the jessie-or-older hooks only if necessary. Also, would you prefer to keep the existing skip-makedev and xenial hooks w= hich you proposed or would you rather write a hook called ubuntu which then does= the auto-detection of which ubuntu-release is currently being bootstrapped and = then does the right thing depending on the ubuntu version? Then you could use --hook-dir=3D./hooks/ubuntu for both trusty and xenial w= ithout having to remember which one of them needed the skip-makedev hook for examp= le. Thanks! cheers, josch --===============4642153419017021443== MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Description: signature Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmsJT30ACgkQ8sulx4+9 g+ExGQ/+LLTy7tmCd9kll9lk8YdxWkxQ4rTykVdDHaq6iGUDo0Ej0+82mWf11NUX jrRO/RkEyG2crmTJsJGYgT1d+XGzbezbirqtqZYN9G7jDIXykPbpgm9ybjPArH0y mwnkdAZML49zFQu57DkiQk1HNc7g38IMdlWpf9wqs0p6n5aCrObJffXVw5bdzfiU SvifbCr4FygcRwksYhHrHstG4yerSuC5Pdc8MJZNkNuMOqoCxQMzeeprRv+1VHQ5 d1nQcsJIPcJWgbN/kO+1ZAfNUIz+TFhWtRLa1iXEiQpKbD71kRpwMdVOm8toTbay HR4oorb7C8M9EJAjQmNHvcLJ6DO2/B/pkfhDk5aEF2+SGbKxdQ14XU0r4HVH1+n7 7Wgyd/bQAHmYe8aplu6NsX/4fiejSFASMxAcCmZSNHJLGHWPPNrU8V/7eUxHkkNg C0qj2BrwBHMFjcPTiF/3Ux28UciXpe+QqusZSU+4mYJ6DJoBp9LdZ4oNKJFXlzRd T+ig9fUYTgfUClWyeJfjocc/B63nlOm/bzmUwvLe1Gvay0bGSAtTKqITZ/9lqoT3 bUAFL64nA1wWdAiEP3CQn4sUieBxwEmTrTJfqS23cut6i/Y2gMKKVG/nnELvmvlV oX+ogk/SPy32aBuqo+LFQeH8gsZBGwOw61JToRzQtPoeJllw+ww= =y6U0 -----END PGP SIGNATURE----- --===============4642153419017021443==--
Bug#1154510: mmdebstrap fails to build images for Ubuntu xenial and trusty
Author: Benjamin Drung
Date: Fri, 27 Nov 2026 16:30
Date: Fri, 27 Nov 2026 16:30
228 lines
11191 bytes
11191 bytes
On Fri, 2026-11-27 at 10:16 +0100, Johannes Schauer Marin Rodrigues wrote: > > It now fails at a later stage: > > > > ``` > > I: installing remaining packages inside the chroot... > > [...] > > Setting up makedev (2.3.1-93ubuntu2~ubuntu16.04.1) ... > > grep: /proc/1/environ: Permission denied > > mknod: mem-: Operation not permitted > > makedev mem c 1 1 root kmem 0640: failed > > mknod: kmem-: Operation not permitted > > [...] > > ``` > > > > This looks like a bug in the postinst of makedev. makedev has this > > check: > > I think the bug is that you install makedev. ;) > > Why would you need makedev? Because ubuntu-minimal depends on it in Ubuntu <= 16.04. Not installing it would be the better solution, but this is an old Ubuntu release where it's unlikely to land such a change. makedev was demoted to universe in 18.04 and is not installed by default any more. So this is an "old" distro problem. > > As alternative, mmdebstrap could > > create those dev devices before configuring makedev (makedev checks with > > "test -e /dev/<dev>"). > > mmdebstrap does not create /dev/mem nor /dev/kmem. It creates those > devices which debootstrap creates to increase compatibility. That > makedev wants to create /dev/mem and fails because it cannot mknod is > either a problem of makedev itself or that the user who really wants > makedev is not executing mmdebstrap with --mode=root. The root mode > is the only mode where a real mknod is possible. > > > > /var/lib/dpkg/available is no longer needed since dpkg 1.17.11, so mmdebstrap > > > stopped writing it. For creating chroots for older releases, have a look at the > > > jessie-or-older hooks shipped by mmdebstrap. Using these you can create chroots > > > for Debian unstable going as far back as 2006-08-04 using snapshot.debian.org. > > > That should be more than sufficient for Ubuntu, no? > > > > Thanks for this pointer. I tried: > > > > mmdebstrap trusty trusty.tar "deb [trusted=yes] http://de.archive.ubuntu.com/ubuntu trusty main universe > > deb [trusted=yes] http://de.archive.ubuntu.com/ubuntu trusty-updates main universe" -v --hook-dir=/usr/share/mmdebstrap/hooks/jessie-or-older > > > > The jessie-or-older/extract01.sh scripts fails with dpkg complaining > > about a missing awk. Attached a tested patch for mmedebstrap to also try > > to install mawk. I successfully tested that the jessie command from the > > man page still works. > > > > With this patch trusty gets as far as the xenial case mentioned above. > > Thank you, I locally applied that patch to the branch with your other > Ubuntu related commits. I still want to clean that up but see the > other mail thread about that topic. I think you didn't reply to my > review yet? I did answer to that thread and attached it to the "Please support specifying wanted suites" bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1140618#34 > > > I'm not here to volunteer my freetime for Canonical. If somebody is paying > > > money for this, then they should pay a person to fix these things. I hope I was > > > able to give you sufficient feedback for such a thing to happen. > > > > Thanks. Your feedback was very helpful to help me move this topic > > further. Feedback on my comments above will be appreciated. > > I hope I addressed all the points. Yes. On Fri, 2026-11-27 at 10:38 +0100, Johannes Schauer Marin Rodrigues wrote: > Hi, > > thank you for these patches! I see you updated > 0001-hooks-jessie-or-older-also-install-maw. I locally rewrote history to > instead contain the patch from this mail. Thank you for being verbose in your > commit message. I rebased my ubuntu-support branch and pushed it. > In your hooks, could you put your name and copyright in form of a SPDX header > at the top? Yes. Done and pushed in the ubuntu-support branch. > Quoting Benjamin Drung (2026-11-27 00:24:40) > > thanks for your help. Attached three patches to add/enhance hooks to make > > xenial and trusty building: > > > > mmdebstrap xenial /dev/null http://archive.ubuntu.com/ubuntu --hook-dir=./hooks/xenial/ --hook-dir=./hooks/skip-makedev/ > > mmdebstrap trusty /dev/null http://archive.ubuntu.com/ubuntu --hook-dir=./hooks/jessie-or-older/ --hook-dir=./hooks/skip-makedev/ > > Cool! > > > What is your opinion to auto-add those hooks when detecting suites that need > > it? mmdebstrap could gain a parameter to disable that behaviour. > > The situation is much better today but when mmdebstrap started, debootstrap was > full of crazy stunts to work around all kinds of distro-specific behaviour. The > fact that it's only "old" ubuntu releases which require these workaround shows > me that the time I spent back then to file patches against apt, dpkg and other > offending packages did have an effect and these days, the 13-line shell script > from the mmdebstrap is indeed sufficient to create a Debian chroot. This was > not the case 10 years ago. Thanks for that work. It really paid off. > So I also see mmdebstrap as my motivation to make sure that Debian does not > regress and that it is possible to create a distro chroot without the > bootstrapping tool implementing workarounds. If anything like a workaround is > needed, then that has to go into the packages themselves or in the package > managers like apt or dpkg in a declarative format. This is to follow the ideas > of component-based software engineering. If I add package-specific workarounds > into mmdebstrap, then that would be like fixing a bug in gcc by adding a change > to apt which fixes that bug. We don't do that. We expect gcc to carry the fix > and not the installation tool. I fully agree. I see no reason why mmdebstrap should carry workarounds for recent Debian or Ubuntu releases. > That being said, old distros still require a lot of workarounds and most of > them can no longer be fixed. This is what the jessie-or-older hook is for. It > contains all the hacks which used to be necessary and which debootstrap worked > around by manually selecting installation order and some such. Since > debootstrap existed we were complacent and there was no pressure to fix these > things in the respective packages because the bootstrapping tool took care of > papering over them. This bugged me, so I filed patches and for modern > derivatives, the jessie-or-older hook is no longer required. > > Since I want to keep it that way, I would be very much against adding any > command line options which enable or disable distro-specific hacks. Those > options do then have to be carried forever. I want to go the opposite > direction: fix packages so that hacks never have to be used again by a > bootstrapping tool. > > For old distros: that's what the hooks are for. They allow you to implement any > hack you desire (as you now can confirm). We know what quirks are needed for old distros and we know that those old distros won't be updated for that any more. My idea was that mmdebstrap could enable those hooks by default when it detects an old distro that needs it. > About auto-adding those, did you have a look at the maybe-jessie-or-older hook? > That one implements the auto-add behaviour that you are asking for. If you > don't know what distro you are bootstrapping and if you want the hacks for old > distros to automatically be applied if your distro is too old, then the > maybe-jessie-or-older hook will do the auto-detection and run the > jessie-or-older hooks only if necessary. This would work, but clutter the output for newer distros that do not need this hook. > Also, would you prefer to keep the existing skip-makedev and xenial hooks which > you proposed or would you rather write a hook called ubuntu which then does the > auto-detection of which ubuntu-release is currently being bootstrapped and then > does the right thing depending on the ubuntu version? > > Then you could use --hook-dir=./hooks/ubuntu for both trusty and xenial without > having to remember which one of them needed the skip-makedev hook for example. Keeping the existing skip-makedev and xenial hooks make sense, since those are the equivalent to the jessie-or-older hook. We could add a maybe-xenial-or-older hook that does the equivalent to maybe-jessie-or- older. Then users can use: mmdebstrap $debian-codename --hook-dir=./hooks/maybe-jessie-or-older mmdebstrap $ubuntu-codename --hook-dir=./hooks/maybe-xenial-or-older Or have one common maybe-old-distro hook. So that you could use the same parameters. Then sbuild should default to add this hook to support building on old releases by default. -- Benjamin Drung Debian & Ubuntu Developer
Bug#1154510: mmdebstrap fails to build images for Ubuntu xenial and trusty
Author: Johannes Schauer Marin Rodrigues
Date: Fri, 27 Nov 2026 22:10
Date: Fri, 27 Nov 2026 22:10
376 lines
18313 bytes
18313 bytes
--===============0202056097507369319==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Hi,
Quoting Benjamin Drung (2026-11-27 17:23:56)
> > I think the bug is that you install makedev. ;)
> >=20
> > Why would you need makedev?
>=20
> Because ubuntu-minimal depends on it in Ubuntu <=3D 16.04. Not installing
> it would be the better solution, but this is an old Ubuntu release where
> it's unlikely to land such a change. makedev was demoted to universe in
> 18.04 and is not installed by default any more. So this is an "old"
> distro problem.
oh I see.
> > Thank you, I locally applied that patch to the branch with your other
> > Ubuntu related commits. I still want to clean that up but see the other
> > mail thread about that topic. I think you didn't reply to my review yet?
>=20
> I did answer to that thread and attached it to the "Please support
> specifying wanted suites" bug:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1140618#34
Whoops, good I asked. I missed that mail in my inbox. Let me answer to it h=
ere
to not have two diverging conversations.
> > Please run perltidy to keep the formatting style.
>=20
> I applied perltidy.
Thank you!
> > About commit "Also add updates pocket when a mirror is specified"
> >=20
> > Could you avoid the term pocket in your commit messages? I read your re=
ply in
> > #1140618 and the term seems to be very ubuntu-specific. mmdebstrap is a=
Debian
> > project and it's be nice to not use language from one of its many deriv=
atives.
> > mmdebstrap is a wrapper around apt and apt does not use the word pocket
> > anywhere in its source code and only twice in a commit message. And tha=
t is
> > even though apt is 99% a canonical project these days. In Debian (or ap=
t)
> > language what you call pocket I think is just a repository.
>=20
> Okay, changed the wording. The man page of mmdebstrap uses "mirror" when
> talking about updates and security.
Nice, thanks!
> > When I run the testsuite I saw that your commit "Also add updates pocke=
t when a
> > mirror is specified" introduced a regression in the tests dist-using-co=
dename
> > and check-against-debootstrap-dist. You can reproduce the problem like =
this:
> >=20
> > mmdebstrap trixie /dev/null http://deb.debian.org/debian
> >=20
> > Even though you specified a stable release name, you *also* specified a=
mirror
> > which means that you turned off the mechanism which automatically picks=
the
> > repositories for a stable release.With your change, the resulting chroo=
t will
> > contain the trixie-updates and trixie-security repositories in sources.=
list.
>=20
> Yes. This is an intentional change. I changed this commit to reflect
> that in the documentation.
I see this in this commit:
> Also add updates and security mirrors when a URI is specified
>
> `get_sourceslist_by_suite` will add updates and security mirrors when no
> URI is specified on the command line, but it will not be added when a
> URI is specified. This is inconsistent and probably not what a user
> wants by default.
This is a breaking change. What motivation do you have for breaking the
interface? Ideally, I'd only break the interface if there is a reason like =
"if
we don't break it, then we cannot have feature XY" or "we don't break it, we
actually fix a bug". I don't see either of that in this case. Can you
elaborate?
For me it's logical that a mirror to "security.debian.org" is *not* specifi=
ed
when the user explicitly says which mirror they want the packages to come f=
rom.
Did you only change it because the existing behaviour felt illogical to you=
or
because the Ubuntu support you wanted to implement cannot work otherwise?
> I tried to run the test suite, but make_mirror.sh failed on Ubuntu:
>=20
> ```
> $ ./make_mirror.sh
> I: Starting caching proxy with:
> I: * old cache: ./shared/cache.B
> I: * new cache: ./shared/cache.A
> starting caching proxy for shared/cache.A
> proxy download: http://deb.debian.org/debian/dists/unstable/InRelease
> proxy cached: http://deb.debian.org/debian/dists/unstable/InRelease
> creating mirror for oldstable
> contents of /etc/apt/sources.list:
> deb [arch=3Damd64] http://deb.debian.org/debian oldstable main
> proxy download: http://deb.debian.org/debian/dists/oldstable/InRelease
> Holen:1 http://deb.debian.org/debian oldstable InRelease [151 kB]
> Fehl:1 http://deb.debian.org/debian oldstable InRelease
> Die folgenden Signaturen konnten nicht =C3=BCberpr=C3=BCft werden, weil=
ihr =C3=B6ffentlicher Schl=C3=BCssel nicht verf=C3=BCgbar ist: NO_PUBKEY 6=
ED0E7B82643E131 NO_PUBKEY 78DBA3BC47EF2265 NO_PUBKEY F8D2585B8783D481
> Paketlisten werden gelesen=E2=80=A6 Fertig
> W: http://deb.debian.org/debian/dists/oldstable/InRelease: Loading /etc/a=
pt/trusted.gpg from deprecated option Dir::Etc::Trusted
> W: OpenPGP-Signatur=C3=BCberpr=C3=BCfung fehlgeschlagen: http://deb.debia=
n.org/debian oldstable InRelease: Die folgenden Signaturen konnten nicht =
=C3=BCberpr=C3=BCft werden, weil ihr =C3=B6ffentlicher Schl=C3=BCssel nicht=
verf=C3=BCgbar ist: NO_PUBKEY 6ED0E7B82643E131 NO_PUBKEY 78DBA3BC47EF2265 =
NO_PUBKEY F8D2585B8783D481
> E: Das Depot =C2=BBhttp://deb.debian.org/debian oldstable InRelease=C2=AB=
ist nicht signiert.
> N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere =
Art durchgef=C3=BChrt werden, daher ist es standardm=C3=A4=C3=9Fig deaktivi=
ert.
> N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerk=
onfiguration finden Sie in der Handbuchseite apt-secure(8).
> N: Einige Quellen k=C3=B6nnen modernisiert werden. F=C3=BChren Sie daf=C3=
=BCr =C2=BBapt modernize-sources=C2=AB aus.
> running cleanupapt
> does not exist: ./shared/cache.A/apt/var/cache/apt/archives/*.deb
> does not exist: ./shared/cache.A/apt/var/cache/apt/archives/partial/*.deb
> rmdir: failed to remove './shared/cache.A/apt/var/lib/apt/lists/partial':=
Directory not empty
> ```
I never ran make_mirror.sh on a Debian derivative. The above sounds like you
don't have debian-archive-keyring or similar installed?
> > my $base_suite =3D $options->{suite} =3D~ s/-.*//sr;
> >=20
> > This makes the minus special in the suite name. This needs to be docume=
nted.
> >=20
> > The idea of making the minus special to create a mapping got already me=
ntioned
> > in #1140618 and it's an idea which we already implemented in sbuild usi=
ng the
> > default distro-mange option:
> >=20
> > 'UNSHARE_MMDEBSTRAP_DISTRO_MANGLE' =3D> {
> > TYPE =3D> 'ARRAY:STRING',
> > VARNAME =3D> 'unshare_mmdebstrap_distro_mangle',
> > GROUP =3D> 'Chroot options (unshare)',
> > DEFAULT =3D> [
> > qr/^(experimental|rc-buggy|unreleased|UNRELEASED.*)$/ =3D>
> > 'unstable',
> > -(security|backports|backports-sloppy|proposed|proposed-updates|updates=
)$/
> > =3D> '$1',
> > ],
> >=20
> > In #1140618 you also point out that you are thinking about this change =
in
> > mmdebstrap in connection with its use in sbuild. That was exactly my li=
ne of
> > thought as well. The distro-mange option of sbuild was an experiment to=
see if
> > it's something pleasant to use. As I pointed out elsewhere, I would lik=
e the
> > final solution to involve machine readable data. But since you already
> > submitted code which makes that work for ubuntu I think this can be a s=
tepping
> > stone towards the final solution.
> >=20
> > I see that you added the default components to the documentation. This =
should
> > happen but it should also include other derivatives. Maybe via a table?
>=20
> The special handling of minus in mmdebstrap makes the
> UNSHARE_MMDEBSTRAP_DISTRO_MANGLE and UNSHARE_MMDEBSTRAP_EXTRA_ARGS
> setting obsolete. The UNSHARE_MMDEBSTRAP_EXTRA_ARGS was too broad and
> added the Debian mirror for Ubuntu when using resolute-updates for
> example.
I don't want to remove UNSHARE_MMDEBSTRAP_DISTRO_MANGLE nor
UNSHARE_MMDEBSTRAP_EXTRA_ARGS from sbuild because I think they still allow a
flexible way to cook up something very custom. But yes, the plan is to move=
a
lot of automatism to mmdebstrap so that users of sbuild only have to resort=
to
these settings if their use-case is somewhat special.
> After my experiment, I think following approach is the best way forward:
> Get this change into mmdebstrap and carve out functions that could be
> moved to distro-info. Then mmdebstrap could use those functions from
> libdistro-info-perl. Currently mmdebstrap reads the data from distro-
> info-data directly. I don't know how much code logic could be avoided
> when just continue doing so for mirrors and suites.
Your plan involves coordination with distro-info maintainers. I actually wa=
nted
to first prototype something which fulfills the needs of mmdebstrap (I'm not
quite sure yet how that would look like myself) and once that works, I can
propose how to best store this information in a machine-readable format to
distro-info. Once distro-info carries it, I can switch mmdebstrap to that.
> I pushed the updated code to
> https://salsa.debian.org/debian/mmdebstrap/-/commits/ubuntu-support?ref_t=
ype=3Dheads
> The commits are ready for being merged except for the top two ones that
> have TODO entries in their commit messages.
That looks mostly good, thank you! I'd like to clear up the behaviour change
from above and then I'll look at your branch in more detail and give you
feedback in case I find anything problematic. But I think it's good to merge
these changes before I start working on the declarative distro-info format.
Indeed your work gives me a better idea about what a derivative distro might
need, thank you!
> On Fri, 2026-11-27 at 10:38 +0100, Johannes Schauer Marin Rodrigues wrote:
> > thank you for these patches! I see you updated
> > 0001-hooks-jessie-or-older-also-install-maw. I locally rewrote history =
to
> > instead contain the patch from this mail. Thank you for being verbose i=
n your
> > commit message.
>=20
> I rebased my ubuntu-support branch and pushed it.
Why the change in 'refactor: call get_suite_by_vendor earlier'?
> > In your hooks, could you put your name and copyright in form of a SPDX =
header
> > at the top?
>=20
> Yes. Done and pushed in the ubuntu-support branch.
Perfect, thank you!
> > That being said, old distros still require a lot of workarounds and mos=
t of
> > them can no longer be fixed. This is what the jessie-or-older hook is f=
or. It
> > contains all the hacks which used to be necessary and which debootstrap=
worked
> > around by manually selecting installation order and some such. Since
> > debootstrap existed we were complacent and there was no pressure to fix=
these
> > things in the respective packages because the bootstrapping tool took c=
are of
> > papering over them. This bugged me, so I filed patches and for modern
> > derivatives, the jessie-or-older hook is no longer required.
> >=20
> > Since I want to keep it that way, I would be very much against adding a=
ny
> > command line options which enable or disable distro-specific hacks. Tho=
se
> > options do then have to be carried forever. I want to go the opposite
> > direction: fix packages so that hacks never have to be used again by a
> > bootstrapping tool.
> >=20
> > For old distros: that's what the hooks are for. They allow you to imple=
ment any
> > hack you desire (as you now can confirm).
>=20
> We know what quirks are needed for old distros and we know that those
> old distros won't be updated for that any more. My idea was that
> mmdebstrap could enable those hooks by default when it detects an old
> distro that needs it.
That assumption would probably work for Ubuntu, yes. But there are rolling
release distros for which this approach would not work. Even Debian has tes=
ting
and stable which are technically "rolling releases". If you look at the
mechanisms used in maybe-jessie-or-older you will see that it does *not* ch=
eck
the suite name at all but looks at the package versions and features.
Many people value how fast mmdebstrap is. I'm hesitant to make such kind of
"older than a decade" release detection logic by default because of that. =
I'm
tending towards recommending that those who use mmdebstrap in a way where t=
hey
often have to do that, then they can add the --hook-dir they need. Another
reason against making the check the default is that I would estimate that t=
he
vast majority of mmdebstrap (or debootstrap) users do use it together with
distros younger than five years and things should work out-of-the-box for
those.
> > About auto-adding those, did you have a look at the maybe-jessie-or-old=
er hook?
> > That one implements the auto-add behaviour that you are asking for. If =
you
> > don't know what distro you are bootstrapping and if you want the hacks =
for old
> > distros to automatically be applied if your distro is too old, then the
> > maybe-jessie-or-older hook will do the auto-detection and run the
> > jessie-or-older hooks only if necessary.
>=20
> This would work, but clutter the output for newer distros that do not
> need this hook.
Yes. That would be another reason against enabling these hooks by default.
> > Also, would you prefer to keep the existing skip-makedev and xenial hoo=
ks which
> > you proposed or would you rather write a hook called ubuntu which then =
does the
> > auto-detection of which ubuntu-release is currently being bootstrapped =
and then
> > does the right thing depending on the ubuntu version?
> >
> > Then you could use --hook-dir=3D./hooks/ubuntu for both trusty and xeni=
al without
> > having to remember which one of them needed the skip-makedev hook for e=
xample.
>=20
> Keeping the existing skip-makedev and xenial hooks make sense, since
> those are the equivalent to the jessie-or-older hook. We could add a
> maybe-xenial-or-older hook that does the equivalent to maybe-jessie-or-
> older. Then users can use:
>=20
> mmdebstrap $debian-codename --hook-dir=3D./hooks/maybe-jessie-or-older
> mmdebstrap $ubuntu-codename --hook-dir=3D./hooks/maybe-xenial-or-older
>=20
> Or have one common maybe-old-distro hook. So that you could use the same
> parameters.
>=20
> Then sbuild should default to add this hook to support building on old
> releases by default.
Okay, you implement it and you know ubuntu better than I, so I will leave t=
he
naming of this up to you.
Thanks!
cheers, josch
--===============0202056097507369319==
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Description: signature
Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmsJ/mIACgkQ8sulx4+9
g+GNDw/+N0qw6vJ+W5eh+9981XvR6LrX8sNcK5CvvExtGgOQ7qEjRM4qbsyczS+p
izk5BlVYBd3BsN5g2tbz5Xfq0k4f/l8p+4SPd7AP+xZJxi+yXw0WwZ06nSzyZ0pH
ikSAnLqd0jGJZxc0o56AB1muvphmWMBh1j6zGp8cEdUnEcr0BLzeXyZ2T2vH3sfp
OIwMhn9TVc/yfAd13/BVVydRJ+PUOMM1SbPCAPodXgbJPkFg5OIPvxJmCNcEzXnR
HEoB8px1r6zrjtePsq8th+URM4173gi+EJPiDJ6y1vUXIbiOzLEvJWO4dMtk3nIe
orEXq94630Eio2nMBW23vfIDDte68SOixNOASxFeoIX/c5CfIcFECEKopKBQKIpB
wfB5bk0mDS+hS6kKEGczEyjD1X/nP2SQ0udCVuS9ZhyMOKWOq91RbRkVUfYfKifQ
8PP/WZBZKwPKEopPba+tj4m1SdmkEOSOKN9NVb8H2uU6Ohe/vFu91S7dIavCa9d/
c790j2XCxgMmxamXsNxO8sLqfogcnx3uEPhoUP4U9T2OwwxVvNdoU1I7ooS+NPL8
c+0QlfeZktBdaH/EuJF8foK0V3uQWRy6/cDPXhHQ+3+9KRZdcFijgmtYyUSQ2jPZ
qUg+dh2BfAZD+LyL2XH+9QNzt2fE0ufJjiLRqBnF6pG2LUK9YXA=
=2qQD
-----END PGP SIGNATURE-----
--===============0202056097507369319==--
Bug#1154510: mmdebstrap fails to build images for Ubuntu xenial and trusty
Author: Benjamin Drung
Date: Fri, 27 Nov 2026 23:10
Date: Fri, 27 Nov 2026 23:10
390 lines
18111 bytes
18111 bytes
On Fri, 2026-11-27 at 23:04 +0100, Johannes Schauer Marin Rodrigues
wrote:
> > > When I run the testsuite I saw that your commit "Also add updates pocket when a
> > > mirror is specified" introduced a regression in the tests dist-using-codename
> > > and check-against-debootstrap-dist. You can reproduce the problem like this:
> > >
> > > mmdebstrap trixie /dev/null http://deb.debian.org/debian
> > >
> > > Even though you specified a stable release name, you *also* specified a mirror
> > > which means that you turned off the mechanism which automatically picks the
> > > repositories for a stable release.With your change, the resulting chroot will
> > > contain the trixie-updates and trixie-security repositories in sources.list.
> >
> > Yes. This is an intentional change. I changed this commit to reflect
> > that in the documentation.
>
> I see this in this commit:
>
> > Also add updates and security mirrors when a URI is specified
> >
> > `get_sourceslist_by_suite` will add updates and security mirrors when no
> > URI is specified on the command line, but it will not be added when a
> > URI is specified. This is inconsistent and probably not what a user
> > wants by default.
>
> This is a breaking change. What motivation do you have for breaking the
> interface? Ideally, I'd only break the interface if there is a reason like "if
> we don't break it, then we cannot have feature XY" or "we don't break it, we
> actually fix a bug". I don't see either of that in this case. Can you
> elaborate?
>
> For me it's logical that a mirror to "security.debian.org" is *not* specified
> when the user explicitly says which mirror they want the packages to come from.
> Did you only change it because the existing behaviour felt illogical to you or
> because the Ubuntu support you wanted to implement cannot work otherwise?
>
I was surprised when I noticed that specifying a mirror disabled the
additional repositories and the security mirror. So yes, this behavior
felt illogical to me.
IIRC when I do an installation of Debian/Ubuntu I might be able to pick
a mirror, but the security mirror will be added anyway. I would expect
mmdebstrap to behave similar to it.
The logical behavior for me is: If I provide a $foo.list or $foo.sources
file, I will get exactly this for my apt sources. Otherwise I get the
whole repository defaults with the default mirror or the mirror that I
specify.
Currently there is no way to just replace the default mirror with a
custom one. Since we do not have something like
http://deb.debian.org/debian for Ubuntu, using $CC.archive.ubuntu.com as
mirror is common on Ubuntu.
> > I tried to run the test suite, but make_mirror.sh failed on Ubuntu:
> >
> > ```
> > $ ./make_mirror.sh
> > I: Starting caching proxy with:
> > I: * old cache: ./shared/cache.B
> > I: * new cache: ./shared/cache.A
> > starting caching proxy for shared/cache.A
> > proxy download: http://deb.debian.org/debian/dists/unstable/InRelease
> > proxy cached: http://deb.debian.org/debian/dists/unstable/InRelease
> > creating mirror for oldstable
> > contents of /etc/apt/sources.list:
> > deb [arch=amd64] http://deb.debian.org/debian oldstable main
> > proxy download: http://deb.debian.org/debian/dists/oldstable/InRelease
> > Holen:1 http://deb.debian.org/debian oldstable InRelease [151 kB]
> > Fehl:1 http://deb.debian.org/debian oldstable InRelease
> > Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 6ED0E7B82643E131 NO_PUBKEY 78DBA3BC47EF2265 NO_PUBKEY F8D2585B8783D481
> > Paketlisten werden gelesen… Fertig
> > W: http://deb.debian.org/debian/dists/oldstable/InRelease: Loading /etc/apt/trusted.gpg from deprecated option Dir::Etc::Trusted
> > W: OpenPGP-Signaturüberprüfung fehlgeschlagen: http://deb.debian.org/debian oldstable InRelease: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 6ED0E7B82643E131 NO_PUBKEY 78DBA3BC47EF2265 NO_PUBKEY F8D2585B8783D481
> > E: Das Depot »http://deb.debian.org/debian oldstable InRelease« ist nicht signiert.
> > N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art durchgeführt werden, daher ist es standardmäßig deaktiviert.
> > N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8).
> > N: Einige Quellen können modernisiert werden. Führen Sie dafür »apt modernize-sources« aus.
> > running cleanupapt
> > does not exist: ./shared/cache.A/apt/var/cache/apt/archives/*.deb
> > does not exist: ./shared/cache.A/apt/var/cache/apt/archives/partial/*.deb
> > rmdir: failed to remove './shared/cache.A/apt/var/lib/apt/lists/partial': Directory not empty
> > ```
>
> I never ran make_mirror.sh on a Debian derivative. The above sounds like you
> don't have debian-archive-keyring or similar installed?
> >
I have debian-archive-keyring 2025.1ubuntu1 installed.
> > > my $base_suite = $options->{suite} =~ s/-.*//sr;
> > >
> > > This makes the minus special in the suite name. This needs to be documented.
> > >
> > > The idea of making the minus special to create a mapping got already mentioned
> > > in #1140618 and it's an idea which we already implemented in sbuild using the
> > > default distro-mange option:
> > >
> > > 'UNSHARE_MMDEBSTRAP_DISTRO_MANGLE' => {
> > > TYPE => 'ARRAY:STRING',
> > > VARNAME => 'unshare_mmdebstrap_distro_mangle',
> > > GROUP => 'Chroot options (unshare)',
> > > DEFAULT => [
> > > qr/^(experimental|rc-buggy|unreleased|UNRELEASED.*)$/ =>
> > > 'unstable',
> > > -(security|backports|backports-sloppy|proposed|proposed-updates|updates)$/
> > > => '$1',
> > > ],
> > >
> > > In #1140618 you also point out that you are thinking about this change in
> > > mmdebstrap in connection with its use in sbuild. That was exactly my line of
> > > thought as well. The distro-mange option of sbuild was an experiment to see if
> > > it's something pleasant to use. As I pointed out elsewhere, I would like the
> > > final solution to involve machine readable data. But since you already
> > > submitted code which makes that work for ubuntu I think this can be a stepping
> > > stone towards the final solution.
> > >
> > > I see that you added the default components to the documentation. This should
> > > happen but it should also include other derivatives. Maybe via a table?
> >
> > The special handling of minus in mmdebstrap makes the
> > UNSHARE_MMDEBSTRAP_DISTRO_MANGLE and UNSHARE_MMDEBSTRAP_EXTRA_ARGS
> > setting obsolete. The UNSHARE_MMDEBSTRAP_EXTRA_ARGS was too broad and
> > added the Debian mirror for Ubuntu when using resolute-updates for
> > example.
>
> I don't want to remove UNSHARE_MMDEBSTRAP_DISTRO_MANGLE nor
> UNSHARE_MMDEBSTRAP_EXTRA_ARGS from sbuild because I think they still allow a
> flexible way to cook up something very custom. But yes, the plan is to move a
> lot of automatism to mmdebstrap so that users of sbuild only have to resort to
> these settings if their use-case is somewhat special.
>
I don't propose to remove those setting, but the mmdebstrap change would
trim down the defaults to:
UNSHARE_MMDEBSTRAP_DISTRO_MANGLE => [qr/^(unreleased|UNRELEASED.*)$/ => 'unstable']
UNSHARE_MMDEBSTRAP_EXTRA_ARGS => []
> > After my experiment, I think following approach is the best way forward:
> > Get this change into mmdebstrap and carve out functions that could be
> > moved to distro-info. Then mmdebstrap could use those functions from
> > libdistro-info-perl. Currently mmdebstrap reads the data from distro-
> > info-data directly. I don't know how much code logic could be avoided
> > when just continue doing so for mirrors and suites.
>
> Your plan involves coordination with distro-info maintainers. I actually wanted
> to first prototype something which fulfills the needs of mmdebstrap (I'm not
> quite sure yet how that would look like myself) and once that works, I can
> propose how to best store this information in a machine-readable format to
> distro-info. Once distro-info carries it, I can switch mmdebstrap to that.
>
FYI: I am the author/maintainer of distro-info.
> > I pushed the updated code to
> > https://salsa.debian.org/debian/mmdebstrap/-/commits/ubuntu-support?ref_type=heads
> > The commits are ready for being merged except for the top two ones that
> > have TODO entries in their commit messages.
>
> That looks mostly good, thank you! I'd like to clear up the behaviour change
> from above and then I'll look at your branch in more detail and give you
> feedback in case I find anything problematic. But I think it's good to merge
> these changes before I start working on the declarative distro-info format.
> Indeed your work gives me a better idea about what a derivative distro might
> need, thank you!
>
> > On Fri, 2026-11-27 at 10:38 +0100, Johannes Schauer Marin Rodrigues wrote:
> > > thank you for these patches! I see you updated
> > > 0001-hooks-jessie-or-older-also-install-maw. I locally rewrote history to
> > > instead contain the patch from this mail. Thank you for being verbose in your
> > > commit message.
> >
> > I rebased my ubuntu-support branch and pushed it.
>
> Why the change in 'refactor: call get_suite_by_vendor earlier'?
> >
Because function like get_vendor_by_suite will need suite_by_vendor
earlier.
> > > In your hooks, could you put your name and copyright in form of a SPDX header
> > > at the top?
> >
> > Yes. Done and pushed in the ubuntu-support branch.
>
> Perfect, thank you!
>
> > > That being said, old distros still require a lot of workarounds and most of
> > > them can no longer be fixed. This is what the jessie-or-older hook is for. It
> > > contains all the hacks which used to be necessary and which debootstrap worked
> > > around by manually selecting installation order and some such. Since
> > > debootstrap existed we were complacent and there was no pressure to fix these
> > > things in the respective packages because the bootstrapping tool took care of
> > > papering over them. This bugged me, so I filed patches and for modern
> > > derivatives, the jessie-or-older hook is no longer required.
> > >
> > > Since I want to keep it that way, I would be very much against adding any
> > > command line options which enable or disable distro-specific hacks. Those
> > > options do then have to be carried forever. I want to go the opposite
> > > direction: fix packages so that hacks never have to be used again by a
> > > bootstrapping tool.
> > >
> > > For old distros: that's what the hooks are for. They allow you to implement any
> > > hack you desire (as you now can confirm).
> >
> > We know what quirks are needed for old distros and we know that those
> > old distros won't be updated for that any more. My idea was that
> > mmdebstrap could enable those hooks by default when it detects an old
> > distro that needs it.
>
> That assumption would probably work for Ubuntu, yes. But there are rolling
> release distros for which this approach would not work. Even Debian has testing
> and stable which are technically "rolling releases". If you look at the
> mechanisms used in maybe-jessie-or-older you will see that it does *not* check
> the suite name at all but looks at the package versions and features.
>
> Many people value how fast mmdebstrap is. I'm hesitant to make such kind of
> "older than a decade" release detection logic by default because of that. I'm
> tending towards recommending that those who use mmdebstrap in a way where they
> often have to do that, then they can add the --hook-dir they need. Another
> reason against making the check the default is that I would estimate that the
> vast majority of mmdebstrap (or debootstrap) users do use it together with
> distros younger than five years and things should work out-of-the-box for
> those.
> >
I agree for Debian jessie, but Ubuntu 14.04 still gets support. So there
are users (like me) who want to build for those old releases.
Making mmdebstrap support old releases shouldn't be expensive. The code
would look something like (plus documenting it in the man page):
# Quirks for old release before 2017
sub get_default_hooks_by_suite {
my $suite = shift;
my $variant = shift;
my $mode = shift;
if (any { $_ eq $suite } keys ('jessie', 'wheezy', ...)) {
return ('jessie-or-older');
} elsif ($suite eq 'xenial') {
if ($variant eq 'standard' && $mode ne 'root') {
return ('xenial', 'skip-makedev');
}
return ('xenial');
} elsif (any { $_ eq $suite } keys ('trusty', 'precise', ...)) {
if ($variant eq 'standard' && $mode ne 'root') {
return ('jessie-or-older', 'skip-makedev');
}
return ('jessie-or-older');
}
return ();
}
Would you be open to such kind of change?
> > > About auto-adding those, did you have a look at the maybe-jessie-or-older hook?
> > > That one implements the auto-add behaviour that you are asking for. If you
> > > don't know what distro you are bootstrapping and if you want the hacks for old
> > > distros to automatically be applied if your distro is too old, then the
> > > maybe-jessie-or-older hook will do the auto-detection and run the
> > > jessie-or-older hooks only if necessary.
> >
> > This would work, but clutter the output for newer distros that do not
> > need this hook.
>
> Yes. That would be another reason against enabling these hooks by default.
>
> > > Also, would you prefer to keep the existing skip-makedev and xenial hooks which
> > > you proposed or would you rather write a hook called ubuntu which then does the
> > > auto-detection of which ubuntu-release is currently being bootstrapped and then
> > > does the right thing depending on the ubuntu version?
> > >
> > > Then you could use --hook-dir=./hooks/ubuntu for both trusty and xenial without
> > > having to remember which one of them needed the skip-makedev hook for example.
> >
> > Keeping the existing skip-makedev and xenial hooks make sense, since
> > those are the equivalent to the jessie-or-older hook. We could add a
> > maybe-xenial-or-older hook that does the equivalent to maybe-jessie-or-
> > older. Then users can use:
> >
> > mmdebstrap $debian-codename --hook-dir=./hooks/maybe-jessie-or-older
> > mmdebstrap $ubuntu-codename --hook-dir=./hooks/maybe-xenial-or-older
> >
> > Or have one common maybe-old-distro hook. So that you could use the same
> > parameters.
> >
> > Then sbuild should default to add this hook to support building on old
> > releases by default.
>
> Okay, you implement it and you know ubuntu better than I, so I will leave the
> naming of this up to you.
The drawback of having such a maybe-old-distro hook would that it
clutters the output even for recent releases.
--
Benjamin Drung
Debian & Ubuntu Developer
Bug#1154510: mmdebstrap fails to build images for Ubuntu xenial and trusty
Author: Johannes Schauer Marin Rodrigues
Date: Mon, 30 Nov 2026 00:10
Date: Mon, 30 Nov 2026 00:10
290 lines
14381 bytes
14381 bytes
--===============5340670249975872460==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Hi,
Quoting Benjamin Drung (2026-11-28 00:07:35)
> > > Also add updates and security mirrors when a URI is specified
> > >=20
> > > `get_sourceslist_by_suite` will add updates and security mirrors when=
no
> > > URI is specified on the command line, but it will not be added when a
> > > URI is specified. This is inconsistent and probably not what a user
> > > wants by default.
> >=20
> > This is a breaking change. What motivation do you have for breaking the
> > interface? Ideally, I'd only break the interface if there is a reason l=
ike "if
> > we don't break it, then we cannot have feature XY" or "we don't break i=
t, we
> > actually fix a bug". I don't see either of that in this case. Can you
> > elaborate?
> >=20
> > For me it's logical that a mirror to "security.debian.org" is *not* spe=
cified
> > when the user explicitly says which mirror they want the packages to co=
me from.
> > Did you only change it because the existing behaviour felt illogical to=
you or
> > because the Ubuntu support you wanted to implement cannot work otherwis=
e?
>=20
> I was surprised when I noticed that specifying a mirror disabled the
> additional repositories and the security mirror.=C2=A0So yes, this behavi=
or
> felt illogical to me.
>=20
> IIRC when I do an installation of Debian/Ubuntu I might be able to pick
> a mirror, but the security mirror will be added anyway. I would expect
> mmdebstrap to behave similar to it.
Well, yes because debian-installer does it in a two-step process: it first =
uses
debootstrap to create a chroot *without* security mirrors and then later ad=
ds
the mirror and runs apt-update and apt-upgrade again.
> The logical behavior for me is: If I provide a $foo.list or $foo.sources
> file, I will get exactly this for my apt sources.
We agree on this.
> Otherwise I get the whole repository defaults with the default mirror or =
the
> mirror that I specify.
Okay, I now see where you are coming from. I agree that this could be a
reasonable default behaviour. Alas, it is not what mmdebstrap used since the
very beginning and I do not find your your alternate reasoning strong enoug=
h to
break behaviour for existing users of mmdebstrap. I think to break the
documented interface, a really strong reason must exist.
> Currently there is no way to just replace the default mirror with a custom
> one. Since we do not have something like http://deb.debian.org/debian for
> Ubuntu, using $CC.archive.ubuntu.com as mirror is common on Ubuntu.
Ah okay, I see then that the inability of mmdebstrap to just replace the
default mirror but still do the default action of adding updates and securi=
ty
mirrors is bad for Ubuntu as a derivative.
What is the use-case for using $CC.archive.ubuntu.com instead of
archive.ubuntu.com? Is it just for speed? In which situation would it be us=
ed?
By users of mmdebstrap on the command line or by programs which are wrappers
around mmdebstrap like sbuild?
> > > Die folgenden Signaturen konnten nicht =C3=BCberpr=C3=BCft werden, =
weil ihr =C3=B6ffentlicher Schl=C3=BCssel nicht verf=C3=BCgbar ist: NO_PUBK=
EY 6ED0E7B82643E131 NO_PUBKEY 78DBA3BC47EF2265 NO_PUBKEY F8D2585B8783D481
> > > Paketlisten werden gelesen=E2=80=A6 Fertig
> > > W: http://deb.debian.org/debian/dists/oldstable/InRelease: Loading /e=
tc/apt/trusted.gpg from deprecated option Dir::Etc::Trusted
> > > W: OpenPGP-Signatur=C3=BCberpr=C3=BCfung fehlgeschlagen: http://deb.d=
ebian.org/debian oldstable InRelease: Die folgenden Signaturen konnten nich=
t =C3=BCberpr=C3=BCft werden, weil ihr =C3=B6ffentlicher Schl=C3=BCssel nic=
ht verf=C3=BCgbar ist: NO_PUBKEY 6ED0E7B82643E131 NO_PUBKEY 78DBA3BC47EF226=
5 NO_PUBKEY F8D2585B8783D481
> > > E: Das Depot =C2=BBhttp://deb.debian.org/debian oldstable InRelease=
=C2=AB ist nicht signiert.
> > > N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sich=
ere Art durchgef=C3=BChrt werden, daher ist es standardm=C3=A4=C3=9Fig deak=
tiviert.
> > > N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benut=
zerkonfiguration finden Sie in der Handbuchseite apt-secure(8).
> > > N: Einige Quellen k=C3=B6nnen modernisiert werden. F=C3=BChren Sie da=
f=C3=BCr =C2=BBapt modernize-sources=C2=AB aus.
> > > running cleanupapt
> > > does not exist: ./shared/cache.A/apt/var/cache/apt/archives/*.deb
> > > does not exist: ./shared/cache.A/apt/var/cache/apt/archives/partial/*=
.deb
> > > rmdir: failed to remove './shared/cache.A/apt/var/lib/apt/lists/parti=
al': Directory not empty
> > > ```
> >=20
> > I never ran make_mirror.sh on a Debian derivative. The above sounds lik=
e you
> > don't have debian-archive-keyring or similar installed?
> > >=20
>=20
> I have debian-archive-keyring 2025.1ubuntu1 installed.
Ah, I have another theory. Can you first verify that the desired key is in =
the
expected file on your system:
gpg --with-colons --show-keys /usr/share/keyrings/debian-archive-keyring.gp=
g | grep 6ED0E7B82643E131
mmdebstrap automatically adds a signed-by to a sources.list entry if needed.
This does not happen in make_mirror.sh. To test this theory, could you edit=
the
entries that start with "deb [arch=3D$nativearch] ..." to include a signed-=
by
value of the keyring you found to contain the desired fingerprint?
> > I don't want to remove UNSHARE_MMDEBSTRAP_DISTRO_MANGLE nor
> > UNSHARE_MMDEBSTRAP_EXTRA_ARGS from sbuild because I think they still al=
low a
> > flexible way to cook up something very custom. But yes, the plan is to =
move a
> > lot of automatism to mmdebstrap so that users of sbuild only have to re=
sort to
> > these settings if their use-case is somewhat special.
> >=20
>=20
> I don't propose to remove those setting, but the mmdebstrap change would
> trim down the defaults to:
>=20
> UNSHARE_MMDEBSTRAP_DISTRO_MANGLE =3D> [qr/^(unreleased|UNRELEASED.*)$/ =
=3D> 'unstable']
> UNSHARE_MMDEBSTRAP_EXTRA_ARGS =3D> []
Yes, that's what I'd like to achieve.
> > Your plan involves coordination with distro-info maintainers. I actuall=
y wanted
> > to first prototype something which fulfills the needs of mmdebstrap (I'=
m not
> > quite sure yet how that would look like myself) and once that works, I =
can
> > propose how to best store this information in a machine-readable format=
to
> > distro-info. Once distro-info carries it, I can switch mmdebstrap to th=
at.
> >=20
>=20
> FYI: I am the author/maintainer of distro-info.
Hah! I didn't know. Excellent! Now I will keep you even more in the loop. :)
> > Why the change in 'refactor: call get_suite_by_vendor earlier'?
> Because function like get_vendor_by_suite will need suite_by_vendor
> earlier.
Should that change then not be part of the commit which introduce this need?
Or, alternatively, explain in the commit message something like: "this is in
preparation for..."
> > Many people value how fast mmdebstrap is. I'm hesitant to make such kin=
d of
> > "older than a decade" release detection logic by default because of tha=
t. I'm
> > tending towards recommending that those who use mmdebstrap in a way whe=
re they
> > often have to do that, then they can add the --hook-dir they need. Anot=
her
> > reason against making the check the default is that I would estimate th=
at the
> > vast majority of mmdebstrap (or debootstrap) users do use it together w=
ith
> > distros younger than five years and things should work out-of-the-box f=
or
> > those.
>=20
> I agree for Debian jessie, but Ubuntu 14.04 still gets support. So there
> are users (like me) who want to build for those old releases.
Okay, we are talking about an EOL of in April 2031. That's in 4.3 years.
> Making mmdebstrap support old releases shouldn't be expensive. The code
> would look something like (plus documenting it in the man page):
>=20
> # Quirks for old release before 2017
> sub get_default_hooks_by_suite {
> my $suite =3D shift;
> my $variant =3D shift;
> my $mode =3D shift;
>=20
> if (any { $_ eq $suite } keys ('jessie', 'wheezy', ...)) {
> return ('jessie-or-older');
> } elsif ($suite eq 'xenial') {
> if ($variant eq 'standard' && $mode ne 'root') {
> return ('xenial', 'skip-makedev');
> }
> return ('xenial');
> } elsif (any { $_ eq $suite } keys ('trusty', 'precise', ...)) {
> if ($variant eq 'standard' && $mode ne 'root') {
> return ('jessie-or-older', 'skip-makedev');
> }
> return ('jessie-or-older');
> }
> return ();
> }
>=20
> Would you be open to such kind of change?
This becomes tricky quickly. The idea that you know which suite you are
building for flies out of the window once you either build for a
rolling-release (there is a certain point in unstable on snapshot.debian.org
before which jessie-or-older is required and we never know when "jessie"
starts) or you build from a sources.list without passing the suite name to
mmdebstrap explicitly (you can pass the empty string). There is also the
question of: if there is an automatism, there needs to be a way to disable =
it.
How would a good way to do that look like?
So yes, your proposal would be quick but even if we limit ourselves to Debi=
an,
it would make the assumption that we pass a non-empty suite name and that we
are not using unstable or testing.
Note also, that the skip-makedev hook is not necessarily dependent on the r=
oot
mode hook. If you are inside an unprivileged container, then you are root b=
ut
you still cannot do mknod.
I only now realize that you only need these hooks for the 'standard' varian=
t?
What is your use case to create such chroots? I must admit that I only crea=
ted
--variant=3Dstandard because there was a priority of that name not because =
it was
useful for anything. What is your use-case?
> > > Then sbuild should default to add this hook to support building on old
> > > releases by default.
> >=20
> > Okay, you implement it and you know ubuntu better than I, so I will lea=
ve the
> > naming of this up to you.
>=20
> The drawback of having such a maybe-old-distro hook would that it
> clutters the output even for recent releases.
I only see four additional lines of output when I add the hook to a creatio=
n of
an unstable chroot. Is that too much?
Thanks!
cheers, josch
--===============5340670249975872460==
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Description: signature
Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmsMvIkACgkQ8sulx4+9
g+GyvxAAgCBQmO5tJHKPGiQJtpi0oRqWcfa6LXw7EU/IDylp24F+apTO4lX0Jr51
i7CDEUJQc0soFr2SZNM6dn+nM8TkFIl5HsUYxYy7fXqia+AvIwm5UABgl6rgBN3Y
xO8eXlMm0jXxOyOtkYVbyWCKWSf3aJHSE792iyMsWXu9DzqATe2YOTIVqIY+ll4C
c5wUHJ80UTGWHW035KGO4foUKPZPSrqCi7cvNo+iqT3Ty/Au852ltdmDwgL+WvIf
dglcCRxIfxqcpnZf2MMAdJrT5nOnU6+Y63O4ivoIXGPDrx7hNRYSGEheruajnZIi
Onhu6szyyV3uOcmuXxP41kWCnWIDUpnTgOjVktL+qg12PeSMcgamTOAcQ84boeI8
iAB9iCkUsSZGq2PfeMJJAKnKN8R0V3GIfSIoeW7iza42lk4f3AnP1N3tjp4NXy4v
IGcrWuMy9vVMIOhwCAX2rFovA0C1a1WcCwdn05jFqjUUlAarC4KTJB07RYiBTXuG
RFE0bp9Wbp0910eKrmZV8K3wLvuRLjkKZdUKCmpaHofM2y+GnUohpvaBEDZGORjq
nhpEnPFkQC+S5VMXBj14so/RjjLYrgW6X0ioMD7D7WAd20kYwadUgUH3NwKSsw2N
0oAGdekMEPGAEY5dpHtHIRYTkqRqsrqbwdnuLpQsXk7JimW3l1I=
=8WUA
-----END PGP SIGNATURE-----
--===============5340670249975872460==--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads