相关疑难解决方法(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万
查看次数

将 WSL2 中的 Ubuntu 从 20.04 升级到 22.04

我是 WSL2-Ubuntu 的新手。我的电脑已经预装了20.04版本,但是我看到已经有22.04版本了,所以我想知道是否值得购买新版本。如果是这样,我该如何升级?

windows-subsystem-for-linux 22.04

76
推荐指数
2
解决办法
12万
查看次数

如何以root身份运行终端?

当我们想以 root 身份运行程序时,我们使用sudo, gksu,gksudo等等。现在我的问题是我们如何在终端中以 root 用户身份运行终端?

我尝试使用gksudo terminalgksu terminal但没有任何反应。通过运行sudo terminal我得到错误sudo: terminal: command not found

root gnome-terminal

41
推荐指数
2
解决办法
70万
查看次数