WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WSL will not boot/run it just hangs

Open Tywnnvlad opened this issue 3 years ago • 8 comments

Windows Version

Microsoft Windows [Version 10.0.22621.1992]

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

  • [X] WSL 2
  • [ ] WSL 1

Kernel Version

5.15.90.1

Distro Version

Ubuntu 20.04

Other Software

The only thing I remembered doing was updating ng sudo apt install ng-common

after installing it everything just broke. I am not sure if it is related. I have tried restarting my computer, shutting down the process, restarting lsxxmanager service and it does not work. When I open wsl ubuntu just stops and it hands.

It seems like installing a different distro works. I am currently in the process of backing things up and migrating it to a different distro so I can start working.

Repro Steps

I was working on a react app using vite, it kept prompting me to update/install ng using apt install ng-common everytime I open a new window

I ran the command and it ended up just hanging or not show anything when I open wsl or a new tab. It seems like it is running just stucked and not showing the directory or allow me to do anything. Terminating the process or the distro shows me this image

Expected Behavior

It is suppose to boot and go to my directory but it just hangs

Actual Behavior

image This is what happens, it just hangs and cannot do anything with it.

Diagnostic Logs

WslLogs-2023-07-12_14-54-53.zip

No response

Tywnnvlad avatar Jul 12 '23 20:07 Tywnnvlad

I have the exact same issue, with same OS version... It's really concerning to see the lack of feedback or any related troubleshooting steps when this seems to be such a common issue!

ftorrado avatar Jul 19 '23 08:07 ftorrado

I have the exact same Issue, yesterday I installed two python dependecies with pip and it was working just fine, but today after I truned on My PC, and opened a Ubuntu Terminal, it just hangs, the same happens with docker desktop it just stays put with the message "Docker Desktop Starting...", but nothing happens.

Student-Raso avatar Jul 20 '23 17:07 Student-Raso

I just ended up installing a new distro and moving my files over. At least I can still access my file, just really can't use my old distro.

Tywnnvlad avatar Jul 21 '23 16:07 Tywnnvlad

I had the same problem. My .bashrc had an entry that caused WSL to hang on startup. Try to copy the .bashrc from the newly installed distro to the old system. After that I was able to start the old distro again.

RolandMuenker avatar Aug 22 '23 11:08 RolandMuenker

having this same problem. Any fixes yet?

memetrusidovski avatar Dec 14 '23 16:12 memetrusidovski

removing angular autocomplete for .bashrc seemed to work for me

memetrusidovski avatar Dec 14 '23 22:12 memetrusidovski

@memetrusidovski How did you manage to change your .bashrc file when Ubuntu is not booting? I mean, I can't just edit and save my .bashrc file in a text editor, because it says it is read only. The only way I know to change the .bashrc is by a sudo command in the terminal, but the problem is: Ubuntu is not booting in the terminal.

EDIT: Nevermind, in notebook I was able to change the .bashrc file. For some reason when I tried to change the .bashrc file in vscode it said it was a read-only file. @memetrusidovski your solution worked! Thanks a lot!

SamuelSmets avatar Jan 10 '24 10:01 SamuelSmets

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!