Hello guys I tried everything, I was about to re-intall windows and then I decided to try this solution and it worked!! It seems to be the only way to fix this specific issue that i found without a clean install so I had chat gpt make a nice guide for everyone basically the solution is to unpack the .msi updater provided by windows and paste its contents inside of the C:\Windows\System32\lxss folder it worked like a charm here is a detailed guide:
If you’ve been struggling to install or enable Windows Subsystem for Linux (WSL) and running into Error 0x8007019e, or the .msi
installer for the WSL kernel gives you the dreaded "This update only applies to machines with the Windows Subsystem for Linux", you’re not alone. This issue can be particularly frustrating, and after scouring forums with no clear solution, I found a workaround that works!
Here’s the step-by-step guide to fixing WSL when nothing else works.
The Problem
- Running
wsl
commands always fails:
plaintext
Copy code
PS C:\WINDOWS\system32> wsl --install
The system cannot find the path specified.
1. Attempting to enable WSL and related features using `DISM` may work, but the WSL kernel `.msi` installer gives this error:
```yaml
plaintext
Copy code
This update only applies to machines with the Windows Subsystem for Linux
- Even after enabling all necessary features and installing Ubuntu from the Microsoft Store, the system fails to recognize WSL as properly installed.
This issue seems common on Windows Insider Preview Builds (24H2), but the solution might apply to other builds as well.
The Solution
Here’s the step-by-step process I used to fix WSL and get Ubuntu running successfully:
Step 1: Fully Enable WSL Features
Open PowerShell as Administrator and disable all WSL-related features to ensure a clean state:
powershell
Copy code
dism.exe /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart
dism.exe /online /disable-feature /featurename:VirtualMachinePlatform /norestart
Restart your computer.
Re-enable the required features:
powershell
Copy code
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Restart your computer again.
Step 2: Manually Install the WSL Kernel
If the .msi
installer for the WSL kernel still fails, use this workaround:
Download the .msi
Kernel Update:
- Go to WSL Kernel Update Package and download the
.msi
file.
Extract the .msi
:
- Use a tool like [7-Zip](https://www.7-zip.org/) to extract the `.msi` installer to a folder (e.g., `C:\WSLKernel`).
**Copy Kernel Files to the Correct Location**:
- Navigate to the extracted folder and locate the WSL kernel files.
- Copy the kernel files to this directory:
```yaml
plaintext
Copy code
C:\Windows\System32\lxss
```
Step 3: Install WSL from the Microsoft Store
- Open the Microsoft Store.
- Search for Windows Subsystem for Linux or use this link.
- Install the WSL app.
Step 4: Install a Linux Distribution
- Search for a Linux distribution in the Microsoft Store (e.g., Ubuntu).
- Install it.
- After installation, launch the distribution from the Start menu.
Step 5: Verify WSL Installation
Open PowerShell as Administrator and run:
powershell
Copy code
wsl --list --verbose
- You should see the installed distributions listed.
Test launching the distribution:
powershell
Copy code
wsl
If it opens your Linux shell, you’re good to go!
Key Learnings
- The
.msi
error occurs because WSL was not fully registered or its files were missing from the lxss
folder.
- Manually copying the WSL kernel files resolves this issue and allows the kernel to be recognized.
- This solution works on Windows Insider Builds like 24H2, where WSL behavior can sometimes break. How to Fix WSL Installation Errors (0x8007019e and .msi Issues) on Windows 11 Pro 24H2 Insider Build If you’ve been struggling to install or enable Windows Subsystem for Linux (WSL) and running into Error 0x8007019e, or the
.msi
installer for the WSL kernel gives you the dreaded "This update only applies to machines with the Windows Subsystem for Linux", you’re not alone. This issue can be particularly frustrating, and after scouring forums with no clear solution, I found a workaround that works! Here’s the step-by-step guide to fixing WSL when nothing else works. The Problem
- Running
wsl
commands always fails:
plaintext
Copy code
PS C:\WINDOWS\system32> wsl --install
The system cannot find the path specified.
```
- Attempting to enable WSL and related features using
DISM
may work, but the WSL kernel .msi
installer gives this error:
plaintext
Copy code
This update only applies to machines with the Windows Subsystem for Linux
- Even after enabling all necessary features and installing Ubuntu from the Microsoft Store, the system fails to recognize WSL as properly installed.
This issue seems common on Windows Insider Preview Builds (24H2), but the solution might apply to other builds as well.
The Solution
Here’s the step-by-step process I used to fix WSL and get Ubuntu running successfully:
Step 1: Fully Enable WSL Features
- Open PowerShell as Administrator and disable all WSL-related features to ensure a clean state:
powershell
Copy code
dism.exe /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart
dism.exe /online /disable-feature /featurename:VirtualMachinePlatform /norestart
```
- Restart your computer.
- Re-enable the required features:
powershell
Copy code
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
```
- Restart your computer again.
Step 2: Manually Install the WSL Kernel
If the .msi
installer for the WSL kernel still fails, use this workaround:
- Download the
.msi
Kernel Update:
- Go to WSL Kernel Update Package and download the
.msi
file.
- Extract the
.msi
:
- Use a tool like 7-Zip to extract the
.msi
installer to a folder (e.g., C:\WSLKernel
).
- Copy Kernel Files to the Correct Location:
Step 3: Install WSL from the Microsoft Store
- Open the Microsoft Store.
- Search for Windows Subsystem for Linux or use this link.
- Install the WSL app.
Step 4: Install a Linux Distribution
- Search for a Linux distribution in the Microsoft Store (e.g., Ubuntu).
- Install it.
- After installation, launch the distribution from the Start menu.
Step 5: Verify WSL Installation
- Open PowerShell as Administrator and run:
powershell
Copy code
wsl --list --verbose
- You should see the installed distributions listed.
- Test launching the distribution:
powershell
Copy code
wsl
If it opens your Linux shell, you’re good to go!
Key Learnings
- The
.msi
error occurs because WSL was not fully registered or its files were missing from the lxss
folder.
- Manually copying the WSL kernel files resolves this issue and allows the kernel to be recognized.
- This solution works on Windows Insider Builds like 24H2, where WSL behavior can sometimes break.