You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* How to enable and install WSL on Windows 10 and Windows 11
7
+
* How to install `Ubuntu 24.04 LTS` using the Microsoft Store, WSL commands or the Winget package manager
7
8
8
-
## What you will need:
9
+
## What you will need
9
10
10
-
* A Windows 10 or Windows 11 physical or virtual machine with all the updates installed
11
+
* Windows 10 or 11 running on either a physical device or virtual machine
12
+
* All of the latest Windows updates installed
11
13
12
14
## Install WSL
13
15
14
-
WSL can be installed from the command line. Open a PowerShell prompt as an Administrator (we recommend using Windows Terminal) and run:
15
-
```
16
+
You can install WSL from the command line. Open a PowerShell prompt as an Administrator (we recommend using [Windows Terminal](https://github.com/microsoft/terminal?tab=readme-ov-file#installing-and-running-windows-terminal)) and run:
17
+
18
+
```text
16
19
wsl --install
17
20
```
18
21
19
22
This command will enable the features necessary to run WSL and also install the default Ubuntu distribution of Linux available in the Microsoft Store. It is recommended to reboot your machine after this initial installation to complete the setup. You can also install WSL from the Microsoft Store.
20
23
21
24
## Install Ubuntu WSL
22
25
23
-
WSL supports a variety of Linux distributions including the latest Ubuntu release. Check out [the documentation](../reference/distributions.md) to see which one you prefer. For the rest of this tutorial we'll use `Ubuntu` as the example.
26
+
WSL supports a variety of Linux distributions including the latest Ubuntu LTS release. Check out [the documentation](../reference/distributions.md) to see which one you prefer.
24
27
25
-
There are multiple ways of installing distros on WSL, here we show three: via the Microsoft store, via Winget, and the WSL CLI. The result is equivalent.
28
+
There are multiple ways of installing distros on WSL, here we show three: Microsoft Store, WSL commands and the Winget package manager. The result is the same regardless of the method.
26
29
27
-
### Method 1: Microsoft store
30
+
### Method 1: Microsoft Store
28
31
29
-
Find the distribution you prefer on the Microsoft Store and then select `Get`.
32
+
Find the distribution you prefer on the Microsoft Store and then click **Get**.
Ubuntu will then be installed on your machine. Once installed, you can either launch the application directly from the store or search for Ubuntu in your Windows search bar.
36
+
Ubuntu will then be installed on your machine. Once installed, you can either launch the application directly from the Microsoft Store or search for Ubuntu in your Windows search bar.
You'll see a list of available distros and their Ids. Choose the one you prefer and install it. For instance, for `Ubuntu 24.04 LTS`:
94
+
95
+
```text
96
+
win install --Id "9NZ3KLHXDJP5" --source msstore
64
97
```
65
98
66
99
You'll be prompted to accept the source and package agreements before installing. You need to accept them in order to proceed.
67
100
68
101
Check out [the documentation](../reference/distributions.md) to see which executable matches your application and run it.
69
-
```
102
+
103
+
```text
70
104
ubuntu.exe
71
105
```
72
106
@@ -76,18 +110,20 @@ Congratulations, you now have an Ubuntu terminal running on your Windows machine
76
110
77
111
Once it has finished its initial setup, you will be prompted to create a username and password. They don't need to match your Windows user credentials.
78
112
79
-
Finally, it’s always good practice to install the latest updates with the following commands, entering your password when prompted.
80
-
```bash
113
+
Finally, it’s always good practice to install the latest updates with the following commands, entering your password when prompted:
114
+
115
+
```text
81
116
sudo apt update
82
117
sudo apt full-upgrade -y
83
118
```
84
119
## Enjoy Ubuntu on WSL!
85
120
86
-
That’s it! In this tutorial, we’ve shown you how to install WSL and Ubuntu on Windows 11, set up your profile, install a few packages, and run a graphical application.
121
+
In this guide, we’ve shown you how to install WSL and Ubuntu on Windows 10 or 11 and the latest updates.
87
122
88
-
We hope you enjoy working with Ubuntu inside WSL. Don’t forget to check out [our blog](https://ubuntu.com/blog) for the latest news on all things Ubuntu.
123
+
We hope you enjoy working with Ubuntu in WSL. Don’t for to check out [our blog](https://ubuntu.com/blog) for the latest news on all things Ubuntu.
89
124
90
125
### Further Reading
126
+
91
127
*[Setting up WSL for Data Science](https://ubuntu.com/blog/upgrade-data-science-workflows-ubuntu-wsl)
92
128
*[Whitepaper: Ubuntu WSL for Data Scientists](https://ubuntu.com/engage/ubuntu-wsl-for-data-scientists)
0 commit comments