-
安裝包下載鏈接,下載後並解壓複製到C:\Windows\system32目錄下
鏈接:https://pan.baidu.com/s/1T8gJs3B9Cojrg4x-8x2myQ
提取碼:5f7f
或者佔擊windows鍵,在命令Windows PowerShell並以管理員身份運行,輸入以下命令進行下載
PS C:\Windows\system32> Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile Ubuntu.appx -UseBasicParsing
下載完成後,輸入以下命令進行重命名
PS C:\Windows\system32> Rename-Item Ubuntu.appx Ubuntu1604.zip
解壓文件
PS C:\Windows\system32> Expand-Archive Ubuntu1604.zip Ubuntu1604
進入 Ubuntu1604目錄
PS C:\Windows\system32> cd Ubuntu1604
查看目錄
PS C:\Windows\system32\Ubuntu1604> ls
安裝ubuntu
PS C:\Windows\system32\Ubuntu1604> .\ubuntu1604.exe
輸入用戶名創建一個UNIX帳號
輸入密碼
打開ubuntu
點擊Windows鍵,鍵入bash或者wsl,選擇以管理員身份打開