Skip to content

Wsl only starts when run elevated #11460

@jfreuter-finnet

Description

@jfreuter-finnet

Windows Version

Microsoft Windows [Version 10.0.22621.3447]

WSL Version

2.1.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.146.1-2

Distro Version

Ubuntu

Other Software

No response

Repro Steps

On a non-elevated command prompt:

  1. Install / Upgrade wsl using wsl --update
  2. Install Ubuntu using wsl --install Ubuntu
    -or-
  3. If Ubuntu is already installed, start Ubuntu using just wsl

Expected Behavior

Ubuntu installs and starts a shell with my user logged in.

Actual Behavior

The install hangs with at "This may take a few minutes", but never finishes. When I just run wsl I get no output at all. When I run wsl from an elevated command prompt, it usually starts fine and I get a linux shell as root. Sometimes (cannot reliably reproduce this) this also hangs.

Wsl used to work fine when I ran the version bundled with Windows, but the Microsoft Store version never worked on this machine.

Diagnostic Logs

Logs from a hanging install process of Ubuntu

WslLogs-2024-04-12_16-33-10.zip
WslLogs-2024-04-12_16-33-10-kmesg.txt

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions