我按照这份说明创建了一个Visual Studio 2019离线安装程序。
我已经多次重新运行以下命令:
vs_enterprise.exe --layout c:\vslayout --lang en-US
但是在长时间验证软件包之后,它仍然给出错误:
...
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...
我尝试使用cmd下载
Linux.GCC.arm_none_eabi
:vs_Enterprise.exe --layout c:\test --add Linux.GCC.arm_none_eabi --lang en-US
但是它给了我一个错误:
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...
但是,如果我输入网址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...