Solve the problem that Bash On Windows download is slow or cannot be downloaded, bashon

Source: Internet
Author: User
Tags windows download

Solve the problem that Bash On Windows download is slow or cannot be downloaded, bashon

Bash On Windows cannot be downloaded from the Windows app store. Check the network connection. "Problem

Fiddler and Bash On Windows source offline compress: http://pan.baidu.com/s/1kVofL4b

If you do not want to download Baidu online storage, you can download it from the official website:

Fiddler: https://www.telerik.com/docs/default-source/fiddler/fiddlersetup.exe? Sfvrsn = 4.

Bash On Windows source offline compressed package:

Https://wsldownload.azureedge.net/14.04.5.2-server-cloudimg-amd64-root.tar.gz

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

 

Problem:

Enable "Windows subsystem for Linux (Beta)" in "Control Panel \ All control panel items \ Programs and functions \ Enable or Disable Windows.

You still need to enter the bash command in the "command prompt" and enter "y" to confirm that Ubuntu is installed on Windows.

When I enter "y" after a long wait, the progress is only 6%, and then "cute" Windows gives me a prompt "cannot be downloaded from the Windows app store. Check the network connection. ".

The evil GFW is harmless.

Question 1:

However, my Chinese people are both smart and powerful, and I have found a solution:

1. Install Telerik Fiddler and run the installation process until the installation is completed.

2. Open Fiddler and follow the steps shown in Figure 1:

Find Tools

--> Click HTTPS

--> Select Decrypt HTTPS traffic.

--> Check Ignore server certificate errors (unsafe)

--> Click OK.

3. Open the command prompt, enter bash, and enter y to download and install.

At this time, the HTTP connection is monitored in Fiddler. Follow the steps shown in Figure 2:

Click AutoResponder on the right of the Fiddler window

--> Select the following three options: Enable rules, Unmatched requests passthrough, and Enable Latency.

--> Click the link starting with "go.microsoft.com" on the left of the Fiddler window.

--> Click "Add Rule" on the right of the Fiddler window to Add the Rule list to the bottom of the button.

--> In the rule list, click the one you just created.

--> There is a Rule Editor under the Rule list. Select the downloaded offline source package.

4. switch back to the command prompt you just opened. When the bash command fails to be downloaded, enter bash again and enter y to download and install it.

In this case, it downloads the source offline compressed package that you just entered in the Rule Editor pointing to your local download.

Therefore, the download speed is fast. After the download is complete, it will be slow to decompress the package and install it. You have to wait patiently for about 10 minutes.

It may also prompt that the bash shortcut fails to be created. It does not affect usage. If you really want to, you can manually create a shortcut.

5. Download and install bash. Have fun !!!

Operation Figure 1:

Operation Figure 2:

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.