terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Ubuntu Not Opening

Open Sameer2307 opened this issue 7 years ago • 12 comments

Ubuntu doesn't show up in the terminal. Its installed on my machine but the new terminal is recognizing it.

Sameer2307 avatar Jun 23 '19 00:06 Sameer2307

The command wsl -l
gives me following Windows Subsystem for Linux Distributions: Ubuntu-18.04 (Default)

Sameer2307 avatar Jun 23 '19 01:06 Sameer2307

Also Having this problem. Installed ubuntu. wsl -l gives me Windows Subsystem for Linux Distributions: Ubuntu (Default)

scottwmaxwell avatar Jun 23 '19 01:06 scottwmaxwell

Same here, window spawns momentarily but immediately quits. Launching wsl from a command prompt tab works fine. Also on ubuntu 18.04

Sh4d avatar Jun 23 '19 02:06 Sh4d

Same here, wsl -l lists Ubuntu as default. But the terminal is not showing it.

KalyanVem avatar Jun 23 '19 05:06 KalyanVem

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.

DHowett-MSFT avatar Jun 23 '19 05:06 DHowett-MSFT

How to add a custom profile

Sameer2307 avatar Jun 23 '19 05:06 Sameer2307

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

Shorotshishir avatar Jun 23 '19 05:06 Shorotshishir

Confirmed that re-installing the application adds WSL Installed Distros to the list.

weems avatar Jun 23 '19 06:06 weems

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.

Shorotshishir avatar Jun 23 '19 08:06 Shorotshishir

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 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.

kn0rki avatar Jun 23 '19 11:06 kn0rki

@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

Shorotshishir avatar Jun 23 '19 11:06 Shorotshishir

This seems solved?

DHowett-MSFT avatar Jun 24 '19 22:06 DHowett-MSFT