Bug#1140336: fchownat() of /tmp failed: Operation not permitted

Andrius Merkys merkys at debian.org
Thu Jun 25 08:48:04 BST 2026


Hello,

I run into a similar issue when building the attached container using 
apptainer 1.1.2:

Setting up systemd (261-1) ...
Created symlink 
'/etc/systemd/system/multi-user.target.wants/remote-fs.target' -> 
'/usr/lib/systemd/system/remote-fs.target'.
Created symlink 
'/etc/systemd/system/sysinit.target.wants/systemd-pstore.service' -> 
'/usr/lib/systemd/system/systemd-pstore.service'.
Created symlink '/etc/systemd/system/autovt at .service' -> 
'/usr/lib/systemd/system/getty at .service'.
Created symlink 
'/etc/systemd/system/getty.target.wants/getty at tty1.service' -> 
'/usr/lib/systemd/system/getty at .service'.
Initializing machine ID from random generator.
Creating group 'lpadmin' with GID 999.
Creating group 'systemd-journal' with GID 998.
Creating group 'systemd-imds' with GID 997.
Creating user 'systemd-imds' (systemd Instance Metadata) with UID 997 
and GID 997.
Creating group 'systemd-network' with GID 996.
Creating user 'systemd-network' (systemd Network Management) with UID 
996 and GID 996.
fchownat() of /tmp failed: Operation not permitted
fchownat() of /var/tmp failed: Operation not permitted
fchownat() of /tmp/.X11-unix failed: Operation not permitted
fchownat() of /tmp/.ICE-unix failed: Operation not permitted
dpkg: error processing package systemd (--configure):
  old systemd package postinst maintainer script subprocess failed with 
exit status 73

Andrius
-------------- next part --------------
Bootstrap: docker
From: debian:unstable

%post
    apt-get update
    apt-get install --yes cif-linguist cod-tools gemmi groovy libciftools-java libcifxom-java openbabel patch python3-ase python3-pycifrw python3-pymatgen


More information about the Pkg-systemd-maintainers mailing list