how to install WSL on Windows Server 2022 Core

Brad Johnson 42 Reputation points
2024-04-07T23:52:39.64+00:00

i am running azure devops agent on a windows server core 2022 server.

i need to enable bash commands for azure pipelines.

i can't install wsl and a distribution

i keep getting

Windows Subsystem for Linux has no installed distributions. Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstore

i download ubuntu and try to add the app and get

Class not registered

PS C:> wsl --install

Windows Subsystem for Linux is already installed.

Class not registered

Community Center | Not monitored
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.