If we see this ” Error 2147942402 (oX80070002) when launching ‘ubuntu2204.exe’ ” error while launching WSL (Ubuntu 22.04) using terminal, basically this error is caused because it may be installed a different version or incorrectly configured the command line. To fix this issue, follow these steps
- Open Windows Terminal and select settings of the terminal
- After open the settings window, select WSL (Ubuntu **.**) installed version
- Under Command line select installed WSL and Browse the installed path. By default it will install in C:\Windows\system32\wsl.exe
- Select the wsl.exe and add Version of Ubuntu distro like
$C:\Windows\system32\wsl.exe -d Ubuntu-22.04
After adding path like above save settings and launch the WSL.
/Siva