Your message dated Mon, 09 Nov 2026 22:34:45 +0000
with message-id <[email protected]>
and subject line Bug#1098743: fixed in autopkgtest 6.1
has caused the Debian Bug report #1098743,
regarding autopkgtest: cannot create normal user in a testbed that lacks useradd
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1098743: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098743
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: autopkgtest
Version: 5.44
Severity: normal
When using an expendable container or VM (one with revert-full-system),
recent-ish autopkgtest versions automatically create a normal user
to be used for testing. I think this is preferable to requiring each
virtualization backend to implement a heuristic to guess at a pre-existing
user in the container/VM image that would be suitable for this purpose,
and in future I'd like to move towards relying on this for all backends
that use an expendable testbed.
However, this mechanism as currently implemented does not work as intended
if the testbed is extremely minimal, for example mmdebstrap --variant=apt.
Specifically, it requires the useradd program, from the passwd package.
This is in the same sort of territory as #1098646 [1] and
autopkgtest!536 [2], where creation of testbeds for autopkgtest needs
to make a trade-off between two competing factors:
1. make the testbed as minimal as possible, so that if some package foo
requires a high-Priority package bar, but is missing the dependency,
autopkgtest is able to exhibit the bug so that it can be reported;
2. but also make the testbed contain enough packages for autopkgtest to do
its job in a reasonably efficient and reasonably normal way, without
needing to reinvent all of Debian's wheels
[1] https://bugs.debian.org/1098646
[2] https://salsa.debian.org/ci-team/autopkgtest/-/merge_requests/536
Steps to reproduce
------------------
To reproduce, create a minimal testbed:
mmdebstrap --variant=apt sid | \
autopkgtest-build-podman --tarball=- --vendor=debian --release=sid
and use it to test a package that does not have the needs-root
restriction:
autopkgtest hello -- podman localhost/autopkgtest/debian:sid
Expected result
---------------
Testing succeeds
Actual result
-------------
The create-normal-user script fails with "Neither adduser nor useradd
is installed".
This is not podman-specific: in principle this could be reproducible
with any backend that does not guarantee to install the passwd package,
and does not attempt to autodetect or create a suggested-normal-user.
It is probably not reproducible with autopkgtest-virt-unshare, which
always creates a suggested-normal-user named "unshare", and implicitly
requires passwd for that purpose. Similarly it is not reproducible with
images generated by autopkgtest-build-qemu, which always creates a user
named 'user' (again implicitly assuming that passwd is installed).
Workarounds
-----------
Workaround (1): Use mmdebstrap --variant=minbase, which includes
non-Essential Priority: required packages, notably passwd. In unstable
at the time of writing this means adding the following packages:
e2fsprogs, login, login.defs, mount, passwd, tzdata;
plus debconf, libpam-modules{,-bin}, libpam-runtime and mawk which are
formally non-Essential, but are transitively Essential. It is this version
that is currently documented in autopkgtest-{build,virt}-podman.
Workaround (2): Use mmdebstrap --variant=apt --include=passwd, which adds
login.defs, passwd and some more shared libraries, but not mount or tzdata.
Possible solutions
------------------
Possible solution (1): Install passwd as part of
setup-commands/setup-testbed, and/or install it before running the
create-normal-user script. Accept that we will be unable to exhibit
some bugs of the form "package foo requires passwd but lacks Depends:
passwd". This is the same tradeoff as the one we currently make by
preinstalling dpkg-dev, eatmydata and other convenient packages in
setup-commands/setup-testbed.
Possible solution (2): Before running create-normal-user, detect whether
passwd is installed. If not, install it before running create-normal-user,
then purge it and do an apt autoremove afterwards. This adds avoidable
complexity and will make test setup slower, but ensures that our testbed
can be very minimal, allowing autopkgtest to detect more bugs in the
package under test.
Possible solution (3): Write code in create-normal-user to find an unused
uid/gid pair, then append a normal user to /etc/passwd and /etc/group
using only Essential programs (getent and echo), with no locking or other
nice things (this is hopefully an acceptable limitation for a container
or VM that we already know is disposable). This adds avoidable complexity
and will make test setup slower, but ensures that our testbed can be
very minimal, allowing autopkgtest to detect more bugs in the package
under test.
Non-solutions
-------------
We cannot create the normal user and then revert the testbed before
testing (similar in spirit to autopkgtest!536), because if we did that,
the normal user would disappear when the testbed was reverted.
smcv
--- End Message ---
--- Begin Message ---
Source: autopkgtest
Source-Version: 6.1
Done: Paride Legovini <[email protected]>
We believe that the bug you reported is fixed in the latest version of
autopkgtest, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Paride Legovini <[email protected]> (supplier of updated autopkgtest package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Mon, 09 Nov 2026 22:43:00 +0100
Source: autopkgtest
Architecture: source
Version: 6.1
Distribution: unstable
Urgency: medium
Maintainer: Debian CI team <[email protected]>
Changed-By: Paride Legovini <[email protected]>
Closes: 817079 909534 987046 1010437 1020699 1021497 1029414 1063533 1076343
1077620 1096110 1098743 1113955 1123760 1134551 1135606 1142949 1150273 1150850
1152781
Changes:
autopkgtest (6.1) unstable; urgency=medium
.
[ Paride Legovini ]
* New baseline testbed requirements:
- Update baseline testbed requirements (apt 1.2.35, python3.5.1)
- Drop fallback code and workarounds for deprecated testbeds
* Full refactor of code copying data to and from the testbed
* Document the rw-build-tree restriction as obsolete
* Treat all source trees the same way: trees containing debian/files
no longer default to --no-built-binaries
* await-boot: also wait for network to be ready before returning
* VirtSubproc: terminate processes before killing them (Closes: #987046)
* Update name of schroot virt server across project (Closes: #1096110)
* testdesc: always use python-debian architecture matching
* testdesc: reject invalid architecture syntax (Closes: #1113955)
* testdesc: follow deb822(5) rules for comments in d/t/control
(Closes: #1021497)
* autopkgtest.1: clarify override control path (Closes: #1135606)
* doc: register HTML documentation with doc-base (Closes: #1029414)
* a-virt-qemu changes:
- use host CPU passthrough for KVM (Closes: #1123760)
- bump reboot timeout from 60s to 900s (Closes: #1077620)
- warn about slowness when /dev/kvm is not available
- fix --baseimage (lacking a terminating newline) (Closes: #1134551)
- set baseimage serial as a device property for compatibility
with QEMU >= 3.0
- enable exit-with-parent on qemu 10.2 and later
* a-build-qemu: fix image build as non-root with proxy
* New cli option: --fail-fast to skip tests after the first failure
* a-build-lxc: remove broken eatmydata LD_PRELOAD (Closes: #1010437)
* a-virt-unshare changes:
- keep su out of PID 1 (workaround for su(1) bug)
- use create-normal-user instead of useradd
- fix cache path when XDG_CACHE_HOME is set.
Thanks to David Kalnischkies (Closes: #1150273)
- kill test processes when their caller exits
* Put testbed scratch directory under /var/tmp
* create-normal-user: create accounts without adduser or useradd
(Closes: #1098743)
* VirtSubproc: clean up when scratch allocation fails after open
* a-virt-lxd changes:
- auxverb: do not execute commands with --force-noninteractive.
Thanks to Colin Watson (Closes: #1142949)
- bring back --vm to force a VM over a container.
Thanks to Alessandro Astone
- stop using ephemeral LXD/Incus instances
- separate instance creation from startup
- keep output of lxc/incus start off the virt server protocol
* Restructure downtmp (= scratch directory) handling:
- Separate downtmp creation from capability handling
- Use mode 755 for non-shared testbed scratch directories
- Drop isolation-dependent artifact directory permissions
- Document security implications of host-shared scratch
- tests: verify that shared downtmp actually works
* a-build-lxd changes:
- replace lsb_release with /etc/os-release parsing
- resolve the default remote explicitly (Closes: #1152781)
- force release alignment when RELEASE is specified
- add --include option to add extra packages to image
* wrapper: run tests in their own session (Closes: #1150850)
* Document that tests run in their own process group
* VirtSubproc command(): avoid mutating results when adding "ok" status
* Create AUTOPKGTEST_TMP outside the scratch directory (Closes: #909534)
* Separate test dependency installation from testbed package setup
* Remove unused packages when installing test dependencies
* Drop support for multi-line --add-apt-sources
* Report skips for selected Test-Command tests
* Use testbed snapshots between package tests on LXD/Incus
- Reuse installed dependencies with testbed snapshots (Closes: #1063533)
- Group tests with identical dependencies to reuse snapshots
- Prefetch shared test dependencies
- Avoid full source tree transfers when the testbed can be reused
(Together with other changes Closes: #817079)
* Changes in the setup-testbed script:
- only install python3-minimal in QEMU testbed images
- add build-essential, apport to the list of packages to purge
- add support for configuring network via systemd-networkd
- do not uninstall xml-core (Closes: #1076343)
- avoid host network interface discovery inside chroots
* test optimizations (Closes: #1020699):
- move generic container coverage to UnshareRunner
- reuse built binaries in Provides checks
- read the unshare testbed APT version once per image
- tests: cache common package downloads in testbed images
* Changes in autopkgtest's own tests:
- d/tests: add incus test and run it in GitLab CI
- d/t/control: depend on crun for the podman tests
- d/t/installed: make mock source package valid
- d/t/unshare: fix invocation of sysctl(8)
- d/t/unshare: mark the preinstalled dpkg-dev as auto installed
- tests: sanitize paths reported by ldd(1) in the chroot harness
.
[ Benjamin Drung ]
* ruff: refactoring for increased readability
.
[ Christian Kastner ]
* Introduce timeout (25mins) for lack of forward progress
.
[ Pierre-Elliott Bécue ]
* virts: homogenise profile sourcing with incus by silencing also stdout
* adt_testbed: debug_fail runs now preserve lastsend
.
[ Simon Deziel ]
* Stop using lxd-installer, install the LXD snap directly
Checksums-Sha1:
12d5018d3be8f5c8569ec6a4fefe4608c3901e8b 2779 autopkgtest_6.1.dsc
9090b49b8027250f45ed80a01f04e780797c961a 264376 autopkgtest_6.1.tar.xz
dcb34894c18c56fba8e9157ac854a72cf3dbf654 473032 autopkgtest_6.1.git.tar.xz
a78d42df8fc3be4d41d71dd16b1f7715d913da82 17737 autopkgtest_6.1_source.buildinfo
Checksums-Sha256:
3fb671aa27d7d9f8de8e722d21d6034cf3a3090bea5b598a237e836d8ff4f3a6 2779
autopkgtest_6.1.dsc
79b8e5204cb784e5fbf65cf8c8f1acffe60f557ea827e74e10a1d5cdb80fb047 264376
autopkgtest_6.1.tar.xz
7b266e1dabab9bbb383ffa852e0811cd09e2a82e4068e534780668f3100f73fb 473032
autopkgtest_6.1.git.tar.xz
8603eaa6b2a5ed6601a24ad3064b577249feba09a108e151f753ccc89bf4230a 17737
autopkgtest_6.1_source.buildinfo
Files:
3e138a7659ab227850eccaf7b6a1f767 2779 devel optional autopkgtest_6.1.dsc
6dd187050249699ae3e985e7bbebc7b6 264376 devel optional autopkgtest_6.1.tar.xz
1daeae819ee35d4aeac3549787e77cbd 473032 devel None autopkgtest_6.1.git.tar.xz
4bfc1d664e011966e0e7fb14093c0e53 17737 devel optional
autopkgtest_6.1_source.buildinfo
Git-Tag-Info: tag=b417c65fa222de1de3ec6a8b69c6ece70e9a46eb
fp=561ad585eed766921ba8dd96d65861883e014db9
Git-Tag-Tagger: Paride Legovini <[email protected]>
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmryRTQACgkQYG0ITkaD
wHmM8g//aHUM1RMlK/Q+StNXvMmtdn5WBAvRZQDuXAJcRoWYEaxabAKdRqSBFLmb
Az85Wlnmmax83HIJghXOtue2i2PEU9IN48mBP+hzIw1cNi4BQPbiC1ZBNxtFVNtE
uavzy52KkO1KnDDF7feSSjL19EFGZ9/8ygX49n/pvFLKaNwMYZamF8DupNozWMyc
zbBY2np2KYzidqv9dnn8MOYTgGt61/H3RT1UwWME6roIC/ZmDvLO6buv2BCrm+YF
jnAdjOGbY7ht/HyYEcMvDqvTZy1n/yZd7shcNK+R0vPHvkK7NuD7Z45gOuCkXo0h
zTz3MBdu/eLCIwbBWTRcBNk9iDRYJlm2Ni4MaQPU4xVa7FEocbk1MpWXDtwSJHPh
IKKlB4z5DUg5KgC5QGAlfOkNR/Z7umnnVGjdq9HaNI/8MV308YRJck3+YbCIhNnO
D5sVa8QbvVndtui6u/wfhigs5pLIpxYsvhZ54/cy/Mnc3mOTn617c1MiUf7LKJYc
pwCROxzfTU3oJ54TEgPYPivUADbQqfeRiXC0/twYI20JNyReVF1evfUEguuv+YmS
c/q5WJ9a+CMrKYQpOyY17k2Gmo6EHhJi6drGu/oJOgdo8NA+cIcybcDf+b0RlwU2
VtvNXKgNJNMLd2EKifTi09SwKYhni8IBOwIW9zCjeSI9CuDRxao=
=kvJi
-----END PGP SIGNATURE-----
pgpl6NUnaxBrg.pgp
Description: PGP signature
--- End Message ---