VS2017无法下载安装文件 [英] VS2017 Unable to download installation files

查看:648
本文介绍了VS2017无法下载安装文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我一直在努力解决这个问题。当我尝试通过vs_community.exe安装visual studio时,安装程​​序始终返回错误"无法下载安装文件"。


相关日志位于:

日志的开头。开始时间:2017-10-20 12:40:33 PM 
VisualStudio Bootstrapper:2017-10-20 12:40:33 PM:当前的Optin根路径不存在
VisualStudio Bootstrapper:2017-10 -20 12:40:34 PM:命令行参数=
VisualStudio Bootstrapper:2017-10-20 12:40:34 PM:父进程名称= vs_community__1356155431.1508495925
VisualStudio Bootstrapper:2017-10-20 12:40:34 PM:父流程产品版本= 15.4.27004.2005
VisualStudio Bootstrapper:2017-10-20 12:40:34 PM:CampaignId = 1356155431.1508495925
VisualStudio Bootstrapper:2017-10-20 12 :40:38 PM:DownloadURL = https://aka.ms/vs/15/release/installer
VisualStudio Bootstrapper:2017-10-20 12:40:38 PM:InstallLocation = C:\Program Files (x86)\ Microsoft Visual Studio \Installer
VisualStudio Bootstrapper:2017-10-20 12:40:38 PM:OfflineFilePath =
VisualStudio Bootstrapper:2017-10-20 12:40:38 PM :LayoutLocation =
VisualStudio Bootstrapper:2017-10-20 12:40:38 PM:ExecutableArguments = / final izeInstall install --in" C:\ProgramData \ Mysoftoft \VisualStudio \Packages\_bootstrapper\vs_setup_bootstrapper_201710201240345908.json" --locale en-US --activityId" fdbfde9b-e784-4193-a3bf-17d993ceeb3c" --campaign" 1356155431.1508495925"
VisualStudio Bootstrapper:2017-10-20 12:40:38 PM:OSVersion = Microsoft Windows NT 10.0.14393.0
VisualStudio Bootstrapper:2017-10-20 12:40:38 PM:开始检测现有VS和.Net ...
VisualStudio Bootstrapper:2017-10-20 12:40:38 PM:完成检测现有VS和.Net
VisualStudio Bootstrapper:2017-10-20 12:40 :下午43点:开始下载文件。 File = https://aka.ms/vs/15/release/installer。
VisualStudio Bootstrapper:2017-10-20 12:40:43 PM:请求下载:https://aka.ms/vs/15/release/installer
VisualStudio Bootstrapper:2017-10-20 12 :40:43 PM:尝试使用引擎'WebClient'下载'https://aka.ms/vs/15/release/installer'
VisualStudio Bootstrapper:2017-10-20 12:40:43 PM:WebClient错误'ConnectFailure' - 代理设置'默认' - 'https://aka.ms/vs/15/release/installer'。
VisualStudio Bootstrapper:2017-10-20 12:40:43 PM:WebClient错误'ConnectFailure' - 代理设置'DefaultCredentialsOrNoAutoProxy' - 'https://aka.ms/vs/15/release/installer'。
VisualStudio Bootstrapper:2017-10-20 12:40:43 PM:WebClient错误'ConnectFailure' - 代理设置'NetworkCredentials' - 'https://aka.ms/vs/15/release/installer'。
VisualStudio Bootstrapper:2017-10-20 12:40:43 PM:WebClient错误'ConnectFailure' - 代理设置'DirectAccess' - 'https://aka.ms/vs/15/release/installer'。
VisualStudio Bootstrapper:2017-10-20 12:40:43 PM:WebClient在"https://aka.ms/vs/15/release/installer"中失败,"无法连接到远程服务器" - 'https://aka.ms/vs/15/release/installer'。
VisualStudio Bootstrapper:2017-10-20 12:40:43 PM:使用WebClient引擎下载失败...




如果我从chrome导航到https://aka.ms/vs/15/release/installer,我可以手动下载安装程序,这很奇怪。所以我将它添加到--OfflineFilePath参数中。结果与此日志的错误相同:

日志的开头。开始时间:2017-10-21 12:03:06 PM 
VisualStudio Bootstrapper:2017-10-21 12:03:07 PM:当前的Optin根路径不存在
VisualStudio Bootstrapper:2017-10 -21 12:03:07 PM:命令行参数=
VisualStudio Bootstrapper:2017-10-21 12:03:07 PM:父进程名称= vs_Community
VisualStudio Bootstrapper:2017-10-21 12: 03:07 PM:父流程产品版本= 15.4.27004.2005
VisualStudio Bootstrapper:2017-10-21 12:03:07 PM:CampaignId =
VisualStudio Bootstrapper:2017-10-21 12:03:晚上11点:DownloadURL = https://aka.ms/vs/15/release/installer
VisualStudio Bootstrapper:2017-10-21 12:03:11 PM:InstallLocation = C:\Program Files(x86) \ Microsoft Visual Studio \Installer
VisualStudio Bootstrapper:2017-10-21 12:03:11 PM:OfflineFilePath = c:\ Users \ ***** \Downloads\vs_installer.opc
VisualStudio Bootstrapper:2017-10-21 12:03:11 PM:LayoutLocation =
VisualStudio Bootstrapper:2017-10-21 12:03:11 PM:ExecutableA rguments = / finalizeInstall install --layoutPath" c:\ Users \ ***** \Downloads" --in" C:\ProgramData \ Micropros\VisualStudio \Packages\_bootstrapper \vs_setup_bootstrapper_201710211203075418.json" --locale en-US --activityId" 202f6e7b-c507-4cf1-be59-0b55b1957e23"
VisualStudio Bootstrapper:2017-10-21 12:03:11 PM:OSVersion = Microsoft Windows NT 10.0.14393.0
VisualStudio Bootstrapper:2017-10-21 12:03:11 PM:开始检测现有VS和.Net ...
VisualStudio Bootstrapper:2017-10-21 12:03:12 PM:完成检测现有VS和.Net
VisualStudio Bootstrapper:2017-10-21 12:03 :28 PM:使用离线包:c:\ Users \ ***** \Downloads\vs_installer.opc
VisualStudio Bootstrapper:2017-10-21 12:03:28 PM:验证签名
VisualStudio Bootstrapper:2017-10-21 12:03:29 PM:无法验证证书。 RevocationStatusUnknown,PartialChain,OfflineRevocation
VisualStudio Bootstrapper:2017-10-21 12:03:29 PM:Caught Exception:Type = InvalidOperationException,Message =无法验证安装文件的完整性:无法验证证书, StackTrace = at Microsoft.VisualStudio.Setup.Bootstrapper.Opc.OpcVerifier.Verify(Stream packageStream,String layoutLocation)
at Microsoft.VisualStudio.Setup.Bootstrapper.Bootstrapper.VerifyPackage(Stream packageStream)
VisualStudio Bootstrapper: 2017-10-21 12:03:29 PM:签名验证失败。错误:无法验证安装文件的完整性:证书无法验证。

我目前正在旅行所以我无法控制代理设置我希望这不是问题。但我已连接到城市周围的3或4个不同的WiFi点,所有这些都会产生相同的错误。当然,如果我无法下载
的安装文件,那么我甚至无法管理离线安装,这意味着我无法手动安装和下载证书(除非有办法下载这些证书)与我下载安装文件的方式相同。)


任何帮助都将不胜感激!




解决方案

您好vijchti,


感谢您在MSDN论坛上发帖。


>>   WebClient 中填写 span> 'https://aka.ms/vs/15/release/installer'
'无法连接到远程服务器'
- 'https://aka.ms/vs/15/release/installer' .


根据错误消息,它是由远程服务器无法正常连接的代理设置限制引起的。


有关Visual Studio 2017的最新文档,请参阅使用完整资源制作离线安装程序,将文件复制到您的计算机并执行VS 2017安装。


最好的问候,


Hello all,

I've been struggling with this problem for a while now. When I try to install visual studio via vs_community.exe, the installer always returns the error "Unable to download the installation files".

The relevant logs are here:

