Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL starts and exits immediately #5171

Closed
hrai opened this issue May 4, 2020 · 1 comment
Closed

WSL starts and exits immediately #5171

hrai opened this issue May 4, 2020 · 1 comment

Comments

@hrai
Copy link

hrai commented May 4, 2020

After I upgraded to latest Windows version, I started getting error while starting WSL. It just wouldn't start. So I uninstalled wsl and reinstalled wsl but to no avail.

I restored windows and installed Ubuntu 20.x from Microsoft Store and upgraded to WSL2.

I was able to use it for a while and now when I open it, it shows the prompt and automatically closes it.

Windows terminal default shell output

image

Powershell output

image

This was after the latest Windows Insider fast ring update.

Here's what I've done and none of it worked

  • Uninstalled ubuntu and reinstalled it
  • Full Windows restore to factory settings
  • Upgraded from wsl1 to wsl2
  • Disabled fast startup

See our contributing instructions for assistance.

Please fill out the below information:

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    Microsoft Windows [Version 10.0.19619.1000]

  • What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)
    Starting WSL automatically exits.

  • What's wrong / what should be happening instead:
    Starting WSL automatically exits.

  • Strace of the failing command, if applicable: (If some_command is failing, then run strace -o some_command.strace -f some_command some_args, and link the contents of some_command.strace in a gist here).
    Starting WSL automatically exits.

  • For WSL launch issues, please collect detailed logs.
    hangj.zip

@hrai
Copy link
Author

hrai commented May 4, 2020

I had these Powerlevel10k settings in my .zshrc. Looks like I deleted .p10k.zsh and that was causing the terminal to crash.

I copied the config to Ubuntu install and was having the same issue. That's how I figured it's a config issue.

All good now!

if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
  source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi

P10K=~/.p10k.zsh
[[ ! -f $P10K ]] || source $P10K && echo "$P10K sourced..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant