WSL: [error 2147942402 (0x80070002) when launching `ubuntu2204.exe'] launching wsl2 from windows Terminal

Windows Version

Microsoft Windows [Version 10.0.22631.3296]

WSL Version

2.1.1.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.146.1-2

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

I get this error while launching Ubuntu-22.04 as regular user from windows Terminal

Expected Behavior

Launch without error

Actual Behavior

[error 2147942402 (0x80070002) when launching `ubuntu2204.exe’]

Diagnostic Logs

I can log in as root, if I rename the regular user .bashrc file, I can then log in as regular user using su. But I still get the error [error 2147942402 (0x80070002) when launching `ubuntu2204.exe’] if I launch Ubuntu from windows Terminal, even if I shutdown wsl.exe and wait for more than a dozen of seconds once renamed .bashrc file of regular user.

Logs WslLogs-2024-03-22_10-25-41.zip

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (1 by maintainers)

Most upvoted comments

I am having the same issue and this worked for me: https://askubuntu.com/a/1486711

Change ubuntu2204.exe to wsl.exe in the settings.

image