(将<Distribution Name>替换为所需分发版的名称。)初始安装后,可以使用wsl --install -d <Distribution Name>命令将其他 Linux 分发版添加到计算机。 若要查看可用 Linux 分发版的列表,请输入wsl --list --online。 手动安装步骤 如果你没有使用 Windows 预览体验版本,则需要按照以下步骤手动启用 WSL 所需的功能。
在Windows 11开始菜单上右键,可以看到"Windows终端(管理员)"菜单,点击它,以管理员权限打开Windows终端。 b. 依次执行如下命令来开启WSL # 安装适用于 Linux 的 Windows 子系统dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart# 启用“虚拟机平台”可选组件dism.exe...
(将<Distribution Name>替换为所需分发版的名称。)初始安装后,可以使用wsl --install -d <Distribution Name>命令将其他 Linux 分发版添加到计算机。 若要查看可用 Linux 分发版的列表,请输入wsl --list --online。 手动安装步骤 如果你没有使用 Windows 预览体验版本,则需要按照以下步骤手动启用 WSL 所需的功能。
WslRegisterDistribution 失敗,錯誤0x8007019e 未啟用適用於 Linux 的 Windows 子系統選用元件: 開啟控制面板->程式和功能->開啟或關閉 windows 功能-> 檢查Linux 版 Windows 子系統或使用本文開頭所述的 PowerShell Cmdlet。 安裝失敗,錯誤0x80070003或錯誤0x80370102 ...
WslRegisterDistribution 失败并出现错误 0x8007019e 未启用“适用于 Linux 的 Windows 子系统”可选组件: 打开“控制面板”->“程序和功能”->“打开或关闭 Windows 功能”-> 选中“适用于 Linux 的 Windows 子系统”,或使用本文开头所述的 PowerShell cmdlet。
您現在可以藉由輸入<DistributionName>.exe,從任何路徑啟動發行版本。 例如:ubuntu.exe。 安裝完成後,您可以為新的 Linux 發行版本建立使用者帳戶和密碼。 在GitHub 上與我們共同作業 您可以在 GitHub 上找到此內容的來源,在其中建立和檢閱問題和提取要求。 如需詳細資訊,請參閱我們的參與者指南。
Warning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution. Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstore Usage: /install - Installs the subsystem Optional arguments: ...
Step 2:Tick the \"Windows Subsystem for Linux\"checkbox and press the “OK” button. Step 3:When the operation is complete, you will be asked torestart your computer. After that, use the Microsoft Store app and look for the Linux distribution you want to use.\nInstall the...
WSL install will try to automatically change the Ubuntu locale to match the locale of your Windows install. If you do not want this behavior you can run this command to change the Ubuntu locale after install completes. You will have to relaunch your WSL distribution for this change to take ...
用户可通过简单三步启动:首先启用 WSL(若未启用),输入wsl --install --no-distribution;接着查看可用列表,输入wsl --list --online;最后安装目标版本,如wsl --install AlmaLinux-9。下载完成后,通过 Windows Terminal 启动或运行wsl -d AlmaLinux-9即可使用。