Skip to content

Instantly share code, notes, and snippets.

@erwinkersten
Last active May 15, 2025 06:41
Show Gist options
  • Select an option

  • Save erwinkersten/85148474fcd96b04f8476c5b546196cf to your computer and use it in GitHub Desktop.

Select an option

Save erwinkersten/85148474fcd96b04f8476c5b546196cf to your computer and use it in GitHub Desktop.
Install WSL2 on Windows Server 2022

Install WSL2 on Windows Server 2022

When installing a WSL2 distribution on Windows Server 2022 you may receive the error An error occurred during installation. Distribution Name: 'Ubuntu 22.04 LTS' Error Code: 0x8000ffff. First you need to update WSL after enabling the feature.

Steps for a fresh installation:

  1. Enable Windows Subsystem for Linux
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  1. Reboot
  2. Update WLS
wsl --update
  1. List the available distribution wsl --list --online or install a distribution wsl --install --distribution Ubuntu-22.04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment