(使用WSL ubuntu应用程序)系统尚未作为初始系统(PID 1)启动。无法操作 [英] (using WSL ubuntu app) system has not been booted with system as init system (PID 1). Can't operate

查看:704
本文介绍了(使用WSL ubuntu应用程序)系统尚未作为初始系统(PID 1)启动。无法操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Ubuntu的第一个用户。我无法在wmware中安装Ubuntu,因此在Microsoft应用商店中安装了Ubuntu应用程序,一切都很好。
但是,当我插入shutdown或halt命令关闭ubuntu的电源时,我一直在收到‘system尚未被系统引导为初始化系统(PID 1)。无法操作错误消息。

I'm a very first user of Ubuntu. I failed to install Ubuntu in wmware ,so I installed Ubuntu application in Microsoft app store and everything was quite all right. But when I insert shutdown or halt command to power off my ubuntu I kept getting 'system has not been booted with system as init system (PID 1). Can't operate' error message.

我尝试通过此链接使用docker( https://blog.jayway.com/2017/04/19/running-docker-on-bash-on-windows/ ),但我多次去过2号程序后失败了。我不确定我的失败是因为安装了Docker收费箱而不是普通的收费箱。 (我的计算机只是Windows10。不是Windows Pro)

I tried to using docker following with this link (https://blog.jayway.com/2017/04/19/running-docker-on-bash-on-windows/) but I failed after going to Number 2 process many times. I'm not sure my failure is because of installing docker toll box instead of normal one. (my computer is just windows 10. not a windows pro)

我认为我必须尝试其他方法。如果您不介意我问,我该如何解决这个问题?

I think I have to try other thing. If you don't mind me asking, how can I slove this problem?

(还有一个。如果我只单击右侧顶部的 X按钮,使用停止或关闭关闭Ubuntu会有所不同吗?

(and one more. If I just click 'X' button at the top of right side, is it different with shutting down Ubuntu using 'halt' or 'shutdown' command?

谢谢

推荐答案

首先,已安装Ubuntu通过MS Store使用的是WSL(Linux的Windows子系统)技术,这仅意味着没有虚拟化,Windows和Linux内核并存(Linux内核尚未完全实现)。

First of all, Ubuntu installed via MS Store is using WSL (Windows Subsystem for Linux) Technology. It simply means there is no virtualization, Windows and Linux kernels are living side by side (the Linux kernel is not fully implemented yet).

因此,如果您尝试 关闭您的Ubuntu ,您将像Windows一样关闭整个计算机。但是在这种情况下,WSL显然没有

So if you are trying to "shut down your Ubuntu", you would turn off the whole computer just like the Windows does. But in this case, WSL doesn't apparently have rights to do that.

换句话说,您可以像其他任何终端一样查看Ubuntu bash窗口,例如CMD或PowerShell。

In other words, you can look at your Ubuntu bash window just like any other terminal, like e.g. CMD or PowerShell.

在WSL(Ubuntu)中启动程序时,您也可以在Windows Task Manager中看到它-这只是证明,没有虚拟化。

When you start a program in the WSL (Ubuntu), you can see it also in Windows Task Manager - that's just a proof, that there is no virtualization.

关于docker:
如果我没有记错的话,Windows 10 Home不提供Hyper-V虚拟化。这意味着您必须使用其他方法,例如通过使用VirtualBox。为了使其正常工作,我建议您遵循本教程,特别是对于VirtualBox,请检查此答案此处

Regarding docker: If I'm not mistaken Windows 10 Home doesn't provide Hyper-V virtualization. It means you'll have to use a different one e.g. by using VirtualBox. In order to make it work, I can recommend you to follow this tutorial and especially for VirtualBox please check this answer here

希望它会有所帮助:)

这篇关于(使用WSL ubuntu应用程序)系统尚未作为初始系统(PID 1)启动。无法操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