WSL: Ubuntu on WSL gets corrupted - WslRegisterDistribution failed with error: 0x800700b7

  • Your Windows build number: Microsoft Windows [Version 10.0.17134.137]

  • What you’re doing and what’s happening:
    Sometimes, after a reboot, when I open Ubuntu I receive the error below and the only solution so far is to reinstall it clean or never reboot(ever). Same issue happened on 18.04 and on 16.04 and I had to reinstall, loosing all my config.

  • What’s wrong / what should be happening instead:

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x800700b7
The distribution installation has become corrupted.
Please select Reset from App Settings or uninstall and reinstall the app.
Error: 0x800700b7 Cannot create a file when that file already exists.

Press any key to continue...

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 23

Most upvoted comments

https://github.com/Microsoft/WSL/issues/634#issuecomment-230862990

cmda.exe

sc query LxssManager
sc stop LxssManager
sc start LxssManager

and so apparently you have something with the system, check for errors

sfc /scannow
dism /Online /Cleanup-Image /RestoreHealth

Thanks. Restarting LxssManager solved it.

“Windows Resource Protection did not find any integrity violations.”

Well… i’m here in 2024

in my case it got solved after i reset the distribution

these are the steps :

  • Open Settings: Press Windows + I to open the Settings app. Navigate to Apps:

  • Go to Apps > Apps & features. Find Your Linux Distribution:

  • Scroll through the list of installed apps and find your Linux distribution (e.g., Ubuntu, Debian). Reset the App:

  • Click on the distribution and then click Advanced options. Scroll down and click Reset.

re-open your distribution and ta-da i’ll work In shaa Allah

I found a better way to deal it, first delete the files, then delete reg, then reinstall. Finaly: its work

I get this error on both Ubuntu and OpenSuse. Restarting LxssManager solves it. But when I restart my Windows problem happens again. Any ideas?

This can happen if Kasperski is installed.