我在 Windows 11 上使用 WSL2。我想systemctl在 Ubuntu 20.04 中运行该命令,但它给了我以下错误:
System has not been booted with systemd as init system (PID 1).
Can't operate. Failed to connect to bus: Host is down
Run Code Online (Sandbox Code Playgroud)
我该如何修复它?
我使用 snap store 在 ubuntu 中安装了 LXD,然后将其连接到 Windows 客户端,但为了能够从 Windows 运行容器,必须打开 Ubuntu 应用程序。有没有办法让 LXD 服务器在后台运行,或者我必须打开 Ubuntu 才能让它工作?
wsl --status返回:
Default Distribution: Ubuntu
Default Version: 2
Run Code Online (Sandbox Code Playgroud)
wsl --version返回:
WSL version: 0.70.0.0
Kernel version: 5.15.68.1
WSLg version: 1.0.45
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22000.1098
Run Code Online (Sandbox Code Playgroud)
并cmd /c ver返回:
Microsoft Windows [Version 10.0.22000.1098]
Run Code Online (Sandbox Code Playgroud)