如何详细描述win11 WSL2安装步骤及常见问题解决方法?
- 内容介绍
- 文章标签
- 相关推荐
本文共计344个文字,预计阅读时间需要2分钟。
安装步骤如下,具体过程可参考以下链接:链接:https://blog.csdn.net/qq_41773806/article/details/130021654
如遇系统找不到指定的文件错误,请按以下提示操作:请按照提示操作。
安装过程
全部的安装过程参考以下链接:
blog.csdn.net/qq_41773806/article/details/130021654
The system cannot find the file specified
如果在使用的过程中出现The system cannot find the file specified请按照以下的图片来进行解决
System has not been booted with systemd as init system (PID 1). Can't operate
在windows powershell中执行如下指令
wsl --update
更新完毕之后使用如下命令,查看,wsl的版本,只要是大于等于1,就可以
wsl --version
然后使用如下的命令来启动Ubuntu
wsl ~
使用命令修改如下文件里面的内容
sudo vim /etc/wsl.conf
# 添加如下的内容
[boot]
systemd=true
然后退出Ubuntu,在cmd中执行如下命令
wsl --shutdown
最后启动Ubuntu,输入如下的命令来开启systemctl命令
sudo systemctl status
出现以下的效果即为成功了
本文共计344个文字,预计阅读时间需要2分钟。
安装步骤如下,具体过程可参考以下链接:链接:https://blog.csdn.net/qq_41773806/article/details/130021654
如遇系统找不到指定的文件错误,请按以下提示操作:请按照提示操作。
安装过程
全部的安装过程参考以下链接:
blog.csdn.net/qq_41773806/article/details/130021654
The system cannot find the file specified
如果在使用的过程中出现The system cannot find the file specified请按照以下的图片来进行解决
System has not been booted with systemd as init system (PID 1). Can't operate
在windows powershell中执行如下指令
wsl --update
更新完毕之后使用如下命令,查看,wsl的版本,只要是大于等于1,就可以
wsl --version
然后使用如下的命令来启动Ubuntu
wsl ~
使用命令修改如下文件里面的内容
sudo vim /etc/wsl.conf
# 添加如下的内容
[boot]
systemd=true
然后退出Ubuntu,在cmd中执行如下命令
wsl --shutdown
最后启动Ubuntu,输入如下的命令来开启systemctl命令
sudo systemctl status
出现以下的效果即为成功了

