0

I have Windows 11 with Ubuntu installed with WSL2. I'm not able to configure Systemd in order to use snap installations.

I have configured the file /etc/wsl.conf configured with the following entries (According to this page):

[boot]
systemd=true

But it doesn't work for me.

I can execute systemctl list-unit-files --type=service and list the services, but when I try to start, stop or see the status of a service there is the error:

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

uname -a lists the following:

Linux XXXXXXXXXXXX 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -a lists the following:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy

I have also tried to configure according to this page but my installation always gets broken.

Can someone help me?

NotTheDr01ds
  • 22,082

0 Answers0