How to fix “WslRegisterDistribution failed with error” in WSL

If you see the “WslRegisterDistribution failed with error” message when starting a Linux distro in WSL, try these quick workarounds.

  • Restart the computer
  • Update the WSL components
  • Check the state of the LxssManager service
  • Reset the Installed Linux Distribution
  • Change the WSL version from 1 to 2.

Current versions of Windows 10 and 11 come with a built-in Linux Subsystem component that allows you to work with the Bash console, run Linux programs and work in the environment of various Linux distributions directly from Windows. But sometimes you may run into the “WslRegisterDistribution failed with error” issue, which appears when you start Linux in WSL.

Most often, the cause of the error is a malfunction of the WSL subsystem , incorrect virtualization settings on the computer, less often – damage to the distribution installation files. The error code can be different – 0x800701bc , 0x800706be , 0x8000000d , 0x80370102 , 0x8007019e and so on.

WslRegisterDistribution failed with error
WslRegisterDistribution failed with error

Fix “WslRegisterDistribution failed with error”

However, these are minor details, and in most cases, the error can be resolved by applying general solutions, such as.

Solution 1. Restarting the computer

If you did not restart your computer after installing WSL or the Linux distribution, do so. Click the Start button and select the power icon, then click on the Restart command.

Restart Windows 11

Solution 2. Update the WSL subsystem

Updating the WSL subsystem may be of help.Check for the latest updates to the Linux subsystem as follows.

  1. Open PowerShell as Administrator,
  2. Run two commands:
      1. first wsl –update. wsl update
      2. then wsl –shutdown. Run this one after the updates are installed.wsl shutdown
  3. Open the Windows Subsystem for Linux and see if updates fixed your issue.

Solution 3. Check the LxssManager service

You need now to check the the LxssManager service status. Follow the steps below.

  1. Open the Services management snap-in with the services.msc command.
  2. Find the LxssManager service and see its status.
  3. If the service is running, restart it from the context menu or toolbar. It is in this state while a Linux distribution is running.restart LxssManager service
  4. The startup type of this service must be “Manual” , and the same applies to the LxssManagerUser service.

Solution 4. Reset the Installed Linux Distribution

Resetting an Installed Distribution is not different from troubleshooting Store apps.

  1. Open Settings (⊞ Win + I ) and go to the section “Apps and Features“.
  2. Find the installed Linux distribution in the list of applications.
  3. Open its advanced options and click the “Repair” or “Reset” button.

A tougher option is also possible – removing the distribution and reinstalling it from the Microsoft Store.

Other methods to try

If the suggested options do not yield the desired outcome, you can consider trying the following alternative solutions.

Enable hardware virtualization

Check if the hardware virtualization feature has been disabled in the BIOS. This can happen when there is a sudden power outage.

Re-register WSL

Re-register the components of Windows Subsystem for Linux to exclude misconfiguration. To do this, run the following commands in a command prompt or PowerShell running as an administrator :

  • dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  • dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism commands
dism commands

Alternatively, you can reinstall the Virtual Machine Platform and Windows Subsystem for Linux components from the Turn Windows features on or off app.

Switch WSL version

If you are using WSL version 1, switch to version 2 by running wsl –set-default-version 2 in PowerShell.

change WSL version
change WSL version

On the other hand, if you are currently utilizing the second version of the subsystem, you can experiment with the first version by executing the identical command, but with set-default-version set to 1. Run wsl –set-default-version 1 in PowerShell.

 

Looks like you've read the post to the end. If you enjoyed it, please share it. You would greatly help our blog to grow!

Author: The MFTNEXT Team

The MSFTNEXT project is a small team of authors who love to engage with the latest technology and gadgets. Being passionate Windows bloggers, we are happy to help others fix their system issues.

Leave a Reply

Your email address will not be published.

css.php