Forum Discussion
Prince
Dec 12, 2024Copper Contributor
Windows Subsystem for Linux doesn't work after the reinstallation of Windows 11 version 24H2.
I am not able to use Windows Subsystem for Linux after I reinstalled Windows 11 Home version 24H2 after resetting my Dell Inspiron 5410 laptop. The same occurred with my friend on a Windows 11 Pro laptop.
Before the reset, the Windows Subsystem for Linux was working fine on both of our laptops.
I tried following these steps to fix the issues.
1. I tried "Turn Windows features on or off," in which I enabled Windows Subsystem for Linux, which should make me use Ubuntu on my Windows PC after upgrading to version 2 using a kernel update.
when I tried to update the WSL kernel
By downloading and installing the latest WSL 2 kernel from Microsoft’s WSL Kernel Update.
https://learn.microsoft.com/en-us/windows/wsl/install-manual Step 4
It says, "This update is applicable to machines with the Windows subsystem for Linux."
and does not install updates
WSL allows the following features:
Ubuntu terminal environment in minutes with Windows Subsystem for Linux (WSL). Develop cross-platform applications, improve your data science or web development workflows, and manage IT infrastructure without leaving Windows.
Key features:
- Efficient command line utilities, including bash, ssh, git, apt, npm, pip, and many more
- Manage Docker containers with improved performance and startup times
- Leverage GPU acceleration for AI/ML workloads with NVIDIA CUDA
- A consistent development-to-deployment workflow when using Ubuntu in the cloud
But "Turn Windows features on or off" did not help.
2. Then, I tried installing WSL manually with the following codes:
https://learn.microsoft.com/en-us/windows/wsl/install-manual
Step 1 - Enable the Windows Subsystem for Linux
Step 3 - Enable Virtual Machine feature
PS C:\WINDOWS\system32> .exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
>>
Deployment Image Servicing and Management tool
Version: 10.0.26100.1150
Image Version: 10.0.26100.2605
Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.
PS C:\WINDOWS\system32> .exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
>>
Deployment Image Servicing and Management tool
Version: 10.0.26100.1150
Image Version: 10.0.26100.2605
Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.
Although it ran, it was not helpful even after 100 percent installation, but it did not help.
3. I tried following codes in PowerShell as Administrator:
wsl.exe --install
wsl --install
wsl.exe --update
PS C:\WINDOWS\system32> wsl.exe --install
Class not registered
Error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG
PS C:\WINDOWS\system32> wsl --install
Class not registered
Error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG
none of these codes helped.
4. When I tried running the command Bash in PowerShell as Administrator.
C:\Windows\System32>bash
Class not registered
Error code: Bash/CallMsi/Install/REGDB_E_CLASSNOTREG
It did not run.
5. I verified virtualization is enabled in BIOS.
- Restart your computer and access the BIOS/UEFI (usually by pressing F2, Del, or a similar key during boot).
- Look for settings like Intel Virtualization Technology (VT-x) or AMD-V and ensure they are enabled.
- Save changes and reboot into Windows.
6. Another error was given
Error: 1168
Error code 1168 usually translates to "Element not found" in Windows. This error indicates that some required files, registry entries, or features are missing or improperly configured. In the context of WSL installation.
7. I even tried reinstalling Windows, which did not help.
8. I installed Windows 11 (multi-edition ISO for x64 devices).
https://www.microsoft.com/en-us/software-download/windows11
But this also does not fix my issue.
9. Even the Windows customer support team was not able to help.
I guess this is the issue with most of the system. Please help me fix it.
and there may be a bug in Windows 11.
- PrinceCopper Contributor
Is there no one who could solve this ?