Visual Studio 2017 安装失败

Visual Studio 2017 安装失败

我正在尝试在最近重新格式化的 Windows 10 计算机上安装 Visual Studio 2017 Community Edition。几乎没有安装任何东西,但就 Windows 更新而言它是最新的。我没有防病毒软件,也没有防火墙。

当我打开时vs_community.exe,这个过程会连续发生大约 10 次:

安装程序步骤 1

然后我得到这个:

安装程序2

我没有任何选择,也没有办法做任何事情,只能一遍又一遍地下载 67mb 的文件。

我运行了日志收集工具,发现以下错误:

VisualStudio Bootstrapper:06/03/2018 22:54:48: Current Optin root path does not exists
VisualStudio Bootstrapper:06/03/2018 22:54:48: Commandline arguments = --env _SFX_CAB_EXE_PACKAGE:C:\Users\username\Downloads\vs_Community.exe _SFX_CAB_EXE_ORIGINALWORKINGDIR:C:\Users\username\Downloads
VisualStudio Bootstrapper:06/03/2018 22:54:48: Parent process name = vs_Community
VisualStudio Bootstrapper:06/03/2018 22:54:48: Parent process product version = 15.6.27428.1
VisualStudio Bootstrapper:06/03/2018 22:54:48: CampaignId = 
VisualStudio Bootstrapper:06/03/2018 22:54:49: DownloadURL = https://aka.ms/vs/15/release/installer
VisualStudio Bootstrapper:06/03/2018 22:54:49: InstallLocation = C:\Program Files (x86)\Microsoft Visual Studio\Installer
VisualStudio Bootstrapper:06/03/2018 22:54:49: OfflineFilePath = 
VisualStudio Bootstrapper:06/03/2018 22:54:49: LayoutLocation = 
VisualStudio Bootstrapper:06/03/2018 22:54:49: ExecutableArguments = /finalizeInstall install --in "C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_setup_bootstrapper_201803062254487844.json" --locale en-GB --activityId "2889c3b4-3927-44e8-8308-cc45702af3ed"
VisualStudio Bootstrapper:06/03/2018 22:54:49: OSVersion = Microsoft Windows NT 10.0.16299.0
VisualStudio Bootstrapper:06/03/2018 22:54:49: Starting to detect the existing VS and .Net...
VisualStudio Bootstrapper:06/03/2018 22:54:49: Finished detecting the existing VS and .Net
VisualStudio Bootstrapper:06/03/2018 22:54:52: Beginning file download. File = https://aka.ms/vs/15/release/installer.
VisualStudio Bootstrapper:06/03/2018 22:54:52: Download requested: https://aka.ms/vs/15/release/installer
VisualStudio Bootstrapper:06/03/2018 22:54:52: Attempting download 'https://aka.ms/vs/15/release/installer' using engine 'WebClient'
VisualStudio Bootstrapper:06/03/2018 22:54:52: Uri 'https://aka.ms/vs/15/release/installer' redirected to 'https://download.visualstudio.microsoft.com/download/pr/11711691/d68d54e233c956ff79799fdf63753c54/vs_installer.opc'
VisualStudio Bootstrapper:06/03/2018 22:55:02: Certificate is invalid: C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_installer\p.wlk\vs_installer.opc
VisualStudio Bootstrapper:06/03/2018 22:55:02: Caught Exception: Type = InvalidSignatureException, Message = Certificate is invalid: vs_installer.opc, StackTrace = 
VisualStudio Bootstrapper:06/03/2018 22:55:02: Certificate is invalid: vs_installer.opc
VisualStudio Bootstrapper:06/03/2018 22:55:02: Download failed using WebClient engine. Microsoft.VisualStudio.Setup.Security.InvalidSignatureException: Certificate is invalid: vs_installer.opc
   at Microsoft.VisualStudio.Setup.Download.DownloadManager.DownloadWithRetry(IDownloadEngine[] engines, Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, Boolean verifySignature)
VisualStudio Bootstrapper:06/03/2018 22:55:02: Sleeping 5000 milliseconds before retrying download.

我找不到很多关于此错误的信息。大多数信息都来自 Microsoft 论坛,人们被告知要“报告问题”,但您无法针对此错误执行此操作,因为它在安装过程中并没有深入到这一步。

我尝试过运行“离线安装程序”,但结果只是启动相同的过程,并一次又一次失败。似乎没有太多其他方法可以尝试。

我真的不知道还能做什么,有人有什么想法吗?!

答案1

DNS 问题?你显然可以忽略它,因为他能够下载安装程序。如果你真的阅读了日志,你就会弄清楚并检查它说了什么。转到 certmgr 获取你的帐户,检查受信任的根 CA 证书和中间证书,看看是否有 Microsoft 证书已过期。我发现我的 Microsoft Sig PCA 已过期。我下载了一个有效的证书,安装后 VS 安装程序运行正常。

相关内容