现在,可以使用单个命令安装运行 WSL 所需的一切内容。 在管理员模式下打开 PowerShell 或 Windows 命令提示符,方法是右键单击并选择“以管理员身份运行”,输入 wsl --install 命令,然后重启计算机。 PowerShell复制 wsl--install 此命令将启用运行 WSL 并安装 Linux 的 Ubuntu 发行版所需的功能。 (可以更改此默认...
为简单起见,通常建议使用wsl --install安装适用于 Linux 的 Windows 子系统,但如果运行的是旧版 Windows,则可能不支持这种方式。 下面介绍了手动安装步骤。 如果在安装过程中遇到问题,请查看疑难解答指南的安装部分。 步骤1 - 启用适用于 Linux 的 Windows 子系统 ...
In this article Step 1 - Enable the Windows Subsystem for Linux Step 2 - Check requirements for running WSL 2 Step 3 - Enable Virtual Machine feature Step 4 - Download the Linux kernel update package Show 5 more For simplicity, we generally recommend using thewsl --installto install Windows...
cd WSL2-Linux-Kernelcp Microsoft/config-wsl ./.config # 确保您按照 Microsoft 的方式编译它export KCONFIG_CONFIG=./Microsoft/config-wslexport KCONFIG_CONFIG=./.confignano .configmake menuconfig # 编辑配置,比如内置特定模块 make xconfig # 需要安装qt5,qt5-config --versionapt install qtbase5-dev ...
the process will automatically enable the WSL optional features required, install the Ubuntu distribution by default, and install the latest WSL Linux kernel version onto your machine. When it’s completed and you restart your machine, your distribution will start after you ...
其实这里只有两个大选择:WSL 1和VM。WSL 1用的是Windows内核模拟的各种系统接口。虽然可以运行大部分...
WSL is disabled by default on Windows. In the latest versions of Windows 10 and Windows 11, you can install the WSL environment with just a single command: wsl --install This command will automatically enable all the necessary Windows features required for WSL, install the Linux kernel update...
In addition, (although not a requirement) consider setting WSL version 2 as the default version. wsl --set-default-version 2 3) Install the Linux Kernel Update package. To avoid running into errors while running Kali Linux, it’s recommended to install the Linux Kernel Update Package for WSL...
Note: Youmaysee a message in the terminal about a kernel update. Copy the link into yourbrowser, then download and install the update. You’ll need to launch the Linux distro again to continue the installation. You’ll be prompted to enter a username and password. These are the credentials...
运行命令后如果看到此消息:WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel。 仍需要安装 MSI Linux 内核更新包(见上文)。 此外,如果要使 WSL 2 成为你的默认体系结构,可以通过此命令执行该操作: ...