Skip to content

Commit 66345e5

Browse files
authored
Merge pull request #193 from eecs280staff/ubuntu-version-fixes
Update output and instructions to match 24.04
2 parents 90d0d2a + 4cd2f2f commit 66345e5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/setup_wsl.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ PowerShell is a command-line interface for Windows. Its command prompt ends with
3030
Check if WSL is already installed by running the command `wsl -l -v`. If you see a list like below, WSL is already installed.
3131
```console
3232
C:\WINDOWS\system32> wsl -l -v
33-
NAME STATE VERSION
34-
* Ubuntu Stopped 2
33+
NAME STATE VERSION
34+
* Ubuntu-24.04 Running 2
3535
```
3636
{: data-highlight="3"}
3737

3838
If the `VERSION` is 1, you must [upgrade to WSL 2](https://learn.microsoft.com/en-us/windows/wsl/install-manual).
3939

40-
If you already have a distribution (e.g. Ubuntu) with `VERSION` 2, skip to [Setup Ubuntu](#setup-ubuntu) below.
40+
If you already have an Ubuntu distribution with `VERSION` 2, skip to [Setup Ubuntu](#setup-ubuntu) below.
4141

4242
Otherwise, WSL is not installed and you'll see help text similar to the following. (This is expected for most students.)
4343
```console
@@ -62,15 +62,15 @@ Start PowerShell as administrator, and check that WSL Ubuntu is now installed wi
6262

6363
```console
6464
C:\WINDOWS\system32> wsl -l -v
65-
NAME STATE VERSION
66-
* Ubuntu Stopped 2
65+
NAME STATE VERSION
66+
* Ubuntu-24.04 Running 2
6767
```
6868
{: data-highlight="3"}
6969

7070
## Setup Ubuntu
7171
From the previous section, you have installed WSL and an Ubuntu Linux distribution. You'll do most C++ development in Ubuntu rather than Windows. Let's get it set up.
7272

73-
Start an Ubuntu Bash shell. Bash is a command-line interface for Linux. Search for "Ubuntu" or "bash" in the start menu.
73+
Start an Ubuntu Bash shell. Bash is a command-line interface for Linux. Search for "Ubuntu" (or "Ubuntu 24.04 LTS") or "bash" in the start menu.
7474

7575
<img src="images/wsl020.png" width="240px" /> | <img src="images/wsl030.png" width="480px" />
7676

@@ -105,13 +105,13 @@ We recommend you completely reinstall Ubuntu. (Note this will _delete all of the
105105
Open PowerShell and run it as administrator. Run the commands below. You'll be prompted to create a user account.
106106

107107
```console
108-
C:\WINDOWS\system32> wsl --unregister Ubuntu
108+
C:\WINDOWS\system32> wsl --unregister Ubuntu-24.04
109109
Unregistering.
110110
The operation completed successfully.
111111

112-
C:\WINDOWS\system32> wsl --install -d Ubuntu
113-
Ubuntu is already installed.
114-
Launching Ubuntu...
112+
C:\WINDOWS\system32> wsl --install -d Ubuntu-24.04
113+
Ubuntu 24.04 LTS is already installed.
114+
Launching Ubuntu 24.04 LTS...
115115
Installing, this may take a few minutes...
116116
Please create a default UNIX user account. The username does not need to match your Windows username.
117117
For more information visit: https://aka.ms/wslusers

0 commit comments

Comments
 (0)