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

The error message "Error 2147942402 (0x80070002) occurred while starting 'ubuntu2204.exe'" #10948

Closed
1 of 2 tasks
Iuleoo opened this issue Dec 23, 2023 · 4 comments
Closed
1 of 2 tasks

Comments

@Iuleoo
Copy link

Iuleoo commented Dec 23, 2023

Windows Version

Microsoft Windows [Version 10.0.22635.2915]

WSL Version

WSL 版本: 2.0.14.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

内核版本: 5.15.133.1-1

Distro Version

Ubuntu-22.04

Other Software

No response

Repro Steps

WSL Version: 2.0.14.0
Kernel Version: 5.15.133.1-1
WSLg Version: 1.0.59
MSRDC Version: 1.2.4677
Direct3D Version: 1.611.1-81528511
DXCore Version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows Version: 10.0.22635.2915

Expected Behavior

Initially unable to locate the WSL path
Snipaste_2023-12-23_21-53-44

[Error 2147942402 (0x80070002) occurred while starting 'ubuntu2204.exe']
Snipaste_2023-12-23_21-53-54

Now, when I enter "wsl" in the PowerShell terminal, I can access WSL. However, I am unable to open the subsystem through the Ubuntu tab in Windows Terminal.
image

And earlier, both the display here and when opened through the File Explorer showed Windows Terminal. But now, when I choose "Open Terminal as Administrator," it opens the old version of PowerShell . Why is this happening?
image
image

Actual Behavior

After resetting the system, I installed WSL2 and Ubuntu successfully yesterday and was able to use it for a few hours. However, this morning, it suddenly stopped working.

Initially, when I entered "wsl" in the command prompt, it displayed "The system cannot find the specified directory." Then, I attempted to repair Windows Subsystem for Linux by clicking on it in the Control Panel. Now, when I enter "wsl," it directly enters the Ubuntu system. However, the terminal still cannot be accessed directly and continues to display the error message "[Error 2147942402 (0x80070002) occurred while starting 'ubuntu2204.exe']"

Diagnostic Logs

This is the first log file
WslLogs-2023-12-23_21-50-27.zip

This is the second log file
WslLogs-2023-12-23_22-11-39.zip

Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@OneBlue
Copy link
Collaborator

OneBlue commented Jan 16, 2024

Thanks @Iuleoo. I'm not seeing any WSL logs in either of the files you shared. Can you make sure to reproduce the issue while log collection is running ?

/logs

Copy link
Contributor

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging

If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue.

Thank you!

Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

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