To change versions, use the command:wsl --set-version <distro name> 2replacing<distro name>with the name of the Linux distribution that you want to update. For example,wsl --set-version Ubuntu-20.04 2will set your Ubuntu 20.04 distribution to use WSL 2. ...
如果wsl --set-default-version结果为无效命令,请输入wsl --help。 如果--set-default-version未列出,则表示你的 OS 不支持它,你需要更新到版本 1903(内部版本 18362)或更高版本。 如果你在使用 ARM64 版本 19041,那么当使用 PowerShell 时,此命令可能会失败;在这种情况下,你可使用命令提示符,而不是发出wsl....
To change versions, use the command:wsl --set-version <distro name> 2replacing<distro name>with the name of the Linux distribution that you want to update. For example,wsl --set-version Ubuntu-20.04 2will set your Ubuntu 20.04 distribution to use WSL 2. ...
This tutorial will show you how to change the default Linux distro for your account in Windows 10 and Windows 11. The Windows Subsystem for Linux (WSL) lets developers install a Linux distribution (such as Ubuntu, OpenSUSE, Kali, Debian, Arch Linux, etc) and use Linux applications, utilit...
WSL Version 1.1.6.0 Are you using WSL 1 or WSL 2? WSL 2 WSL 1 Kernel Version 5.15.90.1 Distro Version Ubuntu 20.04 Other Software No response Repro Steps wsl --unregister Expected Behavior After running the command line, the program should ask the user to answer yes or no regarding the ...
wsl--set-version<Distro><Version> Use this command to convert a distro to use the WSL 2 architecture or use the WSL 1 architecture. : the specific Linux distro (e.g. “Ubuntu”) : 1 or 2 (for WSL 1 or 2) wsl--set-default-version<Version> ...
3/13/2020– Thank you to our WSL distro partners: Canonical, Debian, openSUSE, Kali Linux, and Pengwin for adding a change to their distro launcher to help support this experience! 3/13/2020– Added link to WSL 2 explanation video
WSL Version 2.0.9 Are you using WSL 1 or WSL 2? WSL 2 WSL 1 Kernel Version No response Distro Version No response Other Software No response Repro Steps One developer in my company reported to us a major issue with WSL. It stopped working all of the sudden and says: ...
rootstring/mnt/Sets the directory where fixed drives will be automatically mounted. By default this is set to/mnt/, so your Windows file system C-drive is mounted to/mnt/c/. If you change/mnt/to/windir/, you should expect to see your fixed C-drive mounted to/windir/c. ...
Note: The commands used to query and create user accounts in this reference implementation are Ubuntu-specific; change as necessary to match the needs of your distro. 一旦distro成功注册,就可以解析其他命令行参数。参数细节在Introduction. 工程结构 ...