Beginning of the log. Start Time: 2017-10-20 12:40:33 PM
VisualStudio Bootstrapper:2017-10-20 12:40:33 PM: Current Optin root path does not exists
VisualStudio Bootstrapper:2017-10-20 12:40:34 PM: Commandline arguments = 
VisualStudio Bootstrapper:2017-10-20 12:40:34 PM: Parent process name = vs_community__1356155431.1508495925
VisualStudio Bootstrapper:2017-10-20 12:40:34 PM: Parent process product version = 15.4.27004.2005
VisualStudio Bootstrapper:2017-10-20 12:40:34 PM: CampaignId = 1356155431.1508495925
VisualStudio Bootstrapper:2017-10-20 12:40:38 PM: DownloadURL = https://aka.ms/vs/15/release/installer
VisualStudio Bootstrapper:2017-10-20 12:40:38 PM: InstallLocation = C:\Program Files (x86)\Microsoft Visual Studio\Installer
VisualStudio Bootstrapper:2017-10-20 12:40:38 PM: OfflineFilePath = 
VisualStudio Bootstrapper:2017-10-20 12:40:38 PM: LayoutLocation = 
VisualStudio Bootstrapper:2017-10-20 12:40:38 PM: ExecutableArguments = /finalizeInstall install --in "C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_setup_bootstrapper_201710201240345908.json" --locale en-US --activityId "fdbfde9b-e784-4193-a3bf-17d993ceeb3c" --campaign "1356155431.1508495925"
VisualStudio Bootstrapper:2017-10-20 12:40:38 PM: OSVersion = Microsoft Windows NT 10.0.14393.0
VisualStudio Bootstrapper:2017-10-20 12:40:38 PM: Starting to detect the existing VS and .Net...
VisualStudio Bootstrapper:2017-10-20 12:40:38 PM: Finished detecting the existing VS and .Net
VisualStudio Bootstrapper:2017-10-20 12:40:43 PM: Beginning file download. File = https://aka.ms/vs/15/release/installer.
VisualStudio Bootstrapper:2017-10-20 12:40:43 PM: Download requested: https://aka.ms/vs/15/release/installer
VisualStudio Bootstrapper:2017-10-20 12:40:43 PM: Attempting download 'https://aka.ms/vs/15/release/installer' using engine 'WebClient'
VisualStudio Bootstrapper:2017-10-20 12:40:43 PM: WebClient error 'ConnectFailure' - proxy setting 'Default' - 'https://aka.ms/vs/15/release/installer'.
VisualStudio Bootstrapper:2017-10-20 12:40:43 PM: WebClient error 'ConnectFailure' - proxy setting 'DefaultCredentialsOrNoAutoProxy' - 'https://aka.ms/vs/15/release/installer'.
VisualStudio Bootstrapper:2017-10-20 12:40:43 PM: WebClient error 'ConnectFailure' - proxy setting 'NetworkCredentials' - 'https://aka.ms/vs/15/release/installer'.
VisualStudio Bootstrapper:2017-10-20 12:40:43 PM: WebClient error 'ConnectFailure' - proxy setting 'DirectAccess' - 'https://aka.ms/vs/15/release/installer'.
VisualStudio Bootstrapper:2017-10-20 12:40:43 PM: WebClient failed in 'https://aka.ms/vs/15/release/installer' with 'Unable to connect to the remote server' - 'https://aka.ms/vs/15/release/installer'.
VisualStudio Bootstrapper:2017-10-20 12:40:43 PM: Download failed using WebClient engine...


What's strange is that I can manually download the installer if I navigate to https://aka.ms/vs/15/release/installer from chrome. So I added it to the --OfflineFilePath argument. The result is the same error with this log:

