Visual Studio 2019 Installer 老是下载离线安装包失败?
Visual Studio 2019 Installer keep failing to download package for offline installer?
我按照 this instruction 为 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...
我尝试使用命令下载 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...
但是如果我输入 url https://aka.ms/AA9z5w0
,我可以下载文件 gcc-arm-none-eabi-9-2020-q2-update-win32.zip
所以 link 确实有效,但是我怎样才能添加最后丢失的部分到我的离线安装程序?
我的问题是如何解决这个错误,以便获得完整的离线安装程序?
我目前的解决方案是创建文件夹 c:\vslayout\Linux.GCC.arm_none_eabi,version=9.3.1
并将文件 gcc-arm-none-eabi-9-2020-q2-update-win32.zip
放入其中。但我想知道这是否是解决问题的正确方法。
更新:我目前的解决方案有效,在我手动下载并将其放入离线安装程序后,我重新运行 cmd 验证包和它给我好的结果:
Total packages to download: 0
Starting 'UpdateLayout' operation
Setup completed successfully.
Press any key to continue...
我检查了你的命令行(vs_enterprise.exe --layout c:\vslayout --lang en-US) 没有任何错误。不确定,但提示错误可能是微软服务器端或CDN提供商造成的。
我记得以前也有类似的问题,其中还提到“无法创建SSL/TLS安全通道...”或“无法从XXXXX下载包XXXXX”,像这样thread, and this thread .
你提到的解决方案,可能不是一个真正“正确”的解决方案,因为这可能是一个潜在的问题,但是当你从提示link下载包并通过验证时,安装应该是很好很完整。
您的解决方案很有帮助,可能会使遇到 same/similar 问题的其他论坛成员受益,所以我只做一个
摘要:
创建一个文件夹并以错误消息中提到的名称命名,然后从 link 错误消息提示中下载 file/package。放到这个文件夹。使用命令 --verify.
验证安装
错误说:
Error: Package 'Linux.GCC.arm_none_eabi,version=9.3.1' failed to download from '
https://aka.ms/AA9z5w0'.
于是在Firefox浏览器中输入urlhttps://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 vs_enterprise.exe --layout c:\vslayout --lang en-US
来验证包,它给了我好的结果:
Total packages to download: 0
Starting 'UpdateLayout' operation
Setup completed successfully.
Press any key to continue...
成功!!!
我按照 this instruction 为 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...
我尝试使用命令下载 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...
但是如果我输入 url https://aka.ms/AA9z5w0
,我可以下载文件 gcc-arm-none-eabi-9-2020-q2-update-win32.zip
所以 link 确实有效,但是我怎样才能添加最后丢失的部分到我的离线安装程序?
我的问题是如何解决这个错误,以便获得完整的离线安装程序?
我目前的解决方案是创建文件夹 c:\vslayout\Linux.GCC.arm_none_eabi,version=9.3.1
并将文件 gcc-arm-none-eabi-9-2020-q2-update-win32.zip
放入其中。但我想知道这是否是解决问题的正确方法。
更新:我目前的解决方案有效,在我手动下载并将其放入离线安装程序后,我重新运行 cmd 验证包和它给我好的结果:
Total packages to download: 0
Starting 'UpdateLayout' operation
Setup completed successfully.
Press any key to continue...
我检查了你的命令行(vs_enterprise.exe --layout c:\vslayout --lang en-US) 没有任何错误。不确定,但提示错误可能是微软服务器端或CDN提供商造成的。
我记得以前也有类似的问题,其中还提到“无法创建SSL/TLS安全通道...”或“无法从XXXXX下载包XXXXX”,像这样thread, and this thread .
你提到的解决方案,可能不是一个真正“正确”的解决方案,因为这可能是一个潜在的问题,但是当你从提示link下载包并通过验证时,安装应该是很好很完整。
您的解决方案很有帮助,可能会使遇到 same/similar 问题的其他论坛成员受益,所以我只做一个
摘要:
创建一个文件夹并以错误消息中提到的名称命名,然后从 link 错误消息提示中下载 file/package。放到这个文件夹。使用命令 --verify.
验证安装错误说:
Error: Package 'Linux.GCC.arm_none_eabi,version=9.3.1' failed to download from '
https://aka.ms/AA9z5w0'.
于是在Firefox浏览器中输入urlhttps://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 vs_enterprise.exe --layout c:\vslayout --lang en-US
来验证包,它给了我好的结果:
Total packages to download: 0
Starting 'UpdateLayout' operation
Setup completed successfully.
Press any key to continue...
成功!!!