Windows 10: Cannot install WSL 2

Discus and support Cannot install WSL 2 in Windows 10 Installation and Upgrade to solve the problem; I'm running build 18945.1001. I installed Windows Subsystem for Linux from the store as per https://docs.microsoft.com/en-us/windows/wsl/install-win10.... Discussion in 'Windows 10 Installation and Upgrade' started by PaulBarbee, Jul 28, 2019.

  1. Cannot install WSL 2


    I'm running build 18945.1001. I installed Windows Subsystem for Linux from the store as per https://docs.microsoft.com/en-us/windows/wsl/install-win10. I can go to the store, click Debian, click Launch and get a Bash terminal. I rebooted, ran Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform, the system automatically rebooted. I then ran wsl and PowerShell responds Windows Subsystem for Linux has no installed distributions.

    Distributions can be installed by visiting the Microsoft Store:
    https://aka.ms/wslstore


    I tried installing from within PowerShell by following the instructions at https://docs.microsoft.com/en-us/windows/wsl/install-manual. I ran Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile Debian.appx -UseBasicParsing


    I downloaded the Debian appx file. I ran Add-AppxPackage DebianGNULinux_1-1-3-0_x64__76v4gfsz19hv4.Appx


    PowerShell still claims there are no installed distributions. I can run Debian from the Start menu. How can I install WSL 2 and run it from within PowerShell?

    :)
     
    PaulBarbee, Jul 28, 2019
    #1

  2. Resolving WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL 2?

    # Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL 2

    I am currently on the `Windows 10 Pro Insider Preview build 18922.rs_prerelease`, and am trying to install a Linux distribution to access via Windows Subsystem for Linux (2). I have tried this for both the Ubuntu and Debian distros and have encountered the
    same error in each.

    I have successfully downloaded both distros from the Microsoft store, but when I try to first "run" the Ubuntu or Debian "app" the respective console comes up and prints the following text:

    Code:
    Installing, this may take a few minutes...
    
    WslRegisterDistribution failed with error: 0x80370102
    
    Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.
    
    Press any key to continue...
    Pressing a key at this point automatically exits the console.
    ---

    ## Additional information:

    - Using the `wsl -l` command shows no installed distros.

    - I do have Hypervisor installed and running `bcdedit` does show that `hypervisorlaunchtype` is set to `Auto` in the `Windows Boot Loader` section.

    - I did previously have Ubuntu installed and working under WSL 1 before switching to the Windows Insider Program Fast Ring and gaining access to WSL 2, but I was encountering another issue when trying to have it use WSL 2. After
    trying to use the command `wsl --set-version Ubuntu 2` I was met with a request to "Enable the Virtual Machine Platform". I had already run `Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform` prior, according to the official microsoft
    tutorial here Install WSL 2, but for good measure I did it again and got the same error, and Ubuntu was still on version 1 (I haven't explicitly mentioned it but I was restarting/shutting down when requested/suggested
    by windows and tutorials, so I don't believe me not restarting is a cause). In hopes to find a workaround, I ended up uninstalling Ubuntu and hoping I could reinstall it and have it obey the default defined by the `wsl --set-default-version 2` command (suffice
    it to say, this did not go as I'd hoped).

    - This might be an unrelated issue, but when I initially attempted reinstalling Ubuntu, the Microsoft store had a bit of a fit and could not complete the download- encountering an 'unknown error'. I did a restart, tried again, and
    got the same error, but then after telling it to 'try again' it succeeded. I had no such issues installing Debian from the store.

    ---

    ## Suggestions Welcome

    I've searched for a bit and can't find mention of this error code in particular anywhere else.

    In addition, is there anywhere I can look up/access these error codes in any sort of documentation? Ideally so I can make a better informed work-around attempt before bothering you all on here.

    All help is appreciated!
     
    SamuelLudwig, Jul 28, 2019
    #2
  3. swarfega Win User
    swarfega, Jul 28, 2019
    #3
  4. swarfega Win User

    Cannot install WSL 2

    swarfega, Jul 28, 2019
    #4
Thema:

Cannot install WSL 2

Loading...
  1. Cannot install WSL 2 - Similar Threads - Cannot install WSL

  2. Cannot install WSL from the web

    in Windows 10 Software and Apps
    Cannot install WSL from the web: Split from this thread. Came across this thread trying to figure out how to install this from the Microsoft Store. As of right now I cannot locate it in the store outside of the webpage which I'm linking, and I'm unable to start up the install from the web. Was the app...
  3. Cannot install WSL on new laptop

    in Windows 10 Gaming
    Cannot install WSL on new laptop: When trying to install WSL from the microsoft store I get the error message:Something unexpected happened:Reporting this problem will help us understand it better. You can wait a bit and try again or restart your device. That may help.Code: 0x80070490So far I have...
  4. WSL 2 - Can't install Ubuntu 22.04 - Can't use any Ubuntu with WSL 2

    in Windows 10 Gaming
    WSL 2 - Can't install Ubuntu 22.04 - Can't use any Ubuntu with WSL 2: Hi! I did a clean install of Win 11 Pro yesterday. I did Windows update and I'm current.I tried to use WSL and install Ubuntu 22.04 with the new GUI. I'm a developer and this is the reason I went to Windows 11!When I install from the store it dies while unpacking with a...
  5. WSL 2 distro installation failure

    in Windows 10 Ask Insider
    WSL 2 distro installation failure: Installation of WSL 2 distros fails with error Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80370102 Error: 0x80370102 The virtual machine could not be started because a required feature is not installed. I also cannot run Hyper-V...
  6. Installing anbox on wsl 2

    in Windows 10 Drivers and Hardware
    Installing anbox on wsl 2: Tried to run android apps on wsl using anbox worked fine on my desk following a reddit guide but doesn't work on my laptop with the newer ms linux kernel.Says dkms can't locate the binder and ashmem modules for some reason.tried kernel source dir doesn't work.Also question...
  7. WSL 2

    in Windows 10 BSOD Crashes and Debugging
    WSL 2: I want to make use of WSL 2 feature with the new update of Windows version 2004 , in order to use WSL 2 i need to enable Virtualization in my pc bios settings. So when i enable virtualization my windows starts lagging and all the animations of scrolling etc etc lags...Please...
  8. Cannot upgrade installed distros in WSL to version 2

    in Windows 10 Software and Apps
    Cannot upgrade installed distros in WSL to version 2: After installing the Win10 2004 build 19041 update (running winver shows "version 2004 (OS build 19041.388)", I've tried to upgrade a couple of installed distros I had in WSL version 1 to WSL version 2 following the instructions at...
  9. Cannot run GUI app on WSL 2

    in Windows 10 Network and Sharing
    Cannot run GUI app on WSL 2: I want to open some GUI apps on WSL 2 using Windows Insider 19640, but it doesn't work. For example, if I want to open gthumb in Ubuntu terminal, it throws an error: lemma@DESKTOP-TE65AIF:~$ xhost + xhost: unable to open display ":0" lemma@DESKTOP-TE65AIF:~$ gthumb...
  10. WSL 1 to WSL 2 Upgrade

    in Windows 10 Support
    WSL 1 to WSL 2 Upgrade: Been using Windows Subsytem for Linux for some time. How do I get it upgrade to WSL 2. 132527

Users found this page by searching for:

  1. wsl -set-default-version 2 not working

    ,
  2. wsl -set-version unknown command

    ,
  3. wsl 2 problems

    ,
  4. cannot install wsl2,
  5. WslRegisterDistribution failed with error: 0x80370102,
  6. cannot install wsl 2,
  7. win10 wsl2 19041.388,
  8. cannot wsl -set-default-version 2,
  9. installing this may take a few minutes...wslregisterdistribution failed with error: 0x80370102error: 0x80370102 the virtual machine could not be started because a required feature,
  10. DebianGNULinux_1-1-3-0_x64__76v4gfsz19hv4.Appx,
  11. wsl -set-version troubleshooting,
  12. wsl 1 to wsl 2 not working,
  13. wsl -upgrade not working?,
  14. cannot install ubuntu wsl 2,
  15. 0x80370102 wsl2 help