在Windows 10上安装Ubuntu子系统

时间:2020-05-20 10:09:28

标签: windows-subsystem-for-linux

在完成所有安装过程后,出现以下错误:

enter image description here

我已经通过PowerShell手动安装了ubuntu。 https://docs.microsoft.com/en-us/windows/wsl/install-manual

Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile Ubuntu.appx -UseBasicParsing

当我键入Ubuntu并按Enter键时,我收到一条消息,提示该服务尚未启动。

已编辑: 当我在命令行(cmd)中运行bash enter image description here

1 个答案:

答案 0 :(得分:0)

当我输入Ubuntu并按Enter时

ubuntu不是启动bash的命令。


像这样启动Windows的Bash:

  1. Windows运行

    • Win + r -> bash
  2. CMD

    1. 打开cmd提示
      • 开始-> cmd
      • Win + r -> cmd
    2. 运行bash


安装说明:

  1. 启用Linux子系统(docs
  2. 从Windows应用商店(link)安装ubuntu
  3. 运行bash(如上所述)并安装ubuntu