Package: systemd Version: 244.1-3 Severity: important Following #950533, I also had a problem upgrading systemd in a chroot, where files in /, /var, /var/log are all owned by sbuild:sbuild. The upgrading script tried to create a dir /var/log/journal/, owned by root:root, and then failed without a lot of clues...
$ sudo sbuild-update --upgrade unstable-amd64-sbuild I: 06ccache-tmpfs: Set cache size limit to 4.0 GB unstable-amd64-sbuild: Performing upgrade. Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages have been kept back: binutils binutils-common binutils-x86-64-linux-gnu cpp-7 cpp-8 cpp-9 g++-9 gcc-7 gcc-7-base gcc-8 gcc-8-base gcc-9 gcc-9-base libasan4 libasan5 libatomic1 libbinutils libc-dev-bin libc6 libc6-dev libcc1-0 libcilkrts5 libgcc-7-dev libgcc-8-dev libgcc-9-dev libgcc1 libglib2.0-0 libgomp1 libitm1 liblsan0 libmpx2 libp11-kit0 libquadmath0 libstdc++-9-dev libstdc++6 libtsan0 libubsan0 libubsan1 login passwd The following packages will be upgraded: systemd-sysv zlib1g 2 upgraded, 0 newly installed, 0 to remove and 40 not upgraded. 3 not fully installed or removed. Need to get 0 B/194 kB of archives. After this operation, 1024 B disk space will be freed. Setting up systemd (244.1-3) ... Detected unsafe path transition /var → /var/log during canonicalization of /var/log/journal. Detected unsafe path transition /var → /var/log during canonicalization of /var/log/journal. Detected unsafe path transition /var → /var/log during canonicalization of /var/log/journal. Detected unsafe path transition /var → /var/log during canonicalization of /var/log/journal. dpkg: error processing package systemd (--configure): installed systemd package post-installation script subprocess returned error exit status 73 Errors were encountered while processing: systemd E: Sub-process /usr/bin/dpkg returned an error code (1) Exiting from upgrade with status 100. I had to log in to the chroot, "chown sbuild:sbuild /var/log/journal/", and then the upgrade succeeded. -- Package-specific info: -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'stable'), (100, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.4.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages systemd depends on: ii adduser 3.118 ii libacl1 2.2.53-5 ii libapparmor1 2.13.3-7 ii libaudit1 1:2.8.5-2+b1 ii libblkid1 2.34-0.1 ii libc6 2.29-9 ii libcap2 1:2.27-1 ii libcryptsetup12 2:2.2.2-2 ii libgcrypt20 1.8.5-3 ii libgnutls30 3.6.11.1-2 ii libgpg-error0 1.36-7 ii libidn2-0 2.2.0-2 ii libip4tc2 1.8.4-2 ii libkmod2 26+20191223-1 ii liblz4-1 1.9.2-2 ii liblzma5 5.2.4-1+b1 ii libmount1 2.34-0.1 ii libpam0g 1.3.1-5 ii libpcre2-8-0 10.34-7 ii libseccomp2 2.4.2-2 ii libselinux1 3.0-1 ii libsystemd0 244.1-3 ii mount 2.34-0.1 ii util-linux 2.34-0.1 Versions of packages systemd recommends: ii dbus 1.12.16-2 Versions of packages systemd suggests: ii policykit-1 0.105-26 ii systemd-container 244.1-3 Versions of packages systemd is related to: pn dracut <none> ii initramfs-tools 0.136 pn libnss-systemd <none> ii libpam-systemd 244.1-3 ii udev 244.1-3 -- Configuration Files: /etc/systemd/logind.conf changed [not included] -- no debconf information -- Félix
signature.asc
Description: PGP signature