shayne / wsl2-hacks

Useful snippets / tools for using WSL2 as a development environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Systemd does not start despite the hack has been carefully applied as described in the instruction

Volkeee opened this issue · comments

Windows - 2004 build 19041.487
Distro - Ubuntu 18.04

After going through all the steps when testing out systemctl is-active dbus it reports the same error, as if I never applied the hack.

Edit: tried rebooting the machine and reinstalling the distro. Even when applying to a fresh distro it does not work. It worked before, but after a reinstallation it just stopped.

Along the way of me trying to repair this, my WSL version changed to 1. Changed it back to WSL2 and everything worked out fine.

For future reference - if this does not work, make sure you are running WSL2 and not WSL1 with wsl -l -v command in your powershell