I just experienced this error during a normal update while using 21.10.
The update failed and using
apt install --fix-broken systemd-sysv
or
apt install --fix-broken systemd
triggered the error as shown above.
I found that the binary systemd-machine-id-setup, which causes the error
was
First, besides the active swapfile, that caused the trouble, I found an
additional uncommented line in my fstab, referencing /dev/mapper/yoga
--vg-swap_1. Whether this was used before or is just a relict I cannot
tell.
So I went with /dev/mapper/cryptswap1, which was active; also checked
that the