完成上述步骤后,打开一个新的命令提示符或PowerShell窗口,并输入以下命令来测试WSL是否已正确安装并配置: bash wsl --list --verbose 如果一切正常,这个命令将列出已安装的Linux发行版及其状态。 总结 通过上述步骤,你应该能够解决 -bash: wsl: command not found 的错误。如果问题仍然存在,请确保你按照步骤正确操...
19 - that will run for a while. But call up another power shell window and confirm you have wsl version 2 installed. I tried these two commands : “ "wsl --list --verbose" and "wsl -l -v" HERE is where I started getting “** -bash: wsl: command not found **” Hyper-V...
If this does not resolve the issue, you can try resetting the WSL installation by running the following command in PowerShell with administrator privileges: PowerShell wsl--unregister<distribution name> Replace<distribution name>with the name of your Ubuntu distribution. After running this command...
1)在appwiz.cpl中安装wsl 或者powershell中运行Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux 2)下载https://aka.ms/wsl-ubuntu-1804 得到Ubuntu_1804.2019.522.0_x64.appx在shellpower中运行 Add-AppxPackage d:\Ubuntu_1804.2019.522.0_x64.appx(不确定这一步是否有用)。将...
问命令在WSL2中找不到,即使它在路径上EN正确配置如下:Windows(分隔符英文分号):XML/HTML code ...
WSL 默认版本是 WSL 1,打开 PowerShell,运行以下命令,将 WSL 2 设置为默认版本: wsl --set-default-version 2 1.2.6. 安装 Linux 分发版 打开Microsoft Store, 搜索 wsl 或想要使用的版本,如 Ubuntu、openSUSE 等,获取安装即可。 注意,安装完成后,需要打开新安装的 Linux 系统,设置用户名和密码之后就可以使用...
问如何在PowerShell.exe中作为root从bash运行WSL2命令EN当微软宣布,将在Windows10上面支持bash时,所有的...
After restarting the system, run powershell again as an administrator, then type the following command. 重启系统后再次以管理员身份运行 powershell ,然后输 wsl --set-default-version 2 若无法连接Microsoft Store,那么也可以手动安装。 请从以下三者中选择: Debian Kali Ubuntu 第一章 WSL 篇完结,如需...
1)在appwiz.cpl中安装wsl 或者powershell中运行Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux 2)下载https://aka.ms/wsl-ubuntu-1804 得到Ubuntu_1804.2019.522.0_x64.appx在shellpower中运行 Add-AppxPackage d:\Ubuntu_1804.2019.522.0_x64.appx(不确定这一步是否有用)。将...
默认启动的终端是powershell,你可以点击窗口标题栏右侧小箭头选你要开启的终端,其中ubuntu就是我们刚安装的wsl。 终端也安装完成了,这样我们就可以在windows环境下愉快地玩linux,so happy! 原生的docker、k8s等都是可以的,最近我正在搞wsl2环境下的k8s集群部署,环境已经搭建好了,但是服务一直访问不到,等这块最后的问...