DamionGans / ubuntu-wsl2-systemd-script

[Does not work anymore!] Script to enable systemd support on current Ubuntu WSL2 images
1.56k stars 382 forks source link

Sudo systemctl doesn't work #67

Open lopugit opened 3 years ago

lopugit commented 3 years ago

I followed the instructions and running systemctl lists units, but sudo systemctl returns "Failed to connect to bus: No data available"

Pikachu695 commented 2 years ago

I also I don’t know what’s bug cause it

Pikachu695 commented 2 years ago

If the script can’t run in the root and I don’t necessary to install it (Sorry my English is funny ,I am a Chinese middle student haha:)

Pikachu695 commented 2 years ago

45F4BFE6-485D-44FC-B6B1-667E57F4358E

zldodo commented 2 years ago

I got the same error. Does anybody hear us and are going to solve it ?

NCP-SBP commented 2 years ago

You can alternatively try genie, another alternative to installing systemd from within WSL which supports systemctl.

lopugit commented 2 years ago

You can alternatively try genie, another alternative to installing systemd from within WSL which supports systemctl.

At the moment I'm using Distrod https://github.com/nullpo-head/wsl-distrod really cool, waiting on a reply whether I can get systemctl --user working though