Forum Discussion
WSL won't install after upgrading to Windows 11 24H2
Help! I am running the current Dev Windows 11 build (version 24H2 OS Build 26100.1). Ever since I upgraded from 23H2 to 24H2 I've been unable to get WSL to work. When I run "wsl.exe" I get the following message:
Windows Subsystem for Linux must be updated to the latest version to proceed. You can update by running 'wsl.exe --update'.
For more information please visit https://aka.ms/wslinstall
Press any key to install Windows Subsystem for Linux.
Press CTRL-C or close this window to cancel.
This prompt will time out in 60 seconds.
When I run "wsl.exe --install" or "wsl.exe --update", I get this:
Downloading: Windows Subsystem for Linux 2.1.5
Installing: Windows Subsystem for Linux 2.1.5
Catastrophic failure
I've tried uninstalling the distro (Ubuntu), uninstalling WSL from the Windows features screen (from Programs and Features in Control Panel), making sure "New apps will save to" is set to C: drive (where "\Windows" is located) in Settings > System > Storage > Advanced storage settings > Where new content is saved ... and rebooted between each step during several attempts and nothing changes. Everything else on my system works fine, it's just WSL and this only started when I upgraded to 24H2. I can't get any more information that "Catastrophic failure" ("--verbose" adds nothing). I've even tried installing a Linux kernel manually and it tells me I already have a newer version of WSL installed. I have tried basically everything that is suggested by any Google result I can find and nothing works.
- BeamriderCopper ContributorThis did not work.
- BeamriderCopper Contributor
After unchecking "Windows Subsystem for Linux" in Programs and Features under Control Panel and rebooting.
Next, I moving all the WindowsApps that were installed in "D:\WndowsApps" back to "C:\Program Files\WindowsApps" with the "Move" option for each app under Apps > Installed apps in Settings.
I was able to then take ownership (change ownership to "Administrators" and then take "Full control" with my account) of all the directories (and their contents) that contained "Linux" or "Ubuntui" in their names.
I then delete them.
Afterwards, there was nothing installed under "D:\WindowsApps", so I changed the ownership of it to Administrators and then delete it entirely.
I rebooted after doing all this.
I then ran Windows Update and rebooted.
Then, I tried to reinstall WSL and it failed with the same "Catastrophic failure" message.
When I checked D drive afterwards, Windows had recreated "D:\WindowsApps" and tried to install it there instead of on C drive which is where "Where new content is saved" is pointing. Something is set somewhere (I presume in the Registry) telling Windows to try to install it on D drive which, according to various Google results, will always fail as WSL must be installed on the same drive as C:\Windows.
Does anyone know what I need to update in the Registry to make Windows install WSL on C drive?- fflo7Copper Contributor
Beamrider this is a swap file memory issue. when you upgrade windows. It uses the same storage that the WLS folder uses. you can ether move the swap file. or use a virtual box larger than 50 gigs on a different drive. just be sure you WLS program knows where the storage is at. if you don't know how to do that just ask 🙂 this is why they are telling you to down step your version of windows. you can make a drive anywhere just make a drive and tell windows were its virtual memory storage is. doing it this way is a lot easier than stepping down windows.. 🙂