Ubuntu doesn't show up in the terminal. Its installed on my machine but the new terminal is recognizing it.
The command wsl -l
gives me following Windows Subsystem for Linux Distributions: Ubuntu-18.04 (Default)
Also Having this problem. Installed ubuntu. wsl -l gives me
Windows Subsystem for Linux Distributions: Ubuntu (Default)
Same here, window spawns momentarily but immediately quits. Launching wsl from a command prompt tab works fine. Also on ubuntu 18.04
Same here, wsl -l lists Ubuntu as default. But the terminal is not showing it.
If you installed and launched terminal before installing WSL/ubuntu, it doesn't currently autodetect outside of first launch. You can, of course, add a custom profile.
How to add a custom profile
I am trying to add a custom profile for my kali WSL, I tried kali.exe as the 'commandline' parameter of the profile, it didn't work. I think it has something to do with the guid or the 'commandline' parameter itself. the profile shows itself in the dropdown but doesn't work as linux terminal.
*edit: *
commandline parameter : wsl.exe -d kali-linux
Confirmed that re-installing the application adds WSL Installed Distros to the list.
if reinstalling doesn't find the installed WSL (for some reason) , open appdata (windows+r, then type appdata, hit enter ) then go to Local>Packages>Microsoft.WindowsTerminal_8wekyb3d8bbwe>RoamingState and delete the package.json file. reopen the Terminal app. This will reset the settings to default and load all available terminals.
Doenst work for Powershell core that is not installed on default path :(
if reinstalling doesn't find the installed WSL (for some reason) , open
appdata(windows+r, then type appdata, hit enter ) then go toLocal>Packages>Microsoft.WindowsTerminal_8wekyb3d8bbwe>RoamingStateand delete the package.json file. reopen the Terminal app. This will reset the settings to default and load all available terminals.
@kn0rki for not default location installations, u need to add a custom profile.
just make a duplicate of the default PowerShell profile and use the complete path of the .exe in the 'commandLine': parameter. It should work just fine.
Update: reference #1415
This seems solved?
Most helpful comment
if reinstalling doesn't find the installed WSL (for some reason) , open
appdata(windows+r, then type appdata, hit enter ) then go toLocal>Packages>Microsoft.WindowsTerminal_8wekyb3d8bbwe>RoamingStateand delete the package.json file. reopen the Terminal app. This will reset the settings to default and load all available terminals.