I hit Ctrl-D in WSL (Ubuntu 18.04) and the window closed. Now when I try to re-enter WSL, I get a blank window with a flashing cursor and nothing else. Ctrl-C closes the window, and Ctrl-F pops up a Windows "Find" window; nothing else registers. How do I resurrect WSL?
Update Win10 was doing an update at the time, so once that was complete I had to reboot the computer. WSL opened fine, so I thought all was well. I should have tried closing and reopening it at that time, but I didn't. Unfortunately, the problem still exists.
101 Answer
Check if Windows is currently installing an update. Restarting Windows should help.
Ctrl+D is a perfectly valid way to exit WSL. It should not be happening.
Sometimes killing the init process will help to start a new WSL session cleanly.
Regards
1