Visual Studio 2019 安装程序始终无法下载离线安装程序包?

123*_*ing 5 installation visual-studio visual-studio-2019

我按照此说明为 Visual Studio 2019 创建离线安装程序。

我已经多次重新运行以下 cmd:

vs_enterprise.exe --layout c:\vslayout --lang en-US
Run Code Online (Sandbox Code Playgroud)

但经过很长时间的验证包后,它一直给我错误:

...
Total packages to download: 1
Starting 'UpdateLayout' operation
Error: Package 'Linux.GCC.arm_none_eabi,version=9.3.1' failed to download from '
https://aka.ms/AA9z5w0'. WebClient download failed: The request was aborted: Cou
ld not create SSL/TLS secure channel.. Bits download failed: File not found.. Wi
nInet download failed: Function: InternetOpenUrl, HR: -2147012867, Message: Unkn
own error 12029, Signature: PackageId=Linux.GCC.arm_none_eabi;PackageAction=Down
loadPackage;ReturnCode=0x80131500
UpdateLayout progress: 99.00%
Error: Setup completed with errors.
Error: One or more errors occurred.
Press any key to continue...
Run Code Online (Sandbox Code Playgroud)

我尝试使用cmd下载Linux.GCC.arm_none_eabi

vs_Enterprise.exe --layout c:\test --add Linux.GCC.arm_none_eabi --lang en-US
Run Code Online (Sandbox Code Playgroud)

但它给了我错误:

Download of 'https://aka.ms/vs/16/release/channel' succeeded using engine 'WebCl
ient'
Download of 'https://download.visualstudio.microsoft.com/download/pr/9efbe138-ff
42-4deb-95c9-1d78cdc1f98b/356b789dfa97d11956dc1a1c1ec3abad20ef3ca4d4cd34fae9df18
489b34d6aa/VisualStudio.vsman' succeeded using engine 'WebClient'
Catalog load operation correlation: {"id":"f4ca2719-dc4d-46c0-b458-a3169a2d57db"
}
Layout operation correlation: {"id":"7780b16c-7775-4ac1-92b2-8a47537f7784"}
Planning 'Layout' operation
Error: The package 'Linux.GCC.arm_none_eabi' is not recognized.
Error: Failed to plan for Layout.
Error: Setup completed with errors.
Error: The package 'Linux.GCC.arm_none_eabi' is not recognized.
Press any key to continue...
Run Code Online (Sandbox Code Playgroud)

但是,如果我输入 url https://aka.ms/AA9z5w0,我可以下载该文件,gcc-arm-none-eabi-9-2020-q2-update-win32.zip因此该链接确实有效,但如何将最后缺失的部分添加到我的离线安装程序中?

我的问题是如何解决此错误以便我可以获得完整的离线安装程序?

我当前的解决方案是创建文件夹c:\vslayout\Linux.GCC.arm_none_eabi,version=9.3.1并将文件放入gcc-arm-none-eabi-9-2020-q2-update-win32.zip其中。但我想知道这是否是解决问题的正确方法。

更新:我当前的解决方案有效,在我手动下载并将其放入离线安装程序后,我重新运行cmd来验证包,它给了我OK结果:

Total packages to download: 0
Starting 'UpdateLayout' operation
Setup completed successfully.
Press any key to continue...
Run Code Online (Sandbox Code Playgroud)

123*_*ing 2

错误说:

Error: Package 'Linux.GCC.arm_none_eabi,version=9.3.1' failed to download from '
https://aka.ms/AA9z5w0'. 
Run Code Online (Sandbox Code Playgroud)

所以在Firefox浏览器中输入url https://aka.ms/AA9z5w0,然后我就可以下载文件gcc-arm-none-eabi-9-2020-q2-update-win32.zip

创建文件夹c:\vslayout\Linux.GCC.arm_none_eabi,version=9.3.1并将文件放入gcc-arm-none-eabi-9-2020-q2-update-win32.zip其中。

在我手动下载并将其放入离线安装程序后,我重新运行 cmdvs_enterprise.exe --layout c:\vslayout --lang en-US来验证软件包,它给了我正确的结果:

Total packages to download: 0
Starting 'UpdateLayout' operation
Setup completed successfully.
Press any key to continue...
Run Code Online (Sandbox Code Playgroud)

成功!!!