I recently migrated from an old MacBook Air to a new Windows 11 laptop. I made the switch because most of my projects revolve around machine learning and deep learning. While there is some support for GPU acceleration on MacOS, I wanted to get a laptop with an NVIDIA GPU that has CUDA support. In the process of setting up my workflow on the new laptop, I hit a snag getting Windows Subsystem for Linux (WSL) installed on Windows 11 22H2.
The main issue I had was downloading the packages from Microsoft. Running the install command as recommended would get stuck during the download part of the process. It would take minutes to begin the download and then it would never move past 0% progress.
I found through trial and error that this command seemed to be trying to download and install WSL through the Microsoft Store. I’m not sure if the store was down at the time or having internal issues but I could not find anyone else having a similar problem. I discovered that one way around this roadblock was to install and update WSL through the Windows Update settings.
This can be done by first enabling the following optional features:
- Virtual Machine Platform
- Windows Subsystem for Linux
This is shown in the image below. You can find this by searching for “features” in the taskbar.
Once those optional features have been enabled, you need to change the advanced settings for the Windows updates. You need to change the default settings and enable “Receive updates for other Microsoft products”. This is shown in the image below.
Once this setting has been changed, you can check for Windows updates and WSL should be installed an updated without issue.
Finally, to install your desired Linux distribution you can download it directly from Microsoft. After downloading the file, you can install it by simply double clicking the file.
I hope this helps anyone else who hits a similar roadblock on Windows 11 22H2.