Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[windows-2022] WSL fails to install distribution image in Azure DevOps Pipelines #10837

Closed
2 of 15 tasks
nishy2000 opened this issue Oct 22, 2024 · 3 comments
Closed
2 of 15 tasks

Comments

@nishy2000
Copy link

Description

Running a pipeline which attempts to install a WSL distribution image on windows-2022 is seeing failures.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

20241015.1.0

Is it regression?

Yes, 20240310.1.0 is OK.

Expected behavior

Run a pipeline which attempts to install a WSL image like Ubuntu-22.04 on windows-2022

Actual behavior

Result of running wsl --install -d Ubuntu-22.04

wsl --install --distribution Ubuntu-22.04 --web-download --no-launch
Downloading: Ubuntu 22.04 LTS

Installing: Ubuntu 22.04 LTS

There are no more endpoints available from the endpoint mapper. 

Error code: Wsl/InstallDistro/0x800706d9

Repro steps

jobs:
  - job: TryWsl
    pool:
      name: Azure Pipelines
      vmImage: windows-2022

    steps:
      - pwsh: |
          $distribution = "Ubuntu-22.04"
          Write-Host "wsl --update --web-download" 
          $wslupd = wsl --update --web-download | Out-String
          $wslupd
          if ($wslupd) {
            Write-Host "wsl --version" 
            wsl --version
            Write-Host "wsl --status" 
            wsl --status 
            Write-Host "wsl --set-default-version 1" 
            wsl --set-default-version 1
            Write-Host "wsl --status" 
            wsl --status 
            Write-Host "wsl --install --distribution $distribution --web-download --no-launch" 
            wsl --install --distribution $distribution --web-download --no-launch
          }

        displayName: Install WSL
@subir0071
Copy link
Contributor

Hello @nishy2000 , Thanks for informing us about the issue. We will analyze the same and update.

@subir0071
Copy link
Contributor

Raised a discussion with wsl team to understand any workaround

@subir0071
Copy link
Contributor

Closing this incident, as of now. please continue to watch the discussion as this issue pertains to wsl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants