[Piuparts-devel] Bug#1126127: Under sbuild/unshare, E: /etc/schroot/schroot.conf: File is not owned by user root
Osamu Aoki
osamu at debian.org
Thu Jan 22 04:46:58 GMT 2026
Package: piuparts
Version: 1.6.0
Severity: normal
X-Debbugs-Cc: Stefano Rivera <stefanor at debian.org>
When using piuparts under sbuild (unstable, amd64) with
~/.config/sbuild/config.pl starting with
```
$chroot_mode = "unshare";
```
piuparts fails as:
```
...
0m0.1s DEBUG: Starting command: ['schroot', '--begin-session', '--chroot', 'unstable-amd64-sbuild', '--session-name', 'unstable-amd64↦
0m0.1s DUMP:
│ E: /etc/schroot/schroot.conf: File is not owned by user root
0m0.1s ERROR: Command failed (status=1): ['schroot', '--begin-session', '--chroot', 'unstable-amd64-sbuild', '--session-name', 'unsta↦
│ E: /etc/schroot/schroot.conf: File is not owned by user root
0m0.1s ERROR: piuparts run ends.
E: Piuparts run failed.
```
Commenting out top line of ~/.config/sbuild/config.pl to use $chroot_mode = "schroot"; doesn't cause above ERROR.
This seems to be very similar bug situation as https://bugs.debian.org/1125784
For now, I will run piuparts under unstable chroot provided through
schroot but this seems best to be fixed piuparts side.
Osamu
-- System Information:
Debian Release: 13.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.17.13+deb13-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages piuparts depends on:
ii debsums 3.0.2.3
ii libjs-sphinxdoc 8.1.3-5
ii lsb-release 12.1-1
ii lsof 4.99.4+dfsg-2
ii mount 2.41-5
ii piuparts-common 1.6.0
ii python3 3.13.5-1
ii python3-debian 1.0.1
Versions of packages piuparts recommends:
ii adequate 0.17.5+b5
ii debootstrap 1.0.141
ii mmdebstrap 1.5.7-1+deb13u1
Versions of packages piuparts suggests:
pn docker.io <none>
ii schroot 1.6.13-7
ii uidmap 1:4.17.4-2
-- no debconf information
More information about the Piuparts-devel
mailing list