WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Black Screen when running Bash on Ubuntu on Windows

Open Brull255 opened this issue 10 years ago • 51 comments

I have installed Bash on Ubuntu on Windows 10. However, when I try to launch it all I get is a black screen with a white cursor at the top left. It won't let me type anything.

Brull255 avatar Jul 31 '16 15:07 Brull255

I have had lag a few times on initial startup. Did you try giving it a minute?

fpqc avatar Jul 31 '16 16:07 fpqc

Yes. Looking it up it does seem to be a problem on Ubunto Forums. But their workarounds don't work from a Windows environment. They all mention some fixes from a GRUB boot loader.

Brull255 avatar Jul 31 '16 16:07 Brull255

Same happens to me pretty much. When I restart the pc it runs for a while. After I close and restart it, I get the same behavior and it just stays blinking. I also left it overnight with no change.

gabtzi avatar Jul 31 '16 17:07 gabtzi

I don't know if it helps but I've noticed that when this happens to me it's because the lxssmanager service goes into a state of STOP_PENDING and I'm unable to access it even with TASKKILL /F /PID . A restart makes it stop so it can start freely again and then I can use bash but after a few runs this happens again and the service process enters the same state. I haven't been able to track any entry in the event viewer for this

ioweb-gr avatar Jul 31 '16 18:07 ioweb-gr

Never mind I tracked it down. It's caused by Kaspersky Internet Security for me. The moment I exit Kaspersky it starts. I'll take it with their support and see what they say. Disabling it doesn't work but exiting does

ioweb-gr avatar Aug 01 '16 05:08 ioweb-gr

Yep.. Thanks ioweb-gr,,, Exited out of my Kaspersky and loaded up Bash and I now have a command prompt.. Funny though..Every time something odd loads up Kaskersky has a little popup on if it should allow it to run or not. But not with this Bash on Ubuntu or I would have thought of that first.

Brull255 avatar Aug 01 '16 07:08 Brull255

No problem 👍

ioweb-gr avatar Aug 01 '16 07:08 ioweb-gr

image

Got same problem after doing mv dir1 dir2/dir3. Bash totally froze, I restarted it and it's just black now.

nbredikhin avatar Aug 03 '16 08:08 nbredikhin

@dcr30 -- are you running Kaspersky Internet Security? If you follow the steps that helped @ioweb-gr above, do they help you too?

aseering avatar Aug 03 '16 12:08 aseering

image I'm having a different problem, no matter what I try it always hangs on "extracting filesystem.." for eternity. Anyone have any ideas?

Edit: Not using Kapersky, using Avast - I have it disabled but that's not working either.

Thanks in advance

freightrunner avatar Aug 03 '16 14:08 freightrunner

@freightrunner we are discussing your problem here https://github.com/Microsoft/BashOnWindows/issues/718

onomatopellan avatar Aug 03 '16 15:08 onomatopellan

#718 Solves it!

freightrunner avatar Aug 03 '16 17:08 freightrunner

I had the same issue as @dcr30 , after I tried to mv some files around , now it starts with a blinking cursor. I also do NOT have Kaspersky Internet Security, using windows defender. ... Going to try rebooting now

--UPDATE 8/6-- Reboot didn't help, but uninstall / re-install fixed it http://www.howtogeek.com/261188/how-to-uninstall-or-reinstall-windows-10s-ubuntu-bash-shell/

i'm going to attempt moving files around and provide more updates ... see if I can narrow down what caused it to freeze up

cust-dev avatar Aug 03 '16 22:08 cust-dev

I also have Kaspersky Internet Security installed and I also experienced the problem with only a blinking cursor when starting Bash on Ubuntu on Windows. Closing (not disabling) Kaspersky Internet Security fixed the problem for me.

1benik avatar Aug 04 '16 13:08 1benik

I don't have any AV and have the same issue. Looks like issue appeared after I used SSH in bash

snarb avatar Aug 14 '16 13:08 snarb

Same here? Anything new?

Uninstalled Avast, worked right after that, turned back to black screen after starting Apache2. I enabled Windows Defender as a replacement for Avast, is Windows blocking itself here?

Update: Error is: "Error: 0x80080005" Disabling Windows Defender does not help.

0x0000001c avatar Aug 19 '16 09:08 0x0000001c

Maybe the new SSH server on Developer mode is causing the problem. You can go to Services.msc and try to disable SSH Server Proxy and Broker.

onomatopellan avatar Aug 19 '16 12:08 onomatopellan

Can't find any SSH Server Proxy/Broker services? Btw. I have VirtualBox installed, might this cause weired behaviour? Thanks!

0x0000001c avatar Aug 19 '16 14:08 0x0000001c

Weird. Did you enable Developer Mode on Settings and "Windows Subsystem for Linux (beta)" on features? After restarting Windows those SSH Server services should appear. VirtualBox shouldn't be the problem but you never know.

onomatopellan avatar Aug 19 '16 14:08 onomatopellan

Yes, the Windows Subsystem for Linux is enabled and installed already. The bash turned black after I used it for a while. Here is a list of my services, no SSH Server Proxy: image

0x0000001c avatar Aug 20 '16 02:08 0x0000001c