Skip to content

Instantly share code, notes, and snippets.

@yeongu-dev
Forked from alyleite/wsl.md
Created February 21, 2022 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yeongu-dev/59bb2024a1e18b8171e848b1c98fe5f2 to your computer and use it in GitHub Desktop.
Save yeongu-dev/59bb2024a1e18b8171e848b1c98fe5f2 to your computer and use it in GitHub Desktop.
Failed to connect to bus: Host is down - WSL 2

» sudo systemctl daemon-reload

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

just try:

sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig

sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target

exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME

snap version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment