WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Cannot install bash. Hangs at "Extracting Filesystem"

Open ewortzman opened this issue 10 years ago • 40 comments

I am attempting to install bash for windows using the standard process:

  1. enable developer mode
  2. go to "turn windows features on and off" and enable linux subsystem
  3. reboot
  4. execute bash in 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.

ewortzman avatar Aug 04 '16 23:08 ewortzman

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

Leigh-ma7 avatar Aug 05 '16 00:08 Leigh-ma7

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.

ewortzman avatar Aug 05 '16 00:08 ewortzman

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.

Leigh-ma7 avatar Aug 05 '16 00:08 Leigh-ma7

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.

ewortzman avatar Aug 05 '16 00:08 ewortzman

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 –

  1. open a command prompt
  2. go to Properties
  3. Go to Options
  4. Uncheck : Use legacy console Restart Power Shell and type bash This resolved it for me.****

Leigh-ma7 avatar Aug 05 '16 00:08 Leigh-ma7

Use legacy console is not checked

ewortzman avatar Aug 05 '16 00:08 ewortzman

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.

Leigh-ma7 avatar Aug 05 '16 00:08 Leigh-ma7

lets hope. thanks for the help

ewortzman avatar Aug 05 '16 00:08 ewortzman

Are you running kaspersky or avast? Both are causing big problems at the moment.

fpqc avatar Aug 05 '16 02:08 fpqc

I am running Avast. just disabled it. will update if it works...

ewortzman avatar Aug 05 '16 02:08 ewortzman

Avast you have to uninstall according to the other people.

fpqc avatar Aug 05 '16 02:08 fpqc

can I reinstall it after installing bash? or am i gonna have to find a new antivirus?

ewortzman avatar Aug 05 '16 02:08 ewortzman

Uninstall it until avast fixes the problem. Win10 has an antivirus built in fwiw

fpqc avatar Aug 05 '16 02:08 fpqc

Hey ewortzman, could you close this issue now? Thanks.

fpqc avatar Aug 05 '16 03:08 fpqc

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!

ewortzman avatar Aug 05 '16 03:08 ewortzman

Yes uninstalling the Avast worked. Thank you all :+1:

ss005 avatar Aug 05 '16 04:08 ss005

I can also confirm to this, Uninstalling Avast works for me too.

kevyworks avatar Aug 05 '16 09:08 kevyworks

Why uninstall Avast? just disable the shields temporarily.

pratham2003 avatar Aug 11 '16 18:08 pratham2003

Tried that. It didn't work. Not even completely killing the process worked. Once I uninstalled Avast and rebooted I had no problem.

ewortzman avatar Aug 11 '16 18:08 ewortzman

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:

  1. right click start button
  2. Choose System
  3. Select "Advanced System Settings"
  4. Hit Advanced tab
  5. Hit Performance Tab
  6. Hit Advanced tab again
  7. Click "Change" under virtual memory
  8. Switch all additional drives to "No paging file"
  9. Reboot
  10. Cross fingers.

mryarbles avatar Aug 16 '16 06:08 mryarbles