last day (15 days later) » 

2:23 PM
0
Q: WSL fails to start in Windows 10: "The specified module could not be found."

JesseTGI'm trying to run WSL in Windows 10. However, doing so returns a vague The specified module could not be found error. I initially thought it was a problem with Docker, until I tried to run WSL independently of it. Running the ubuntu command yields the following output: PS C:\Users\Jesse> ubuntu T...

 
What happens if you use wsl -d Ubuntu (distro name may vary) instead?
 
@DanielB Same thing. The specified module could not be found.
 
Just to confirm you have tried to reinstall WSL? You have also ran SFC and DISM to confirm there is no system corruption?
 
@Ramhound Reinstall? No. I only tried disabling (then reenabling) it in the "Windows Features" menu. How can I do that?
@Ramhound As for SFC/DISM? I ran them the other day, but for something unrelated.
 
When you enable a Windows feature it's installed. What are the current outputs of those commands. Does it show any corruption?
 
2:23 PM
@Ramhound Running the three commands in this conveniently relevant answer all return success. Specifically, The operation completed successfully. and Windows Resource Protection did not find any integrity violations.
 
Uninstall Ubuntu through the Windows Store and then reinstall it.
 
@Ramhound Same output: The specified module could not be found. That occurs when I try to run Ubuntu from the command-line as well as from the Start menu.
 
Disable Windows Subsystem for Linux -> Reboot -> Re-Enable Windows Subsystem for Linux -> Reboot, try again.
 
@SeñorCMasMas I did that already.
 
At this point you might want to remove Docker in order to just eliminate possible conflicts and get WSL to work.
 
2:23 PM
@Ramhound Okay, sure. But I need Docker. How do I know that this won't happen again?
 
So you removed Docker and it WSL2 Ubuntu worked? There is a way to generate WSL logs.
 
@Ramhound Nope. Still didn't work. Back to square one.
 
@Ramhound Way ahead of you. Thanks anyway.
 
@JesseTG Did you just disable/reenable the "Windows Subsystem for Linux" feature, or did you also try disabling the "Virtual Machine Platform*" (VMP) feature? The latter, I believe, is the key. Uninstall Docker Desktop first, then disable the VMP, reboot, reenable the VMP, reboot, try WSL. If it works then reinstall Docker Desktop.
 
2:23 PM
@NotTheDr01ds I only toggled WSL itself. I'll try the other thing today, thanks for the suggestion.
 
 
2 hours later…
4:16 PM
@NotTheDr01ds Nope, no luck.
 
5:13 PM
@JesseTG What's wsl -l -v show? I just noticed that docker-desktop-data is set as your default distro. At the least, you need to wsl --set-default Ubuntu or wsl --set-default Ubuntu-22.04. However, I don't think that's going to solve the root problem.
 
5:36 PM
As of now,

```
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
```

...because I uninstalled WSL and Ubuntu. I tried re-installing Ubuntu, but that just returns the usual error before it has a chance to succeed.
 

last day (15 days later) »