ubuntu-wsl2-systemd-script
ubuntu-wsl2-systemd-script copied to clipboard
[Does not work anymore!] Script to enable systemd support on current Ubuntu WSL2 images
I don't need `systemd` to run anymore, and I'm occasionally running into problems at boot. How do I undo the changes this script makes?
This may be of interest to those reading this issue: Microsoft and Canonical jointly announced today that **systemd now works within Windows Subsystem for Linux (WSL2)**. WSL can now run...
Linux Raven 5.15.79.1-microsoft-standard-WSL2 #1 SMP Wed Nov 23 01:01:46 UTC 2022 x86_64 The programs included with the Kali GNU/Linux system are free software; the exact distribution terms for each program...
My error is as follows: nsenter: failed to parse pid: '27 608 1144 1811 2267 2648 2986 3319 3747' My wsl version: Ubuntu20.04
Folowing the script by x-apps stopped working. How can the script be removed? It can be commented in /etc/bash.bahrc ``` # System-wide .bashrc file for interactive bash(1) shells. # Start...
Hi The script returns an error: ``` Cannot open assembly '/mnt/c/Windows/System32/cmd.exe': File does not contain a valid CIL image. ``` Full output: ```console $ bash ubuntu-wsl2-systemd-script.sh Hit:1 https://cli.github.com/packages stable InRelease...

so I applied the wsl-systemd-script and my wsl windows crashes and gives me this error: nsenter: cannot open /proc/1606/ns/time: No such file or directory. If you know how to solve...
It'd be nice if the script would also `source /usr/sbin/start-systemd-namespace` in `.zshrc` (or `/etc/zsh/zshrc` to match the existing use of `bash.bashrc`). Right now, the behavior in zsh is very misleading:...
Hey, I get this error: **/mnt/c/Windows/System32/cmd.exe: Invalid argument** `System has not been booted with systemd as init system (PID 1). Can't operate.` `Failed to connect to bus: Host is down`...