Search code examples
ubuntuwindows-terminal

Error when opening Windows Terminal to "Ubuntu"


I just installed windows-terminal on windows 10,

I get the following error when trying to open windows terminal to ubuntu - I do indeed have WSL2 installed and can use it from the ubuntu app standalone terminal, but for whatever reason windows terminal is having an issue

I've searched online and it appears that something is wrong with finding the executable, but I cannot figure out where to make an update to assist windows terminal with knowing the correct path

[error 2147942402 (0x80070002) when launching 'ubuntu.exe']

enter image description here

While troubleshooting, I learned that ws -v is not a recognized command while trying to get more information for this post, so I ran SFC /scannow following this advice, but unfortunately no progress made, errors still taking place


Solution

  • Solved by adding %USERPROFILE%\AppData\Local\Microsoft\WindowsApps to PATH