"Error: 0x80080005 Server execution failed" while installing Ubuntu on Windows

While installing Ubuntu app on Windows, I'm encountering this error:

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80080005
Error: 0x80080005 Server execution failed

How do I install Ubuntu app successfully on Windows?


Try these steps:

  1. Press Windows key+R to open "Run" dialog. type: optionalfeatures.exe and hit Enter

  2. Scroll to the bottom and uncheck "Windows Subsystem for Linux". Click "OK".

  3. Repeat the above steps to re-enable Windows Subsystem for Linux.

Check if it now works.


Try restarting the manager for the linux subsystem by opening command prompt as admin (cmd) and running:

sc stop LxssManager
sc start LxssManager

and then query it to make sure the state is 4, RUNNING.

sc query LxssManager

Now try to open the Ubuntu app again, if it gives a different error this time, try uninstalling and reinstalling the app.