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

Error: 0x80070570 The file or directory is corrupted and unreadable. #10925

Closed
1 of 2 tasks
NewtonChutney opened this issue Dec 15, 2023 · 21 comments
Closed
1 of 2 tasks

Comments

@NewtonChutney
Copy link

NewtonChutney commented Dec 15, 2023

Windows Version

Microsoft Windows [Version 10.0.22631.2861]

WSL Version

WSL version: 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 (all versions)

Other Software

Docker Desktop (desktop/desktop-data disabled)
Podman Desktop (machine disabled)

Repro Steps

Just had an update with wsl --update, and poof... started getting this issue

Expected Behavior

wsl should launch/install properly

Actual Behavior

wsl isn't getting installed properly

~
❯ wsl --install
Ubuntu is already installed.
Launching Ubuntu...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070570
Error: 0x80070570 The file or directory is corrupted and unreadable.

Press any key to continue...
The operation completed successfully.

Diagnostic Logs

Email sent to wsl-gh-logs@microsoft.com

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:

Closed similar issues:

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

@NewtonChutney
Copy link
Author

I currently do not have any installed version of Ubuntu.. but before I had reset the installed "Ubuntu" distro, when I launched would say something about the C:\Program Files\WSL\system.vhd file being corrupted

@NewtonChutney
Copy link
Author

image
How do I reinstall wsl? I'm able to uninstall the upper app, but for the lower one, when I trigger an uninstall raises some weird error:
image

@NewtonChutney
Copy link
Author

NewtonChutney commented Dec 15, 2023

dism and sfc say restored and verification complete..
Tried enabling and disabling the optional WSL feature.. and restarted

The same popup appears when I try to run the latest installer from github releases:
image

When I run the older one:
image

@OneBlue
Copy link
Collaborator

OneBlue commented Dec 15, 2023

I currently do not have any installed version of Ubuntu.. but before I had reset the installed "Ubuntu" distro, when I launched would say something about the C:\Program Files\WSL\system.vhd file being corrupted

This is indeed what I saw in the logs. Unfortunately it might be that your disk is corrupted. One thing you can try would be to run:

chkdsk /r /f

And see if that recovers. If not you might need to reinstall Windows.

@NewtonChutney
Copy link
Author

@OneBlue, thanks for the suggestion..
But nope.. chkdsk didn't help out 🥲

Cleaning up is the solution.. But shouldn't there be an uninstaller/installer that isolates the WSL components and fixes them.. I really don't understand how an installer fails to launch..

Anyhow, I ended up doing an in place upgrade.. (keep personal files only, removed apps)
And all's good.. ♥
Thanks!

@ricardoboss
Copy link

I had issues with docker engine not being able to start, so I decided to reinstall WSL.

Ended up with the same error message. chkdsk /r /f also didn't find any issues.

@OneBlue
Copy link
Collaborator

OneBlue commented Dec 18, 2023

Thank you for confirming. Closing since the issue is fixed.

@ricardoboss
Copy link

Uhh, no the issue is not fixed. I had to reinstall my OS to work around this. How is this fixed?

@NewtonChutney
Copy link
Author

Yes, a component that's installed through the store.. But I couldn't fix it..
The WSL "app" wouldn't uninstall or anything..
There ought to be some other user-friendly way?

@OneBlue
Copy link
Collaborator

OneBlue commented Dec 19, 2023

Yes, a component that's installed through the store.. But I couldn't fix it.. The WSL "app" wouldn't uninstall or anything.. There ought to be some other user-friendly way?

What do you mean by the "App app wouldn't uninstall" ? What exact error did you see ?

@OneBlue OneBlue closed this as completed Dec 19, 2023
@NewtonChutney
Copy link
Author

image
How do I reinstall wsl? I'm able to uninstall the upper app, but for the lower one, when I trigger an uninstall raises some weird error:
image

This is the error I get when uninstalling the "store app"

@NewtonChutney
Copy link
Author

dism and sfc say restored and verification complete..
Tried enabling and disabling the optional WSL feature.. and restarted

The same popup appears when I try to run the latest installer from github releases:
image

When I run the older one:
image

Alright, if we say it is disk corruption.. How does a freshly downloaded installer fail to launch as well?

@OneBlue
Copy link
Collaborator

OneBlue commented Dec 19, 2023

This would be because the previous installation is corrupted, and so the installer would fail to upgrade the previous installation. Unfortunately this is not something that can be fixed on the installer side

@NewtonChutney
Copy link
Author

This would be because the previous installation is corrupted, and so the installer would fail to upgrade the previous installation. Unfortunately this is not something that can be fixed on the installer side

Alright.. 🥶
ᓚᘏᗢ

Thanks for helping out!

@AidanWelch
Copy link

This would be because the previous installation is corrupted, and so the installer would fail to upgrade the previous installation. Unfortunately this is not something that can be fixed on the installer side

So why cannot it not be deleted and reinstalled?

@AidanWelch
Copy link

Okay, I was able to fix the issue without reinstalling my OS be deleting everything I could in C:\Program Files\WSL except 2 files that were being used by a program. I then uninstalled Ubuntu. Next, I disabled the Windows Features Windows Subsystem for Linux, Windows Hypervisor Platform, and Virtual Machine Platform. I rebooted once that was done. Then I enabled the features again(and I think rebooted again), and finally reinstalled Ubuntu from the MS Store- and it worked again.

@NewtonChutney
Copy link
Author

Ahh, that's nice.
I had the same error message when uninstalling.. And reinstalling didn't work..

I guess mine was in a really bad state or else the team might have fixed something meanwhile.. 🥲

@chbroecker
Copy link

I am also experiencing the same error.

When you are saying that you deleted the C:\Program Files\WSL folder how did you manage to run wsl --install again @AidanWelch? If I delete the folder it does not reappear and I get the path not found error below.

image

Really do not want reinstall Windows again because one of its apps got corrupted..

@AidanWelch
Copy link

@chbroecker Did you uninstall your distro from the MS store then reinstall it?

@Lorenzo9196
Copy link

Okay, I was able to fix the issue without reinstalling my OS be deleting everything I could in C:\Program Files\WSL except 2 files that were being used by a program. I then uninstalled Ubuntu. Next, I disabled the Windows Features Windows Subsystem for Linux, Windows Hypervisor Platform, and Virtual Machine Platform. I rebooted once that was done. Then I enabled the features again(and I think rebooted again), and finally reinstalled Ubuntu from the MS Store- and it worked again.

This worked for me, I was facing the same issue

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

No branches or pull requests

6 participants