如何讓 WSL Ubuntu 1804 明白在 Windows 中啟用了 WSL? (How to make WSL Ubuntu 1804 understand that WSL is enabled in Windows?)


問題描述

如何讓 WSL Ubuntu 1804 明白在 Windows 中啟用了 WSL? (How to make WSL Ubuntu 1804 understand that WSL is enabled in Windows?)

我嘗試在 Windows 10 上安裝 WSL,由於我沒有 Microsoft Store,我嘗試通過 網址。我嘗試使用 本手冊,我得到了一個問題。

首先,奇怪的是,當我嘗試從 URL,我實際上是下載 .zip 文件。然後我將它解壓到桌面並嘗試運行 ubuntu.exe(在設置中啟用了適用於 Linux 的 Windows 子系統)。我收到一個錯誤 Linux 可選組件的 Windows 子系統未啟用。請啟用它並重試。有關詳細信息,請參閱 https://aka.ms/wslinstall。

我做錯了什麼?如果有人幫助我解決這個問題,那對我很有幫助。


參考解法

方法 1:

Before being able to use WSL you need to enable the "Windows Subsystem for Linux" optional feature. You can enable it by running:

dism.exe /online /enable‑feature /featurename:Microsoft‑Windows‑Subsystem‑Linux /all /norestart

More installation instructions can be found here.

(by Сергей ЛоптевBen Smith)

參考文件

  1. How to make WSL Ubuntu 1804 understand that WSL is enabled in Windows? (CC BY‑SA 2.5/3.0/4.0)

#windows-subsystem-for-linux #linux #windows-10 #ubuntu-18.04






相關問題

Windows 10 中“Bash on Ubuntu on Windows”的 .bashrc 位置 (Location of .bashrc for "Bash on Ubuntu on Windows" in Windows 10)

無法在 WSL Ubuntu 18.04 上安裝 R Shiny Server (Cannot install R Shiny Server on WSL Ubuntu 18.04)

從 Windows 10 的 wsl 將捲設置為 docker 容器 (Set volume to docker container from wsl from windows 10)

npm 錯誤!使用 wsl 將 npm 模塊安裝到 Windows 10 時出現錯誤 -13 (npm ERR! errno -13 when Installing npm module to windows 10 with wsl)

如何使用 WSL 訪問 Odoo 12 (How to access Odoo 12 using WSL)

用 recorder.js 錄製語音並將其上傳到 python-flask 服務器,但 WAV 文件已損壞 (Record voice with recorder.js and upload it to python-flask server, but WAV file is broken)

無法將 WSL 節點解釋器添加到 WebStorm (Can't add WSL Node Interpreter to WebStorm)

即使我通過瀏覽器下載了最新的穩定版本,為什麼我的 ubuntu 終端 v10 中的節點版本仍然存在? (Why is my node version in my ubuntu terminal v10 even though I downloaded the latest stable version through browser?)

帶有 python 子進程的 WSL (WSL with python subprocess)

在 Powershell 中重定向 WSL 輸入 (Redirect WSL input in Powershell)

VSCode WSL奇怪的顏色問題 (VSCode WSL Weird Colors Issue)

FAT[0000] 無效配置:未提供配置 (FATA[0000] invalid configuration: no configuration has been provided)







留言討論