Skip to content

Instantly share code, notes, and snippets.

View IvanCampelo22's full-sized avatar
💻
programming all the time

Ivan Campelo IvanCampelo22

💻
programming all the time
View GitHub Profile
@IvanCampelo22
IvanCampelo22 / wsl.md
Created June 7, 2022 12:50 — forked from alyleite/wsl.md
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