[Bug 2133900] Re: sbuild: autopkgtest fails with 'Can't exec "/usr/sbin/chroot": No such file or directory'
Launchpad Bug Tracker
2133900 at bugs.launchpad.net
Fri Dec 5 23:27:24 UTC 2025
This bug was fixed in the package sbuild - 0.91.2ubuntu1
---------------
sbuild (0.91.2ubuntu1) resolute; urgency=medium
* Merge with Debian unstable (LP: #2130171). Remaining changes:
- remove .gitignore files and others
- Ubuntu: Automatically handle mmdebstrap extra args.
This logic probably should live in mmdebstrap but oh well this
works for now
- d/control: Downgrade mmdebstrap Recommends to Suggests,
to avoid MIR/component-mismatch.
- unshare/mmdebstrap: Install ca-certificates when adding https Ubuntu repos
* Dropped changes, included in Debian:
- chroot: Quote escape username to prevent unintended interpolation
+ make sbuild usable for 'user at org.com' users (LP #2109853)
* New changes:
- Cope with lack of /usr/sbin/chroot symlink in coreutils-from-uutils
(LP: #2133900)
sbuild (0.91.2) unstable; urgency=medium
[ Aurelien Jarno ]
* debian/rules: drop dh_installinit override
[ Jochen Sprickerhof ]
* Use schroot on systems without unshare support (Closes: #1120984)
* No longer install example configs from 2007
* Generate deb-src for all apt repos
sbuild (0.91.1) unstable; urgency=medium
[ Jochen Sprickerhof ]
* Fix typo in d/control
* Test if sbuild-schroot is missing before print warning
* Add an other warning in case sbuild-schroot is not installed
* Move iproute2 and uidmap to depends
[ Johannes Schauer Marin Rodrigues ]
* lib/Sbuild/Build.pm: preserve TMPDIR when running autopkgtest
sbuild (0.91.0) experimental; urgency=medium
* Add new sbuild-schroot package
sbuild (0.90.2) unstable; urgency=medium
* Always append newline in binNMU changelog.
Thanks to mjt (Closes: #1111776)
sbuild (0.90.1) unstable; urgency=medium
* Fix build path permissions when building as root
sbuild (0.90.0) unstable; urgency=medium
[ Richard Lewis ]
* man/sbuild.1.in: fix typo in markup
[ Andrea Pappacoda ]
* d/control: drop dependency on gnupg from libsbuild-perl
[ Hiraku Toyooka ]
* Allow BUILD_PATH being empty also in command line options
[ Jochen Sprickerhof ]
* Support UID in /etc/sub(u|g)id (Closes: #1110876)
* Explicitly select the sbuild-build-depends-main-dummy package arch
[ Chris Hofstaedtler ]
* Switch default chroot_mode to unshare
sbuild (0.89.3) unstable; urgency=medium
[ Jochen Sprickerhof ]
* Add option to run apt-get distclean if available
[ Christian Kastner ]
* sbuild-qemu-boot: Drop duplicated EFI loading (Closes: #1106862)
sbuild (0.89.2) unstable; urgency=medium
[ Jochen Sprickerhof ]
* Add hint for --no-clean-source.
Thanks to Andrew Lee
* Add NEWS entry for deprecating sbuild-debian-developer-setup
* rmdir the chroot dir in end_session
[ Carlos Nihelton ]
* chroot: Quote escape username to prevent unintended interpolation
[ Helmut Grohne ]
* support --no-enable-network on the schroot backend for backends matching
/unschroot/ (Closes: #1104553)
sbuild (0.89.1) unstable; urgency=medium
[ Jochen Sprickerhof ]
* Allow BUILD_PATH being empty (Closes: #1103519)
* Set a nonexistent home for the sbuild build user
[ Johannes Schauer Marin Rodrigues ]
* bin/sbuild-usernsexec:
- do not mount non-existing device nodes
- suggest installing iproute2 if 'ip link set lo up' failed
* lib/Sbuild/Conf{Base,}.pm: expand the HELP text of UNSHARE_TMPDIR_TEMPLATE,
UNSHARE_MMDEBSTRAP_DISTRO_MANGLE, CHROOT_ALIASES, CHROOT DISTRIBUTION
* lib/Sbuild/ChrootUnshare.pm:
- print why which unshare_extra_args are applied
- use 'find -mindepth 1 -delete' instead of 'rm -rf' (Closes: #1085646)
* debian/copyright: fix old-fsf-address-in-copyright-file
* debian/control: bump Standards-Version (no changes)
sbuild (0.89.0) unstable; urgency=medium
[ Johannes Schauer Marin Rodrigues ]
* lib/Sbuild/Build.pm:
- improve error message for when a source package was not found
- if unpacked source directory already exists in schroot mode with
persistent mountpoint on /build (Closes: #1091222)
* To set an unreproducible build path, BUILD_PATH has to be the empty string
* man/sbuild.1.in:
- improve option text. Thanks to Leopold Palomo-Avellaneda
- document the existance of new autopkgtest backends
* debian/tests/get_default_release.py: support base-files from
proposed-updates (Closes: #1057768)
* lib/Sbuild/Conf.pm:
- do not list 'sid' in CHROOT_ALIASES (Closes: #1099551)
- move NOLOG to other Logging options
* bin/sbuild:
- print dpkg-source invocations with --debug (Closes: #1094982)
- fix error message about missing --maintainer when using --make-binNMU
or --append-to-version (Closes: #1095063)
* Store the original value of $dsc in 'DSC Orig' and use it in
run_autopkgtest (Closes: #1090360)
* Lintian 2.77.0 reversed the exit status for program errors and policy
violations (Closes: #1032302)
* lib/Sbuild/ChrootUnshare.pm:
- check if the unshared user can 'touch' the unpack directory
- warn if primary effective group id does not match the group id of the
user account (Closes: #1101753)
* Add new option --hide-log-sections to hide log sections (Closes: #1050147)
* disallow relative build path
* document a workaround for running autopkgtest backends that require
$HOME to be set (Closes: #1033352)
* Do not create a binary-only=yes d/changelog entry if --binNMU=0, relax
binNMU restrictions (Closes: #963756)
* bin/sbuild-usernsexec: Add entry for / in /proc/mounts.
Thanks to Helmut Grohne <helmut at subdivi.de> (Closes: #1087430)
* lib/Sbuild/Options.pm: add --log-filename-ts-format (Closes: #834736)
[ Jochen Sprickerhof ]
* Don't run dpkg-buildtree for old dpkg (Closes: #1100636)
* Make sure PATH is set when executing commands (Closes: #1101928)
* Deprecate sbuild-debian-developer-setup (Closes: #1101753)
* Fix uninitialized value in Build.pm
[ Daniel Gröber ]
* bin/sbuild-debian-developer-setup:
- Pass --arch through to sbuild-createchroot
- Tweak schroot alias logic for multiple arches (Closes: #1100769)
[ Aurelien Jarno ]
* sbuild.1.in: improve the aspcud criteria for experimental
[ Chris Hofstaedtler ]
* Remove invocation of host gpg
* Remove CHROOT_MODE=sudo (Closes: #731573)
[ Richard Lewis ]
* debian/tests/unshare: skip test if mmdebstrap fails
* Build.pm:
- Split log_file() out of open_build_log()
- Store name of the log file
- Define %SBUILD_LOG_DIR, %SBUILD_LOG_BASENAME and %SBUILD_LOG_PATH
- Define %SRCPACKAGE and %SRCPACKAGE_VERSION
* sbuild.1.in: Improve documentation of percent-escapes
[ Guillem Jover ]
* Buildd::Uploader: Update dupload output scrapping against latest version
* Update dupload queue names
[ Sebastian Crane ]
* Allow using doas in sbuild-debian-developer-setup
[ Jakob Haufe ]
* Error out when both DOAS_USER and SUDO_USER are set
sbuild (0.88.5) unstable; urgency=medium
* distro_mangle: drop duplication in regex
* build_as_root_when_needed: support older dpkg
sbuild (0.88.4) unstable; urgency=medium
[ Samuel Thibault ]
* bin/buildd-vlog: Fix against perl 5.40.
[ Richard Lewis ]
* .perltidyrc: Use tabs for consistency with .editorconfig
* Add test/check-perltidy to run perltidy on perl files
* run test/check-perltidy -w
* make lib/Sbuild/Sysconfig.pm.in perltidy
* make everything perltidy - additional changes from unstable version
[ Jochen Sprickerhof ]
* Obey $TMPDIR for unshare_tmpdir_template
* Use root for Rules-Requires-Root: binary-targets
(enable with $build_as_root_when_needed = 1)
* Error out when running sbuild-* in unshare mode (Closes: #1094239)
* AUTOPKGTEST_OPTIONS: no longer pass --apt-upgrade to unshare
* sbuild-usernsexec: unlink resolv.conf before creating it (Closes: #1071736)
* Use GET to set WANNA_BUILD_SSH_CMD value
-- Nick Rosbrook <enr0n at ubuntu.com> Wed, 03 Dec 2025 16:59:32 -0500
** Changed in: sbuild (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2133900
Title:
sbuild: autopkgtest fails with 'Can't exec "/usr/sbin/chroot": No such
file or directory'
Status in rust-coreutils package in Ubuntu:
Confirmed
Status in sbuild package in Ubuntu:
Fix Released
Bug description:
sbuild autopkgtest currently fails[1] with:
116s I: Setting up the chroot...
116s Can't exec "/usr/sbin/chroot": No such file or directory at /usr/share/perl5/Sbuild/Chroot.pm line 812.
116s Failed to exec: /usr/sbin/chroot: No such file or directory at /usr/share/perl5/Sbuild/Chroot.pm line 813.
116s Can't exec "/usr/sbin/chroot": No such file or directory at /usr/share/perl5/Sbuild/Chroot.pm line 812.
116s Failed to exec: /usr/sbin/chroot: No such file or directory at /usr/share/perl5/Sbuild/Chroot.pm line 813.
116s I: Successfully set up resolute chroot.
116s I: Run "sbuild-adduser" to add new sbuild users.
116s E: Failed to create group sbuild
116s Failed to set up chroot
116s E: Error creating chroot session: skipping apt update
This is because coreutils-from-uutils ships /usr/bin/chroot, not
/usr/sbin/chroot.
[1] https://autopkgtest.ubuntu.com/results/autopkgtest-
resolute/resolute/amd64/s/sbuild/20251203_071606_7bda1@/log.gz
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2133900/+subscriptions
More information about the foundations-bugs
mailing list