相关疑难解决方法(0)

系统尚未使用 systemd 作为 init 系统 (PID 1) 进行引导。无法操作

我在 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)

我该如何修复它?

boot windows-10 windows-subsystem-for-linux

200
推荐指数
2
解决办法
84万
查看次数

是否可以在后台运行 WSL 应用程序?

我使用 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)

windows-subsystem-for-linux

9
推荐指数
1
解决办法
1万
查看次数