Forum Discussion

Sahil1165's avatar
Sahil1165
Copper Contributor
Jul 06, 2024

Issue with WSL Installation on Windows 11 Insider Program 24H2

I am encountering an issue while trying to install WSL on my Windows 11 Insider Program 24H2. The installation process fails with the following error message:

```
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070003
Error: 0x80070003 The system cannot find the path specified.

Press any key to continue...
```

This problem started after I accidentally deleted the WSL folder from the Program Files directory. Since then, I have been unable to install WSL (Ubuntu) on my system.

Could someone please guide me on how to resolve this issue?

Thank you in advance for your help!

  • EmilyRoberts's avatar
    EmilyRoberts
    Copper Contributor
    Try running netsh winsock reset as an Administrator, reboot the system, then run as a normal user wsl --update and wsl --install
  • Enriqueen's avatar
    Enriqueen
    Copper Contributor
    You can reinstall WSL with this command:

    Get-AppxPackage |? { $_.Name -like "*WindowsSubsystemforLinux*" }
  • Tomasstes's avatar
    Tomasstes
    Brass Contributor
    Check for updates:
    Make sure you are running the latest Insider Preview version. Go to Settings > Windows Update and check for updates. 2.

    2. Enable WSL:
    WSL needs to be enabled on your system. open PowerShell as administrator and run the following command:

    wsl --install
    This command installs WSL as well as Ubuntu by default; if you prefer another distribution, you can install it later.
    3. Check your BIOS/UEFI settings:
    Make sure virtualization is enabled in your BIOS/UEFI settings. Look for settings related to Intel VT-x or AMD-V and make sure they are enabled.

    4. Check the WSL version:
    If you are attempting to use WSL 2, make sure it is set to the default version. You can do this by running the following command:

    wsl --set-default-version 2
    5. Advanced Troubleshooting:
    Resetting WSL: If WSL was previously installed but failed, you may need to reset it. Use the following command to reset it:
    wsl --unregister <DistroName>
    Replace <DistroName> with the exact name of the distribution you are trying to reset (e.g., “Ubuntu”)

Resources