systemd: Failed to enable services after upgrade
Describe your issue
What's the expected behaviour?
I should run sudo apk upgrade -a
without it report systemd-related errors.
What's the current behaviour?
I ran sudo apk upgrade -a
and got the following systemd-related errors:
Executing systemd-services-9-r0.trigger
=> enable zram-init
Failed to enable unit: Unit file zram-init.service does not exist.
=> enable -qq
Too few arguments.
=> enable tmpfs
Failed to enable unit: Unit file tmpfs.service does not exist.
=> enable -qq
Too few arguments.
How to reproduce your issue?
Unsure, it happened during an upgrade.
What device are you using?
OnePlus 6
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v24.06
-
v23.12
(supported until 2024-07-16) -
edge ( master_staging_systemd
branch) -
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
-
GNOME Shell on Mobile -
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) Please post the output of sxmo_version.sh
-
Other: Please fill out
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
2024-06-15
Additional information
Full log:
crocomire:~$ sudo apk upgrade -a
The following packages will be REMOVED:
mdev-conf webrtc-audio-processing
The following packages will be DOWNGRADED:
libpulse libpulse-mainloop-glib pulseaudio pulseaudio-alsa pulseaudio-bluez pulseaudio-lang pulseaudio-utils
The following NEW packages will be installed:
iskey pulseaudio-wireplumber
The following packages will be upgraded:
cups-libs cyrus-sasl glib glib-lang gnome-mobile-extensions-app gnome-shell-mobile gnome-shell-mobile-lang gnome-shell-mobile-schemas gst-plugin-pipewire gst-plugins-bad gst-plugins-bad-lang gst-plugins-base
gst-plugins-base-lang gst-plugins-good gst-plugins-good-lang gstreamer gstreamer-lang gstreamer-ptp-helper libproxy libsasl lollypop lollypop-lang pipewire pipewire-lang pipewire-libs postmarketos-base
postmarketos-base-mesa postmarketos-base-nftables postmarketos-base-nofde postmarketos-base-ui postmarketos-base-ui-audio-pulseaudio postmarketos-base-ui-flatpak postmarketos-base-ui-networkmanager
postmarketos-base-ui-networkmanager-usb-tethering postmarketos-base-ui-wifi-wpa_supplicant postmarketos-base-ui-x11 postmarketos-default-camera postmarketos-initramfs py3-gst systemd systemd-journald systemd-libs
systemd-logind systemd-timesyncd systemd-udevd systemd-x11
Need to download 30 MiB of packages.
After this operation, 508 KiB of disk space will be freed.
Do you want to continue [Y/n]?
(1/57) Upgrading glib (2.80.2-r0 -> 2.80.3-r0)
(2/57) Upgrading systemd-libs (255.2-r2 -> 255.2-r5)
(3/57) Downgrading libpulse (9999_git20220621-r2 -> 17.0-r1)
(4/57) Downgrading libpulse-mainloop-glib (9999_git20220621-r2 -> 17.0-r1)
(5/57) Upgrading systemd-journald (255.2-r2 -> 255.2-r5)
(6/57) Upgrading systemd-logind (255.2-r2 -> 255.2-r5)
(7/57) Upgrading systemd (255.2-r2 -> 255.2-r5)
(8/57) Upgrading cups-libs (2.4.9-r0 -> 2.4.10-r0)
(9/57) Upgrading gstreamer (1.24.3-r1 -> 1.24.4-r0)
(10/57) Upgrading gstreamer-ptp-helper (1.24.3-r1 -> 1.24.4-r0)
(11/57) Upgrading gst-plugins-base (1.24.3-r0 -> 1.24.4-r0)
(12/57) Upgrading gst-plugins-bad (1.24.3-r0 -> 1.24.4-r0)
(13/57) Upgrading libproxy (0.5.6-r0 -> 0.5.7-r0)
(14/57) Upgrading systemd-udevd (255.2-r2 -> 255.2-r5)
(15/57) Upgrading libsasl (2.1.28-r6 -> 2.1.28-r7)
(16/57) Upgrading cyrus-sasl (2.1.28-r6 -> 2.1.28-r7)
(17/57) Installing iskey (1-r0)
(18/57) Upgrading postmarketos-base-nofde (32-r4 -> 32-r5)
(19/57) Upgrading postmarketos-initramfs (2.7.1-r0 -> 3.1.0-r0)
(20/57) Purging mdev-conf (4.7-r0)
(21/57) Upgrading postmarketos-base (32-r4 -> 32-r5)
Executing postmarketos-base-32-r5.post-upgrade
Failed to enable unit: Unit file zram-init.service does not exist.
Too few arguments.
Failed to enable unit: Unit file tmpfs.service does not exist.
(22/57) Upgrading postmarketos-base-mesa (32-r4 -> 32-r5)
(23/57) Upgrading gnome-shell-mobile-schemas (99945_git20240426-r2 -> 99945_git20240610-r0)
(24/57) Upgrading pipewire-libs (1.0.6-r4 -> 1.0.6-r5)
(25/57) Upgrading gst-plugin-pipewire (1.0.6-r4 -> 1.0.6-r5)
(26/57) Upgrading gst-plugins-good (1.24.3-r0 -> 1.24.4-r0)
(27/57) Upgrading systemd-x11 (255.2-r2 -> 255.2-r5)
(28/57) Downgrading pulseaudio (9999_git20220621-r2 -> 17.0-r1)
(29/57) Downgrading pulseaudio-bluez (9999_git20220621-r2 -> 17.0-r1)
(30/57) Downgrading pulseaudio-alsa (9999_git20220621-r2 -> 17.0-r1)
(31/57) Installing pulseaudio-wireplumber (17.0-r1)
ERROR: pulseaudio-wireplumber-17.0-r1: trying to overwrite usr/share/wireplumber/wireplumber.conf.d/50-pulseaudio.conf owned by postmarketos-base-ui-audio-pulseaudio-23-r0.
(32/57) Upgrading gnome-shell-mobile (99945_git20240426-r2 -> 99945_git20240610-r0)
(33/57) Upgrading gnome-mobile-extensions-app (99945_git20240426-r2 -> 99945_git20240610-r0)
(34/57) Upgrading gstreamer-lang (1.24.3-r1 -> 1.24.4-r0)
(35/57) Upgrading gst-plugins-bad-lang (1.24.3-r0 -> 1.24.4-r0)
(36/57) Upgrading glib-lang (2.80.2-r0 -> 2.80.3-r0)
(37/57) Upgrading gst-plugins-base-lang (1.24.3-r0 -> 1.24.4-r0)
(38/57) Upgrading gnome-shell-mobile-lang (99945_git20240426-r2 -> 99945_git20240610-r0)
(39/57) Downgrading pulseaudio-lang (9999_git20220621-r2 -> 17.0-r1)
(40/57) Upgrading gst-plugins-good-lang (1.24.3-r0 -> 1.24.4-r0)
(41/57) Upgrading py3-gst (1.24.3-r0 -> 1.24.4-r0)
(42/57) Upgrading lollypop (1.4.39-r0 -> 1.4.40-r0)
(43/57) Upgrading lollypop-lang (1.4.39-r0 -> 1.4.40-r0)
(44/57) Upgrading postmarketos-base-nftables (32-r4 -> 32-r5)
(45/57) Upgrading pipewire (1.0.6-r4 -> 1.0.6-r5)
Executing pipewire-1.0.6-r5.post-upgrade
(46/57) Upgrading pipewire-lang (1.0.6-r4 -> 1.0.6-r5)
(47/57) Upgrading postmarketos-default-camera (23-r0 -> 25-r0)
(48/57) Upgrading postmarketos-base-ui-wifi-wpa_supplicant (23-r0 -> 25-r0)
Executing postmarketos-base-ui-wifi-wpa_supplicant-25-r0.post-upgrade
Too few arguments.
(49/57) Downgrading pulseaudio-utils (9999_git20220621-r2 -> 17.0-r1)
(50/57) Upgrading postmarketos-base-ui-audio-pulseaudio (23-r0 -> 25-r0)
(51/57) Upgrading postmarketos-base-ui (23-r0 -> 25-r0)
Executing postmarketos-base-ui-25-r0.post-upgrade
(52/57) Upgrading postmarketos-base-ui-flatpak (23-r0 -> 25-r0)
(53/57) Upgrading postmarketos-base-ui-x11 (23-r0 -> 25-r0)
(54/57) Upgrading postmarketos-base-ui-networkmanager (23-r0 -> 25-r0)
(55/57) Upgrading postmarketos-base-ui-networkmanager-usb-tethering (23-r0 -> 25-r0)
(56/57) Upgrading systemd-timesyncd (255.2-r2 -> 255.2-r5)
(57/57) Purging webrtc-audio-processing (0.3.1-r6)
Executing busybox-1.36.1-r31.trigger
Executing glib-2.80.3-r0.trigger
Warning: Schema “org.freedesktop.ibus” has path “/desktop/ibus/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.freedesktop.ibus.general” has path “/desktop/ibus/general/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.freedesktop.ibus.general.hotkey” has path “/desktop/ibus/general/hotkey/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.freedesktop.ibus.panel” has path “/desktop/ibus/panel/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.freedesktop.ibus.panel.emoji” has path “/desktop/ibus/panel/emoji/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.crypto.cache” has path “/desktop/gnome/crypto/cache/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.crypto.pgp” has path “/desktop/gnome/crypto/pgp/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.seahorse” has path “/apps/seahorse/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.seahorse.manager” has path “/apps/seahorse/listing/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.locale” has path “/system/locale/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy” has path “/system/proxy/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.http” has path “/system/proxy/http/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.https” has path “/system/proxy/https/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.ftp” has path “/system/proxy/ftp/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.socks” has path “/system/proxy/socks/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Executing dbus-9991.14.10-r1.trigger
Executing gtk-update-icon-cache-3.24.42-r0.trigger
Executing postmarketos-mkinitfs-2.5.0-r0.trigger
12:45:25.962585 Generating for kernel version: 6.9.0-sdm845
12:45:25.962797 Output directory: /boot
12:45:25.962822 == Generating initramfs ==
12:45:25.962835 - Using compression format zstd with level "fast"
12:45:25.963189 - Searching for directories specified in /usr/share/mkinitfs/dirs
12:45:25.963564 -- Creating directories from: /usr/share/mkinitfs/dirs/00-initramfs-base.dirs
12:45:25.964117 - Searching for directories specified in /etc/mkinitfs/dirs
12:45:25.964547 - Searching for file lists from /usr/share/mkinitfs/files
12:45:25.964729 -- Including files from: /usr/share/mkinitfs/files/00-device-oneplus-enchilada-modules.files
12:45:25.965550 -- Including files from: /usr/share/mkinitfs/files/00-initramfs-base.files
12:45:26.032518 -- Including files from: /usr/share/mkinitfs/files/10-initramfs-sdm845.files
12:45:26.033841 -- Including files from: /usr/share/mkinitfs/files/30-postmarketos-bootsplash.files
12:45:26.035826 -- Including files from: /usr/share/mkinitfs/files/postmarketos-base.files
12:45:26.036110 - Searching for file lists from /etc/mkinitfs/files
12:45:26.036588 - Searching for hook scripts from /usr/share/mkinitfs/hooks
12:45:26.037017 - Searching for hook scripts from /etc/mkinitfs/hooks
12:45:26.037873 - Searching for kernel modules from /usr/share/mkinitfs/modules
12:45:26.038015 -- Including modules from: /usr/share/mkinitfs/modules/00-default.modules
12:45:26.080063 -- Including modules from: /usr/share/mkinitfs/modules/00-device-oneplus-enchilada.modules
12:45:26.085524 - Searching for kernel modules from /etc/mkinitfs/modules
12:45:26.679537 initramfs completed in: 0.72s
12:45:26.679624 Unknown or no compression format set, using gzip
12:45:26.679635 == Generating initramfs-extra ==
12:45:26.679643 - Using compression format gzip with level "default"
12:45:26.679692 - Searching for file lists from /usr/share/mkinitfs/files-extra
12:45:26.679951 -- Including files from: /usr/share/mkinitfs/files-extra/00-initramfs-extra-base.files
12:45:26.713569 - Searching for file lists from /etc/mkinitfs/files-extra
12:45:26.714036 - Searching for hook scripts from /usr/share/mkinitfs/hooks-extra
12:45:26.714517 - Searching for hook scripts from /etc/mkinitfs/hooks-extra
12:45:26.715160 - Searching for kernel modules from /usr/share/mkinitfs/modules-extra
12:45:26.715566 - Searching for kernel modules from /etc/mkinitfs/modules-extra
12:45:27.026773 initramfs-extra completed in: 0.35s
12:45:27.026815 == Using boot-deploy to finalize/install files ==
==> Running hooks
==> kernel: device-tree blob operations
==> kernel: appending device-tree qcom/sdm845-oneplus-enchilada
==> initramfs: creating boot.img
==> Checking free space at /boot
... OK!
==> Installing: /boot/initramfs
==> Installing: /boot/initramfs-extra
==> Installing: /boot/sdm845-oneplus-enchilada.dtb
==> Installing: /boot/boot.img
==> Flashing boot image
Flashing boot.img to 'boot_a'
20+1 records in
20+1 records out
21614592 bytes (20.6MB) copied, 0.128378 seconds, 160.6MB/s
Done.
12:45:29.076658 boot-deploy completed in: 2.05s
12:45:29.088566 mkinitfs completed in: 3.13s
Executing postmarketos-base-32-r5.trigger
Executing desktop-file-utils-0.27-r0.trigger
Executing systemd-services-9-r0.trigger
=> enable zram-init
Failed to enable unit: Unit file zram-init.service does not exist.
=> enable -qq
Too few arguments.
=> enable tmpfs
Failed to enable unit: Unit file tmpfs.service does not exist.
=> enable -qq
Too few arguments.
1 error; 2367 MiB in 996 packages