DamionGans / ubuntu-wsl2-systemd-script

[Does not work anymore!] Script to enable systemd support on current Ubuntu WSL2 images
1.56k stars 383 forks source link

I am getting an error when using this script #82

Open luckyEason opened 2 years ago

luckyEason commented 2 years ago

My error is as follows: nsenter: failed to parse pid: '27 608 1144 1811 2267 2648 2986 3319 3747' My wsl version: Ubuntu20.04

luckyEason commented 2 years ago

But when I entered wsl --shutdown in powershell and reopened Ubuntu, it repeatedly displayed "Sleeping for 1 second to let systemd settle", and then returned to normal, successfully logged in, what's going on?

bhatsudo commented 2 years ago

@luckyEason I have the same problem. Did you somehow find a fix?

luckyEason commented 1 year ago

@bhatsudo I reinstalled the WSL and found that switching to the root runtime script can be used normally