# Systemd Error

System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

# Issue

  • Release of WSL doesn't support Systemd.

  • Systemd is now officially supported in Ubuntu on many WSL systems.

# Fix

Start Ubuntu (or other Systemd) distribution under WSL

sudo vim /etc/wsl.conf

Add the following:

[boot]
systemd=true

Open Powershell:

wsl --shutdown

or

wsl --terminate <Distro>

WSL List only distributions that are currently running:

wsl --list --running

Start:

Run the specified distribution.

wsl --distribution <Distro>