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.exe --install test-distro-v1以尝试安装新分发版。 完成后,可以删除HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\DistributionListUrl以还原到官方清单。 最佳做法 配置文件 /etc/wsl.conf并/etc/wsl-distribution.conf应包含。 它们应归其root:root所有,其权限应为0644 ...
Add socket receive timeouts when starting a new distro Add logic to offer to re-install WSL if WslInstaller fails to install the MSI Don't wait on termination event when HcsStartComputeSystem fails Configure the CRT to crash the process when abort() is called ...
If wsltty fails with an error message that mentions a disk mount path (e.g./mnt/c), workarounds may be the shutdown of the WSL V2 virtual machine (wsl --shutdownon the distro) or turning off “fast startup” in the Windows power settings (#246, #248). ...
Add-AppxPackage .\app_name.appx Once the Appx package has finished downloading, you can start running the new distribution by double-clicking the appx file. (The commandwsl -lwill not show that the distribution is installed until this step is complete). ...
We’ve already added in some new features that can be found in this preview such as: WSLgis now bundled as part of the WSL app! Newwsl.exe--mountfeatures! Add--mount--vhdto make mounting VHD files easier. Implement filesystem detection forwsl--mount. This change implements filesystem ty...
PressF1, selectWSL: Connect to WSLfor the default distro orWSL: Connect to WSL using Distrofor a specific distro. Use the File menu to open your folder. If you already have a folder open, you can also use theWSL: Reopen Folder in WSLcommand. You will be prompted which distro to use...
Thus the resolution is simple - adding the proxy certificate myproxy.crt to the trusted store in the distro or container. Solutions to fix SSL local issuer certificate issue Now let's add the solutions for each of the three scenarios listed above. Scenario 1 - openssl connection To fix this...
The default distro is Ubuntu. To update the distro to your favorite distro from the command line and to review other WSL commands, refer to the following resources: https://docs.microsoft.com/en-us/windows/wsl/install https://docs.microsoft.com/en-us/windows/wsl/basic-commands From this po...
A minute or two later, your distro(s) will be installed and you’ll be able to run your favorite Linux distros and tools on WSL. **Note***: When you first run your distro, we expand the distro onto your PC. This can take a couple of minutes so please be patient the first time...