WSL: Error: 0x8007007e when running Ubuntu for WSL

When installing Ubuntu from the Windows Store and running it for the first time (and thereafter), the following output is seen instead of starting the Ubuntu install process:

> ubuntu
Installing, this may take a few minutes...
Installation Failed!
Error: 0x8007007e
Press any key to continue...

Pressing any key drops back to the Windows shell.

I’m running the Windows 10 Pro Insider Preview Build 16193.rs_prerelease.170507-1300

Judging from the 1 star reviews on the Windows Store a number of other users are experiencing this same issue.

I haven’t been able to capture any logging with more descriptive information. If any devs can advise on how I might capture more useful information I’ll be glad to do so.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 7
  • Comments: 47 (15 by maintainers)

Most upvoted comments

@nlundquist - Have you enabled the Windows Subsystem for Linux optional Windows component?

@mrfelker have you installed the WSL optional component? https://msdn.microsoft.com/en-us/commandline/wsl/install_guide

Enable the “Windows Subsystem for Linux” optional feature and reboot. Open PowerShell as Administrator and run: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

We have reached out to the distribution partners and provided guidance on how to detect that the optional component is not installed. We also have an ask our to the Windows Store team to filter or allow enabling our optional component from the store UI.

Unable to enable WSL image

@nlundquist - Thanks for reporting & for your help diagnosing this snafu. We’re working to remedy this with our partners too.

Just goes to show that we’re not kidding when we say that we can’t make WSL awesome without the help and support of our community 😀

I spoke with the dev lead for the Windows console and it appears that the appx that was submitted to the store has the wrong minimum version number. Installing the store application requires build 16203 or later (you are running 16193).

Sorry for the inconvenience, but the good news is as soon as you upgrade to your next insider build things should be good.

Yes the “Windows Subsystem for Linux (Beta)” option is enabled under the Windows Features control panel. I’ve had it enabled since before I updated to the Insider Preview builds. Would you advise uninstalling and reinstalling it?

Due to some sercurity policies, it hasn’t worked. However, downloading manually the package and install it was very simple:

  1. Enable Windows Subsystem for Linux (in Control Panel > Programs > Windows Features)
  2. Go to https://aka.ms/wsl-ubuntu-1804
  3. Double click on the newly installed package

I have a similar issue as @TonyHenrique . I have tried the powershell command as administrator and tried checking the windows subsystem box and after the reboot it comes back unchecked. i have tried it more than 10 times and still cant run ubuntu.

Windows 10 Pro Version 1709 OS Build 16299.251

Please any help would be much appreciated

I have the same issue as @jean-ls and @TonyHenrique I tried Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux in an administrator powershell and got the same error message (just in German).

PS C:\WINDOWS\system32> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enable-WindowsOptionalFeature : Der Schlüssel der Konfigurationsregistrierung konnte nicht gelesen werden.
In Zeile:1 Zeichen:1
+ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand

PS C:\WINDOWS\system32>

Im running on a Surface 3 with Windows 10 Pro 1709 Build 16299.125

  1. Open PowerShell as Administrator and run:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux 2. Restart your computer when prompted.

@nlundquist - Thank you very much for your help!