Article View: linux.debian.bugs.dist
Article #5182Bug#1154510: mmdebstrap fails to build images for Ubuntu xenial and trusty
From: 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==--
Technical Details
Message-ID:
<O1p2N-d1rv-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<O1iaZ-cXIu-1@gated-at.bofh.it> <O1iaZ-cXIu-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Johannes Schauer Marin Rodrigues <josch@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1154510: mmdebstrap fails to build images for Ubuntu xenial and trusty Date: Fri, 20 Nov 2026 06:10:01 +0100 Message-ID: <O1p2N-d1rv-3@gated-at.bofh.it> References: <O1iaZ-cXIu-1@gated-at.bofh.it> <O1iaZ-cXIu-1@gated-at.bofh.it> X-Original-To: 1154510@bugs.debian.org, Benjamin Drung <bdrung@debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Nov 20 05:05:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Johannes Schauer Marin Rodrigues <josch@debian.org>, 1154510@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: josch@debian.org X-Debian-Pr-Message: followup 1154510 X-Debian-Pr-Package: mmdebstrap X-Debian-Pr-Keywords: ftbfs X-Debian-Pr-Source: mmdebstrap Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="===============4550414742029002022==" MIME-Version: 1.0 Content-Disposition: inline User-Agent: alot/0.0.0 X-Debian-User: josch X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003665 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 163 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 20 Nov 2026 06:03:02 +0100 X-Original-Message-ID: <179515098240.2951.3635647472516703784@localhost> X-Original-References: <179512456377.1844508.10007620892073787783.reportbug@deep-thought> <179512456377.1844508.10007620892073787783.reportbug@deep-thought>