Bash.exe hangs and the bash is unusable
Please use the following bug reporting template to help produce actionable and reproducible issues:
- A brief description: bash.exe hangs and never finishes
- Expected results: A workable "Bash on Ubuntu on Windows"
- Actual results (with terminal output if applicable): An unusable "Bash on Ubuntu on Windows" (empty, black window) and a never finished bash.exe
- Your Windows build number: 14393
- Steps / commands required to reproduce the error: just install WSL and run bash.exe
- Strace of the failing command
- Required packages and commands to install
See our contributing instructions for assistance.
I am using the build 14393 and I encountered two problems:
- When I switched to developer mode, I got the error "Developer mode package failed to install. Error code 0x80004005". I have tried http://answers.microsoft.com/en-us/windows/forum/windows_10-update/error-0x80004005-window-10-update-failure/156adfb8-e7e1-46fa-b5c6-cbd5dcfebbb9 http://forums.hololens.com/discussion/1530/fix-enabling-windows-10-developer-mode-get-error-code-0x80004005-after-build-14383 Neither worked.
- I turned on "Windows subsystem for Linux" via "Control Panel -> Programs -> Turn Windows features on or off" and switched to developer mode (with that error in problem 1). I can successfully run the program bash.exe and get the "Bash on Ubuntu on Windows". However, bash.exe hanged for more than 1 hour after I entered my password and it showed "the password is updated successfully". It never finished and when I clicked "Bash onUbuntu on Windows" it just gave me an empty window. When I tried to run "lxrun /uninstall /full" to uninstall it and installed it again. It just showed uninstalling and never finished again.
How can I solve these? My device is SP4 i7/16GB/512GB. Thanks.
Do you by chance have multiple NT page files on your system?
Hi benhillis,
I don't quite understand what is "NT page files" and how can I know whether I have multiple NT page files. After uninstalling and installing WSL for several times, I am able to uninstall Bash by using "lxrun /uninstall /full". Howerver, I try to run bash again and it still hangs after showing "passwd: password updated successfully" (it already takes more than 1 hour).
"-- Beta feature -- This will install Ubuntu on Windows, distributed by Canonical and licensed under its terms available here: https://aka.ms/uowterms
Type "y" to continue: y Downloading from the Windows Store... 100% Extracting filesystem, this will take a few minutes... Please create a default UNIX user account. The username does not need to match your Windows username. For more information visit: https://aka.ms/wslusers Enter new UNIX username: James Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully "
Thanks.
Control Panel > System > Advanced > Performance > Advanced > Virtual memory Change...
Should list all Windows pagefiles.
The setting is "Automatically manage paging file size for all drives". And only in C: there are paging files. (but it does not show whether there is only 1 or not). Thanks.
Do you happen to have Kaspersky Internet Security or another Third Party firewall installed? I've seen instances like #705 where this can cause issues.
Thank you, benhillis. You are correct. I have tried to disable Kaspersky, but Bash still did not work. Following the comment in #705, when I "closed" Kaspersky, it works!
Thanks for confirming. Does anybody have a contact with Kaspersky so we can sync up with them and figure out why they are blocking our pico processes?
I found this contact link online: http://support.kaspersky.com/us/b2c#region0
I had the same issue. Also when I "closed" Kaspersky, it works fine.
I've contacted Kaspersky regarding the issue and they've forwarded my input to their HQ.
i just talked to the technical support, the girl on the line didn't know what the linux subsystem is. now i will get contact by mail :)
I'm having a different problem, no matter what I try it always hangs on "extracting filesystem.." for eternity. Anyone have any ideas?
Not using Kapersky, using Avast - I have it disabled but that's not working either.
Thanks in advance
To anyone else having this issue - you need to uninstall avast if you have it on your computer. See #718
A new update from Kaspersky, it seems we've stumbled upon a bug in their 2017 version which they'll resolve asap so I guess we just have to be a bit patient.
I have done this twice now. It hung for hours on "Extracting filesystem, this will take a few minutes..." Without stopping it, I started a new (admin) command window and typed "bash". This told me to "Please create a default UNIX user account by running lxrun.exe /setdefaultuser. I did this, and it set the password and updated it successfully. Then, I could launch bash from the start menu or from the taskbar and it basically worked fine (as far as I could tell). So, yes, the installer can hang and this a bug, and I'm hoping they will fix this soon, but, nevertheless, in my experience you can get going with bash on Windows 10 anyway.
Just a side information about Antivirus like Kaspersky: I've had that problem often, that Kaspersky (and other AVs) are blocking something and don't stop blocking even though they're deactivated.
If you ever run into issues with AVs, stop or uninstall them completely to verify that it's or it's not the AV.
Facing the same issue. Only uninstalling the AV software worked.
There is a process manager called LsxxManager which controls Bash. I too have Kaspersky, and when disabling the AV, the Bash command was still a blank window. Recycling this service fixed Bash. You can find it under the Services tab in Task Manager.
I was also seeing problems with bash and Kaspersky (KIS 2016 in this case); after querying the new password, bash fell silent; closing the window and restarting bash didn't help either.
Closing Kaspersky (KIS 2016) I found that I could run bash successfully, so it seems Kaspersky is indeed to blame.
~~The good news: Next thing I did was to close bash, restart KIS, and try again, just for giggles -- and now it appears to work just fine, even with Kaspersky running.~~
Edit: You know what -- scratch that. Possibly after doing something trivially wrong (tried to mv a directory while it was opened by Windows Explorer) the Blocked Bash is back with a vengeance: Now it won't even run with KIS shut down.
I guess for now I'm back to VirtualBox.
Same here, multiple times now I mave tried to mv <dir> <dir> and it just locks up ^C does nothing too. The only antivirus I have is Windows Defender