[Bug 2069555] Re: Failed to take /etc/passwd lock: Invalid argument on upgrade

Ulrik Petersen 2069555 at bugs.launchpad.net
Mon Jun 17 13:07:40 UTC 2024


On my end it only happens on WSL1. Not WSL2 with systemd enabled.

It happens in the postinst script of systemd, that uses the binary
systemd-sysusers. It is in this binary the bug happens. It can be
reproduced by just running the systemd-sysusers binary. It seems to be a
problem for systemd version 254.1 or newer.

Similar bug as reported in wsl, with kali back when systemd got updated
to 254-1: https://github.com/microsoft/WSL/issues/10397

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/2069555

Title:
  Failed to take /etc/passwd lock: Invalid argument on upgrade

Status in systemd package in Ubuntu:
  Confirmed

Bug description:
  When I install Ubuntu 24.04 on WSL and then do an `apt-get update`
  followed by `apt-get upgrade --yes`, the process fails with message
  "Failed to take /etc/passwd lock: Invalid argument" when trying to
  execute the post-installation script of systemd.

  The full error with context can be seen at
  https://github.com/Vampire/setup-
  wsl/actions/runs/9532264682/job/26274230057#step:4:258

  This started to fail on June 5th with the systemd version 255.4-1ubuntu8.1 being available.
  The day before the `apt-get upgrade --yes` did not contain a systemd update and it worked without problem: https://github.com/Vampire/setup-wsl/actions/runs/9359599784/job/25763680833#step:4:296

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2069555/+subscriptions




More information about the foundations-bugs mailing list