Cannot install bash. Hangs at "Extracting Filesystem"
I am attempting to install bash for windows using the standard process:
- enable developer mode
- go to "turn windows features on and off" and enable linux subsystem
- reboot
- execute
bashin a command prompt run as Administrator.
At this point, I get through downloading from the store to Extracting filesystem, this will take a few minutes, but then the installer hangs and never continues.
I have looked in C:\Users[username]\AppData\Local\lxss and the files have downloaded and extracted, and the tarball has been removed, but the command never terminates and bash never appears in the start menu. If I open a new command prompt and execute bash, I get no output, and the command prompt doesn't respond to ^C.
make sure your were not using VM(windows 10) , seems WSM all networking/socket are still under feature road map.
I have the similar slowness downloading, but when i made sure no other laptop/devices occupy the bandwidth , then it completed downloading eventually.
the only difference, i only used my own account instead of run as Administrator for your step 4
I'm not running any VMs. I'm connected to WiFi and the only other network adapter is the ethernet jack. Any it finishes downloading no problem. It's after the download that it hangs.
i am using the WiFi as well, no issues. but it was quite slow to be honest for the first time installation. after that the apt-get update all went smoothly.
could be your Anniversary update not 100% update completed ? i cross checked the " system update " couple of times , before i go for the WSL. also i installed Hyper V and container services from "turn windows features on and off". but don't see it relevant.
just checked. it says my system is up to date. I can't even get to bash to run apt-get. it hangs long before that.
check this one , seems someone has it in Dell XPS15 and used powershell instead.
Read more at https://blogs.windows.com/buildingapps/2016/03/30/run-bash-on-ubuntu-on-windows/#qeXlTU7jmwom8Kcp.99
same issue on my XPS15, it seems there’s error after extracting file system. How to fix it?
4 months ago LOG IN TO REPLY image: https://secure.gravatar.com/avatar/d9a6e224d33bbc8024b056054b7f1806?s=40&d=mm&r=g
**Scott Parks
**Same with an XPS 13 –
- open a command prompt
- go to Properties
- Go to Options
- Uncheck : Use legacy console Restart Power Shell and type bash This resolved it for me.****
Use legacy console is not checked
ok. hope others if have similar issue could help. i didn't use power shell . i only search bash and use CMD the basic way.
lets hope. thanks for the help
Are you running kaspersky or avast? Both are causing big problems at the moment.
I am running Avast. just disabled it. will update if it works...
Avast you have to uninstall according to the other people.
can I reinstall it after installing bash? or am i gonna have to find a new antivirus?
Uninstall it until avast fixes the problem. Win10 has an antivirus built in fwiw
Hey ewortzman, could you close this issue now? Thanks.
I was running the installer again to see if it fixed it. It hasn't. The installer is still hanging, so I will leave it open.
EDIT: After rebooting and trying again, it worked now. Thanks for the help!
Yes uninstalling the Avast worked. Thank you all :+1:
I can also confirm to this, Uninstalling Avast works for me too.
Why uninstall Avast? just disable the shields temporarily.
Tried that. It didn't work. Not even completely killing the process worked. Once I uninstalled Avast and rebooted I had no problem.
I'm not sure why this was closed. I've been having this issue for weeks - going back to it on occasion. The last thing that fixed it for me was turning off virtual memory on all drives but the C: drive. I rebooted for the 100th time, ran lxrun /uninstall /full /y. After that completed I tried lxrun /install /y and it finally completed. Turning off windows defender did not help the issue.
By the way to turn off VM:
- right click start button
- Choose System
- Select "Advanced System Settings"
- Hit Advanced tab
- Hit Performance Tab
- Hit Advanced tab again
- Click "Change" under virtual memory
- Switch all additional drives to "No paging file"
- Reboot
- Cross fingers.