Unable to download from the Windows Store
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.
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?
@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?
I can try. How can I take trace?
Instructions here: https://github.com/Microsoft/BashOnWindows/issues/410#issuecomment-221463487
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.
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?
I have the problem too. it always complains the network failure... i have reboot for several times.
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.
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.
today,i am change the dns domain ,and then use the proxy,
it seems well.

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.
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).
If anybody is having this problem in virtualbox, switching to bridged adapter instead of NAT worked for me.
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.
-- 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?
@iadaking - That's unfortunate. Can you please follow the steps below to collect some traces and send them our way?
- Download the below two .txt files and rename them .cmd
- Run start_lxcore_trace.cmd from an admin command prompt
- Start the install.
- Wait until you see the error.
- Run stop_lxcore_trace.cmd from an admin command prompt
- You should now see three .etl files in the directory you ran the script from.
- 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
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\
@zidongtuili Thanks, this worked for me!
@sujeethk I'm glad that it helps. Sometimes this is really not a network related issue.
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.