Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win10 Bash On Windows 下载安装,Win10 ubuntu子系统安装太慢解决办法 #7

Open
wilon opened this issue Apr 7, 2017 · 4 comments

Comments

@wilon
Copy link
Owner

wilon commented Apr 7, 2017

问题原因及解决办法

问题原因

下载慢,无法下载,是由于下面的地址被墙。

https://wsldownload.azureedge.net/16.04.0.2-server-cloudimg-amd64-root.tar.gz

解决办法

如果您有比较快的VPN,那么打开VPN,直接最后一步 安装Ubuntu子系统

没有的话可以下载安装包,使用Fiddler指定链接到下载包。

安装过程

下载包
  1. 下载 安装包 16.04.0.2-server-cloudimg-amd64-root.tar.gz
使用Fiddler
  1. 下载Fiddler 并安装

  2. 打开 Fiddler,按照如下步骤:

    找到Tools-->Fiddler Options...
    -->单击HTTPS
    -->勾选Decrypt HTTPS traffic
    -->勾选Ignore server certificate errors (unsafe)
    -->单击OK。

  3. 打开命令提示符,输入bash,输入y确认下载安装。

    此时在Fiddler监测到HTTP连接,根据操作图2的步骤:
    在Fiddler窗口右边单击AutoResponder
    -->勾选下面的 Enable rules 、 Unmatched requests passthrough、Enable Latency这三个选项
    -->在Fiddler窗口左边单击" https://wsldownload.azureedge.net/16.04.0.2-server-cloudimg-amd64-root.tar.gz " 链接
    -->在Fiddler窗口右边单击"Add Rule"按钮,将其添加到按钮下方的规则列表
    -->在规则列表单击刚才新建的那一条
    -->在规则列表下方有个Rule Editor,选择事先下载好的源离线压缩包

安装Ubuntu子系统
  1. Win+R,输入cmd,Enter
  2. 输入bash /y安装,普通用户登陆
    或输入lxrun /install /y安装,root用户登陆
  3. 安装完后,输入bash

参考:
Unable to download from the Windows Store · Issue #524 · Microsoft/BashOnWindows
解决 Bash On Windows 下载慢或无法下载的问题,bashon

@wilon
Copy link
Owner Author

wilon commented Jul 14, 2017

最新版此方法失效了~
打开微软商店应用,在搜索框中输入“Linux”然后下载安装即可。

@yrom
Copy link

yrom commented Aug 3, 2017

挂vpn还是有效的 😓

@DeDf
Copy link

DeDf commented Sep 21, 2017

@0xzhang
Copy link

0xzhang commented Jan 31, 2018

成功了,把这两个url
go.microsoft:443
go.microsoft.com/fwlink/?LinkID=827586添加规则指定为镜像文件完成了下载

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants