DeterminateSystems / zero-to-nix

Zero to Nix is your guide to learning Nix and flakes. Created by Determinate Systems.
https://zero-to-nix.com
Other
912 stars 66 forks source link

Installation fails on WSL #181

Closed louwers closed 1 year ago

louwers commented 1 year ago

The installation guide only refers to the installer from Determinate Systems.

However, this installer does not seem to be compatible with Windows Subsystem for Linux, hence the installation fails.

grahamc commented 1 year ago

Hey @louwers, thanks for raising the issue. Do you know if you have systemd enabled inside WSL?

louwers commented 1 year ago

I did not manually enable it.

grahamc commented 1 year ago

If you're game, it looks pretty easy to setup: https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/#set-the-systemd-flag-set-in-your-wsl-distro-settings

If you're not, it looks like we're going to have to wait a bit. We have a work in progress branch for init-less WSL, but it isn't ready yet: https://github.com/DeterminateSystems/nix-installer/pull/188

louwers commented 1 year ago

Thanks I will have a look at that.

But the point of this issue is that maybe the guide should have some information on which platforms are supported. ;-)

I am not a Windows user myself but I was mainly trying it out on Windows to see if I can recommend the guide to Windows users.

grahamc commented 1 year ago

D'oh, look at me: missing the forest for the trees :).

lucperkins commented 1 year ago

I'm gonna cover this in #187. Just text for now but would be nice to have a little logo-y widget down the road.

henrik-ch commented 1 year ago

If you're game, it looks pretty easy to setup: https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/#set-the-systemd-flag-set-in-your-wsl-distro-settings

I followed these suggested steps and they worked nicely on WSL as far as I can see. 🙏

jackyliu16 commented 1 year ago

emm, i have no ideas but it seem not work for me, here is my output hope this is helpful for your further work( I actually have it installed manually)

info: downloading installer https://install.determinate.systems/nix/tag/v0.5.0/nix-installer-x86_64-linux
Nix install plan (v0.5.0)

Planner: linux

Planner settings:

* nix_package_url: "https://releases.nixos.org/nix/nix-2.13.3/nix-2.13.3-x86_64-linux.tar.xz"
* nix_build_user_id_base: 30000
* nix_build_user_prefix: "nixbld"
* force: false
* diagnostic_endpoint: "https://install.determinate.systems/nix/diagnostic"
* modify_profile: true
* init: "None"
* channels: ["nixpkgs=https://nixos.org/channels/nixpkgs-unstable"]
* nix_build_user_count: 32
* nix_build_group_name: "nixbld"
* extra_conf: []
* nix_build_group_id: 30000
* start_daemon: false

The following actions will be taken:

* Setup the default Nix profile

Proceed? ([Y]es/[n]o/[e]xplain): y
 INFO Step: Create directory `/nix`
 INFO Step: Provision Nix
 INFO Step: Configure Nix
ERROR
   0: Install failure
   1: Error executing action `configure_nix`
   2: Child action `setup_default_profile`
   3: Failed to execute command with status 1 `"/nix/store/mc43d38fibi94pp5crfwacl5gbslccd0-nix-2.13.3/bin/nix-env" "-i" "/nix/store/mc43d38fibi94pp5crfwacl5gbslccd0-nix-2.13.3"`, stdout:
      stderr: installing 'nix-2.13.3'
      error: creating sandboxed builder process using clone(): Permission denied
      error: unable to load seccomp BPF program: Invalid argument
      (use '--show-trace' to show detailed location information)

   3:

Location:
   /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/convert/mod.rs:726

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Consider reporting this error using this URL: https://github.com/DeterminateSystems/nix-installer/issues/new?title=%3Cautogenerated-issue%3E&body=%23%23+Error%0A%60%60%60%0AError%3A+%0A+++0%3A+Install+failure%0A+++1%3A+Error+executing+action+%60configure_nix%60%0A+++2%3A+Child+action+%60setup_default_profile%60%0A+++3%3A+Failed+to+execute+command+with+status+1+%60%22%2Fnix%2Fstore%2Fmc43d38fibi94pp5crfwacl5gbslccd0-nix-2.13.3%2Fbin%2Fnix-env%22+%22-i%22+%22%2Fnix%2Fstore%2Fmc43d38fibi94pp5crfwacl5gbslccd0-nix-2.13.3%22%60%2C+stdout%3A+%0A++++++stderr%3A+installing+%27nix-2.13.3%27%0A++++++%1B%5B31%3B1merror%3A%1B%5B0m+creating+sandboxed+builder+process+using+clone%28%29%3A+%1B%5B35%3B1mPermission+denied%1B%5B0m%0A++++++error%3A+unable+to+load+seccomp+BPF+program%3A+Invalid+argument%0A++++++%28use+%27--show-trace%27+to+show+detailed+location+information%29%0A%0A%0A%60%60%60
Installation failure, offering to revert...
Nix uninstall plan

Planner: linux

Planner settings:

* modify_profile: true
* nix_package_url: "https://releases.nixos.org/nix/nix-2.13.3/nix-2.13.3-x86_64-linux.tar.xz"
* nix_build_user_id_base: 30000
* start_daemon: false
* extra_conf: []
* nix_build_user_count: 32
* nix_build_group_id: 30000
* force: false
* channels: ["nixpkgs=https://nixos.org/channels/nixpkgs-unstable"]
* diagnostic_endpoint: "https://install.determinate.systems/nix/diagnostic"
* init: "None"
* nix_build_user_prefix: "nixbld"
* nix_build_group_name: "nixbld"

The following actions will be taken (`--explain` for more context):

* Unconfigure the shell profiles
* Remove channel configuration at `/root/.nix-channels`
* Remove the Nix configuration in `/etc/nix/nix.conf`
* Unset the default Nix profile
* Remove the directory tree in `/nix`
* Remove Nix users and group
* Remove the directory `/nix`

Proceed? ([Y]es/[n]o/[e]xplain): y
 INFO Revert: Leave the Nix daemon unconfigured
 INFO Revert: Configure Nix
 INFO Revert: Provision Nix
Error:
   0: Error executing action `provision_nix`
   1: Child action errors: Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld4"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld14"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld0"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld17"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld11"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld9"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld16"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld21"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld7"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld2"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld6"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld12"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld10"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld8"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld25"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld13"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld20"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld19"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld18"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld1"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld22"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld5"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld24"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld29"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld15"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld28"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld27"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld26"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld23"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld30"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      ) & Child action `create_user` (Failed to execute command with status 1 `"userdel" "nixbld31"`, stdout:
      stderr: userdel: lock /etc/passwd.lock already used by PID 318
      userdel: cannot lock /etc/passwd; try again later.

      )

Location:
   src/cli/subcommand/install.rs:220

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Consider reporting this error using this URL: https://github.com/DeterminateSystems/nix-installer/issues/new?title=%3Cautogenerated-issue%3E&body=%23%23+Error%0A%60%60%60%0AError%3A+%0A+++0%3A+Error+executing+action+%60provision_nix%60%0A+++1%3A+Child+action+errors%3A+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld4%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld14%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld0%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld17%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld11%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld9%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld16%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld21%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld7%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld2%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld6%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld12%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld10%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld8%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld25%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld13%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld20%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld19%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld18%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld1%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld22%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld5%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld24%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld29%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld15%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld28%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld27%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld26%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld23%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld30%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29+%26+Child+action+%60create_user%60+%28Failed+to+execute+command+with+status+1+%60%22userdel%22+%22nixbld31%22%60%2C+stdout%3A+%0A++++++stderr%3A+userdel%3A+lock+%2Fetc%2Fpasswd.lock+already+used+by+PID+318%0A++++++userdel%3A+cannot+lock+%2Fetc%2Fpasswd%3B+try+again+later.%0A%0A++++++%29%0A%60%60%60
Tamnac commented 1 year ago

If you're game, it looks pretty easy to setup: https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/#set-the-systemd-flag-set-in-your-wsl-distro-settings

Should be mentioned in the docs. I had to find my way here to get it to work