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
Copy file name to clipboardExpand all lines: wsl/how-to/install-ubuntu-wsl2.md
+21-18Lines changed: 21 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,25 +4,26 @@
4
4
## What you will learn:
5
5
6
6
* How to enable and install WSL on Windows 10 and Windows 11
7
+
* How to install `Ubuntu 24.04 LTS` using: Microsoft Store, WSL CLI, or Winget
7
8
8
9
## What you will need:
9
10
10
11
* A Windows 10 or Windows 11 physical or virtual machine with all the updates installed
11
12
12
13
## Install WSL
13
14
14
-
WSL can be installed from the command line. Open a PowerShell prompt as an Administrator (we recommend using Windows Terminal) and run:
15
-
```
15
+
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)) and run:
16
+
```text
16
17
wsl --install
17
18
```
18
19
19
20
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
21
21
22
## Install Ubuntu WSL
22
23
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.
24
+
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. For the rest of this tutorial we'll use `Ubuntu 24.04 LTS` as the example.
24
25
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.
26
+
There are multiple ways of installing distros on WSL, here we show three: via the Microsoft store, WSL Command Line Interface, and Winget. The result is the same regardless of the method.
26
27
27
28
### Method 1: Microsoft store
28
29
@@ -36,37 +37,38 @@ Ubuntu will then be installed on your machine. Once installed, you can either la
36
37
37
38
### Method 2: WSL Command line interface
38
39
39
-
It is possible to install the same Ubuntu applications available on the Windows Store directly from the command line.
40
-
In a PowerShell terminal, you can run `wsl --list --online` to see all available distros.
40
+
It is possible to install the same Ubuntu versions available on the Windows Store directly from the command line.
41
+
In a PowerShell terminal, you can run `wsl --list --online` to see all available distros and versions.
You'll be prompted to accept the source and package agreements before installing. You need to accept them in order to proceed.
67
69
68
70
Check out [the documentation](../reference/distributions.md) to see which executable matches your application and run it.
69
-
```
71
+
```text
70
72
ubuntu.exe
71
73
```
72
74
@@ -77,17 +79,18 @@ Congratulations, you now have an Ubuntu terminal running on your Windows machine
77
79
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
80
79
81
Finally, it’s always good practice to install the latest updates with the following commands, entering your password when prompted.
80
-
```bash
82
+
```text
81
83
sudo apt update
82
84
sudo apt full-upgrade -y
83
85
```
84
86
## Enjoy Ubuntu on WSL!
85
87
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.
88
+
That’s it! In this tutorial, we’ve shown you how to install WSL and Ubuntu on Windows 10 or 11.
87
89
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.
90
+
We hope you enjoy working with Ubuntu in WSL. Don’t forget to check out [our blog](https://ubuntu.com/blog) for the latest news on all things Ubuntu.
89
91
90
92
### Further Reading
93
+
91
94
*[Setting up WSL for Data Science](https://ubuntu.com/blog/upgrade-data-science-workflows-ubuntu-wsl)
92
95
*[Whitepaper: Ubuntu WSL for Data Scientists](https://ubuntu.com/engage/ubuntu-wsl-for-data-scientists)
0 commit comments