To install WSL on Windows 10, openCommand Prompt(orPowerShell) as admin and runwsl --installto install all the WSL2 components and the Ubuntu Linux distro. If you want to install a specific distro, run thewsl --install -d DISTRO-NAMEcommand, and to update the WSL kernel, run thewsl ...
wsl--list--verbose PowerShell Download NAME STATE VERSION * docker-desktop-data Running 2 Ubuntu-20.04 Running 2 docker-desktop Running 2 Plain text Download From Stopped State to Running wsl -d Ubuntu-20.04 Bash Download where the option:–distributionor-d<Distro> - run the specified distributi...
wsl --install --from-file Ubuntu2404-250130_x64.wsl Restart your computer to finish the WSL and Ubuntu installation. Continue with the Linux distro setup as necessary. Once you complete the steps, the distribution will be installed using the tar file. Install Ubuntu on Windows 11 using WSL ...
Once your Linux distro is install, you can you can start customizing it. Here are a few options to consider: Set Default WSL Version:If you installed both WSL 1 and WSL 2, you can set the default version to be used by running the following command in PowerShell: wsl --set-default-ve...
Running some ‘apt-get’ commands to update and upgrade our distro’s modules (Image credit: Petri/Michael Reinders) Now we have the newest and most secure modules in our Linux distribution. Installing WSL2 on older versions of Windows 10 ...
How to add Users to WSL Distro There are two main methods to add users to Windows Subsystem for Linux distro on Windows 11/10. They are the following: When logged in as a SUDO user. When logged in as ROOT. 1] When logged in as a SUDO user ...
We recommend to convertthisdistro to WSL2and activate the WSL integrationinDocker Desktop settings. See https://docs.docker.com/docker-for-windows/wsl/ for details. Solution Run incmd.exe > wsl--list--verboseNAME STATE VERSION Ubuntu Running1 ...
Depending on which platform you are using, one method is to use the grep command and search for the keyword in the macOS terminal, a Linux distro for WSL2, or the Linux terminal for the file you unzipped: $ grep -Hrni "<keyword>" <The path of the unzipped file> ## For example, ...
And as you can see in the output above the Ubuntu distro is still using WSL 1. To upgrade the Ubuntu distro, you canwsl --set-version Ubuntu 2which will kick off the upgrade process, be patient this took almost five minutes for me. ...
With the above steps done, close your WSL distro Windows and run wsl.exe --shutdown from PowerShell to restart your WSL instances. Upon launch you should have systemd running. You can check this with the command systemctl list-unit-files --type=service which should show your services’ sta...