Beginning of the log. Start Time: 2017-10-21 12:03:06 PM
VisualStudio Bootstrapper:2017-10-21 12:03:07 PM: Current Optin root path does not exists
VisualStudio Bootstrapper:2017-10-21 12:03:07 PM: Commandline arguments = 
VisualStudio Bootstrapper:2017-10-21 12:03:07 PM: Parent process name = vs_Community
VisualStudio Bootstrapper:2017-10-21 12:03:07 PM: Parent process product version = 15.4.27004.2005
VisualStudio Bootstrapper:2017-10-21 12:03:07 PM: CampaignId = 
VisualStudio Bootstrapper:2017-10-21 12:03:11 PM: DownloadURL = https://aka.ms/vs/15/release/installer
VisualStudio Bootstrapper:2017-10-21 12:03:11 PM: InstallLocation = C:\Program Files (x86)\Microsoft Visual Studio\Installer
VisualStudio Bootstrapper:2017-10-21 12:03:11 PM: OfflineFilePath = c:\Users\*****\Downloads\vs_installer.opc
VisualStudio Bootstrapper:2017-10-21 12:03:11 PM: LayoutLocation = 
VisualStudio Bootstrapper:2017-10-21 12:03:11 PM: ExecutableArguments = /finalizeInstall install --layoutPath "c:\Users\*****\Downloads" --in "C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_setup_bootstrapper_201710211203075418.json" --locale en-US --activityId "202f6e7b-c507-4cf1-be59-0b55b1957e23"
VisualStudio Bootstrapper:2017-10-21 12:03:11 PM: OSVersion = Microsoft Windows NT 10.0.14393.0
VisualStudio Bootstrapper:2017-10-21 12:03:11 PM: Starting to detect the existing VS and .Net...
VisualStudio Bootstrapper:2017-10-21 12:03:12 PM: Finished detecting the existing VS and .Net
VisualStudio Bootstrapper:2017-10-21 12:03:28 PM: Using Offline package: c:\Users\*****\Downloads\vs_installer.opc
VisualStudio Bootstrapper:2017-10-21 12:03:28 PM: Verifying signature
VisualStudio Bootstrapper:2017-10-21 12:03:29 PM: Unable to verify the certificate. RevocationStatusUnknown, PartialChain, OfflineRevocation
VisualStudio Bootstrapper:2017-10-21 12:03:29 PM: Caught Exception: Type = InvalidOperationException, Message = Unable to verify the integrity of the installation files: the certificate could not be verified, StackTrace =    at Microsoft.VisualStudio.Setup.Bootstrapper.Opc.OpcVerifier.Verify(Stream packageStream, String layoutLocation)
   at Microsoft.VisualStudio.Setup.Bootstrapper.Bootstrapper.VerifyPackage(Stream packageStream)
VisualStudio Bootstrapper:2017-10-21 12:03:29 PM: Signature verification failed. Error: Unable to verify the integrity of the installation files: the certificate could not be verified.

I'm currently traveling so I don't have control over proxy settings where I am, so hopefully that isn't the issue. But I've connected to 3 or 4 different WiFi spots around the city and all of them produce the same error. And, of course, if I can't download the installation files then I can't even manage an offline installation, which means I can't manually install and download the certificates (unless there's a way to download those the same way that I downloaded the installation files).

Any help would be appreciated!


解决方案

Hi vijchti,

Thank you for posting in MSDN forum.

>> WebClientfailed in 'https://aka.ms/vs/15/release/installer' with 'Unable to connect to the remote server' - 'https://aka.ms/vs/15/release/installer'.

According to the error message, it is caused by proxy setting limit that remote server can't connect well.

For the latest documentation on Visual Studio 2017, see Proxy Authorization Required on docs.microsoft.com. This error generally occurs when users are connected to Visual Studio Online through a proxy server, and the proxy server blocks the calls. Visual Studio Online is used to keep the user signed in to the IDE.

Please have a try to whitelist the following list to unblock all sign-in scenarios in Visual Studio:

◦*.windows.net

◦*.microsoftonline.com

◦*.visualstudio.com

◦*.microsoft.com

◦*.live.com

Then try the following Ping, to check if you could connect to the download server:

The above shows that the network is well-connected, or if it shows any time out error message, it means that the your network can't connect to the resource server, in this situation, how about finding another machine without any proxy setting, refer to Create an offline installer for Visual Studio 2017 to make an offline installer with full resource, copy the files to your computer and perform a VS 2017 installation then.

Best Regards,


这篇关于VS2017无法下载安装文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