Ubuntu images for WSL can be downloaded directly from releases.ubuntu.com.
To download Ubuntu 24.04 LTS (Noble Numbat), go to releases.ubuntu.com/noble and select the WSL image. The image has a .wsl extension.
Run wsl --install --from-file ubuntu-24.04.3-wsl-amd64.wsl --location D:\WSL\Ubuntu-24.04\ --name Ubuntu-24.04 to install the image.
Related
WSL import and export
Export a distribution and import it to another disk.
Build Emacs From Source
A guide to build emacs from source on Linux.