Now restart your computer to apply these features. Once it's done, open an elevated powershell again and set the default wsl version to 2
```
wsl --set-default-version 2
```
You might see this message after running the command above:
> :bulb: WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel.
If you do, please follow the link [https://aka.ms/wsl2kernel](https://aka.ms/wsl2kernel) and install the MSI from that page on Microsoft's documentation to install a Linux kernel on your machine for WSL 2 to use. Once you have the kernel installed, please run the wsl --set-default-version 2 command again and it should complete successfully without showing the message.
### Install your Linux distribution
After reboot, open the microsoft store and install the distribution of your choice (for example : Ubuntu 20.04 LTS). Once it's done, open it and after a few minutes you'll be prompted for the creation of a user account.
...
...
@@ -171,31 +199,3 @@ source ~/.bashrc
```
Now you should be at least in version ^1.22 and ready to go on.
### Upgrade to WSL 2
If you're on WSL 1 and want to upgrade to WSL 2, here is the process :
Open an elevated powershell and paste the following command :
Now restart your computer to apply these features. Once it's done, open an elevated powershell again and set the default wsl version to 2
```
wsl --set-default-version 2
```
You might see this message after running the command above:
> :bulb: WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel.
If you do, please follow the link [https://aka.ms/wsl2kernel](https://aka.ms/wsl2kernel) and install the MSI from that page on Microsoft's documentation to install a Linux kernel on your machine for WSL 2 to use. Once you have the kernel installed, please run the wsl --set-default-version 2 command again and it should complete successfully without showing the message.