Package: sbuild Version: 0.80.1 Severity: normal Hi,
on a freshly installed Debian unstable: $ sudo apt install sbuild mmdebstrap $ sbuild-createchroot --debootstrap=mmdebstrap \ --make-sbuild-tarball ~/.cache/sbuild/unstable-amd64.tar.gz \ unstable $(mktemp -d) # according to man mmdebstrap I: SUITE: unstable I: TARGET: /tmp/tmp.eLWAANve3b I: MIRROR: http://deb.debian.org/debian I: Running mmdebstrap --arch=amd64 --variant=buildd --verbose --include=fakeroot,build-essential --components=main --resolve-deps --no-merged-usr unstable /tmp/tmp.eLWAANve3b http://deb.debian.org/debian I: the option --resolve-deps is a no-op. It only exists for compatibility with some debootstrap wrappers. I: the option --no-merged-usr is a no-op. It only exists for compatibility with some debootstrap wrappers. I: automatically chosen mode: unshare I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: directory I: running apt-get update... [...] I: cleaning package lists and apt cache... Reading package lists... I: success in 38.6073 seconds E: failed running setup script: cannot open /etc/passwd at (eval 20) line 1, <PH> line 1. I guess this is due to the unshare mode, whereas sbuild-createchroot tries to modify <TMPDIR>/etc/passwd as the normal user: $ ll /tmp/tmp.eLWAANve3b/etc/passwd -rw-r--r-- 1 100000 100000 922 5. Jan 23:40 /tmp/tmp.eLWAANve3b/etc/passwd Cheers Jochen -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-1-amd64 (SMP w/8 CPU threads) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages sbuild depends on: ii adduser 3.118 ii libsbuild-perl 0.80.1 ii perl 5.32.0-6 Versions of packages sbuild recommends: ii autopkgtest 5.15 ii debootstrap 1.0.123 ii schroot 1.6.10-11+b1 Versions of packages sbuild suggests: pn deborphan <none> ii e2fsprogs 1.45.6-1 ii kmod 27+20200310-2 ii wget 1.21-1 -- no debconf information