WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Unable to download from the Windows Store

Open itaysk opened this issue 10 years ago • 42 comments

When running "bash" for the first time, it downloads the Ubuntu image from the Windows Store. more often than not it fails with: "Unable to download from the Windows Store. Please check your network connection."

This happened to me on different networks, at home and at work, and on different builds, including the recent one 14361.

It's not a big deal since eventually after multiple retries it will succeed, but it's not a great first time experience.

itaysk avatar Jun 14 '16 12:06 itaysk

interesting -- thanks @itaysk for reporting this. I suspect it would be useful to get some more detail, as I haven't heard of this happening elsewhere and I haven't experienced it myself. Do you ever have trouble with other large-ish downloads? What (if any) antivirus and/or firewall programs are you running?

aseering avatar Jun 14 '16 13:06 aseering

@itaysk If you can reliably reproduce this issue would you be able to take a trace for us so we can identify what's going wrong?

benhillis avatar Jun 14 '16 15:06 benhillis

I can try. How can I take trace?

itaysk avatar Jun 14 '16 15:06 itaysk

Instructions here: https://github.com/Microsoft/BashOnWindows/issues/410#issuecomment-221463487

benhillis avatar Jun 14 '16 15:06 benhillis

This appears to be because it's trying to download via FTP, in Active mode. Active FTP requires your router/firewall to explicitly allow connections back from the Microsoft FTP server.

Microsoft need to switch their FTP server to Passive mode, or, do not serve downloads via FTP at all.

To Microsoft: Guys, we have HTTP now. It can be proxied and cached. Please stop breaking the internet. I realise it's a habit you guys have grown into over the years, but you're meant to be NOT doing it these days.

To people having this problem: Reboot your router. If you're behind two layers of NAT, it will be hit or miss if it ever works. I'm guessing that's what the OP is experiencing.

xrobau avatar Jun 18 '16 23:06 xrobau

I'm getting this error as well. No matter what I do (even connecting directly to the internet, no firewall, no nat) I cannot download BashOnWindows anymore. I removed %localappdata%\lxss, removed/added "Windows Subsystem for Linux" from Windows Features, LAN instead of Wifi, running wsreset.

Is there any workaround?

gegenschall avatar Jul 18 '16 09:07 gegenschall

I have the problem too. it always complains the network failure... i have reboot for several times.

kimiazhu avatar Aug 04 '16 06:08 kimiazhu

Same issue here. Tried with a local account and a Microsoft one using the anniversary update.

bash -- 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... Unable to download from the Windows Store. Please check your network connection.

grounzero avatar Aug 12 '16 09:08 grounzero

i'm also meet the fuck issue. I have tried many different way. first i'm use the cmder to install it

-- 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...
Unable to download from the Windows Store. Please check your network connection.

then i'm through the powershell, through lxRun /install
i'm try to use proxy by Proxifier ,set the rule for lxRun.exe it just has sent data but 0 received. then i'm use the charles try to analyze the net traffic ,but thier is no any respone from go.microsoft.com:443.

ping go.microsoft.com

Pinging go.microsoft.com [113.215.18.43] with 32 bytes of data:
Reply from 113.215.18.43: bytes=32 time=2ms TTL=58

i'm try to edit the hosts file to change the dns.

104.90.27.171               go.microsoft.com

but also is the result . any other domain is affective . can not change the microsoft domain dns . ipconfig /flushdns & restart NNS client service .... but all is useless.

foxundermoon avatar Aug 13 '16 20:08 foxundermoon

today,i am change the dns domain ,and then use the proxy, it seems well. the snapshot

foxundermoon avatar Aug 14 '16 06:08 foxundermoon

Check your windows firewall options. I had the same problem, adding rule for C:\Windows\System32\LxRun.exe solve the problem and image was downloaded and installed.

anderuso avatar Aug 21 '16 19:08 anderuso

I just solved it. I had similar problem and I think mine is not a network issue, so I tried to use cmd to remove lxss directory (with rd command).

zidongtuili avatar Sep 05 '16 13:09 zidongtuili

If anybody is having this problem in virtualbox, switching to bridged adapter instead of NAT worked for me.

miked63017 avatar Sep 30 '16 19:09 miked63017

This is happening after I tried to reinstall bash after uninstalling it with lxrun /uninstall /full due to forgetting my sudo password. Disabling the firewall hasn't helped. It's just instantly giving up. However, a restart fixed it apparently.

RoboMWM avatar Oct 03 '16 20:10 RoboMWM

-- 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... 39%
Unable to download from the Windows Store. Please check your network connection.

I also suffer from this problem and have no idea to deal with it can anyone help me?

kedup avatar Oct 04 '16 08:10 kedup

@iadaking - That's unfortunate. Can you please follow the steps below to collect some traces and send them our way?

  1. Download the below two .txt files and rename them .cmd
  2. Run start_lxcore_trace.cmd from an admin command prompt
  3. Start the install.
  4. Wait until you see the error.
  5. Run stop_lxcore_trace.cmd from an admin command prompt
  6. You should now see three .etl files in the directory you ran the script from.
  7. Email the logs to: [email protected]. Include in the subject / message to forward to the WSL team. In the body of the email mention it is for russalex and sunilmut. Also, mention the GitHub post ID in the mail for reference.

https://github.com/Microsoft/BashOnWindows/files/288621/start_lxcore_trace.txt https://github.com/Microsoft/BashOnWindows/files/288622/stop_lxcore_trace.txt

sunilmut avatar Oct 04 '16 18:10 sunilmut

I used to have this issue, then I realised that was because I tried to mount vhd files to this directory. For anyone has failure of dowload, see if this works: create a folder called lxss under C:\Users\ \appdata\local\ and delete this folder. (if you already have this folder, you may want to cut it elsewhere)

zidongtuili avatar Oct 05 '16 09:10 zidongtuili

@zidongtuili Thanks, this worked for me!

sujeethk avatar Oct 06 '16 02:10 sujeethk

@sujeethk I'm glad that it helps. Sometimes this is really not a network related issue.

zidongtuili avatar Oct 09 '16 01:10 zidongtuili

Should be obvious, but in case it isn't, to anyone running Avast, kill that as well. It tries to screen everything and makes reliable connections basically impossible.

mikeshultz avatar Oct 31 '16 04:10 mikeshultz