» 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
==============================================
Edit*
- Open
/etc/wsl.conf
with any editor:
sudo nano /etc/wsl.conf
- Add the following contents and save them
[boot] systemd=true
- Close the Linux window
- Execute the following command in PowerShell
wsl --shutdown
wsl
- Problem Solving
==============================================
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
please note that on step 2, you need to write on a DIFFERENT line the
systemd=true
(and not on the same line than the[boot]
part)