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
{{ message }}
Repository navigation
WSL: which version of Ubuntu to upgrade to (and how)? #31043
Developers using Windows desktops typically use WSL2 (Windows Subsystem for Linux v2) to build and run the FE and BE services. Within WSL2, typically Ubuntu (Linux distro) is installed.
Many devs are still using the previous Long-Term Support (LTS) version of Ubuntu -- v20.04.6. Standard support for this version expired in May 2025 although Extended Security Maintenance (ESM) is available until April 2030 (with a Ubuntu Pro subscription). Ref
Hence, devs should upgrade to a current LTS version -- v22.04.5 (standard support until April 2027) or v24.04.3 (standard support until April 2029).
Impact of not doing this:TBD
To do:
Decide which version to upgrade to. Note that the SRE front-end CI script calls for ubuntu-latest.
Provide instructions for upgrading from v20.04.6 to the new version.
See also #30842, which talks about which Node and npm versions to use.
Analysis
Our SRE front-end CI/CD scripts use Ubuntu 24.04.3, so that is the recommended version for developer workstations as well.
This seems mostly a local thing?
Staff devs should follow what the core gov't decides as they get some level of support from within the larger group.
Contractors, we're responsible for our own thing.
Deliverable targets are set by the SRE team, so as long as the deliverable runs successfully in the CI it is accepted.
Activity
severinbeauvais commentedon Oct 21, 2025
@pwei1018 FYI.
thorwolpert commentedon Oct 21, 2025
This seems mostly a local thing?
Staff devs should follow what the core gov't decides as they get some level of support from within the larger group.
Contractors, we're responsible for our own thing.
Deliverable targets are set by the SRE team, so as long as the deliverable runs successfully in the CI it is accepted.
severinbeauvais commentedon Oct 22, 2025
@thorwolpert Yes, I agree: it's "my" problem. Still, I think it will be valuable to post my findings (how-to) here for others to follow.
If this takes longer than a couple of hours then I'll do it on my own time.
severinbeauvais commentedon Oct 27, 2025
Steps to upgrade
Step 0: Check your current Ubuntu version:

Step 1: upgrade from Ubuntu 20.04 to 22.04
Step 2: upgrade from Ubuntu 22.04 to 24.04
Example instructions:
https://www.tecmint.com/upgrade-ubuntu-20-04-to-24-04/#:~:text=You%20must%20first%20upgrade%20from,follow%20if%20done%20in%20order.
Another example that includes a backup step:
https://dev.to/equiman/upgrade-ubuntu-version-on-wsl-3h10
My issue
On the last step (do-release-upgrade), I always got this (even after trying some of the workarounds suggested in different places):
My solution
So I decided to follow the "Delete and reinstall" step here:
https://askubuntu.com/questions/1428423/upgrade-ubuntu-in-wsl2-from-20-04-to-22-04
wsl -l -vwsl --unregister Ubuntu-20.04wsl.exe --list --onlinewsl.exe --install Ubuntu-24.04Then reinstall all necessary packages:
severinbeauvais commentedon Oct 29, 2025
Per Patrick (Oct 28, 2025):
OlgaPotiagalova commentedon Nov 18, 2025
It was communicated to the dev team that each developer is responsible for maintaining and upgrading their own environment. This ticket can be closed.