
最近再フォーマットした Windows 10 マシンに Visual Studio 2017 Community Edition をインストールしようとしています。ほとんど何もインストールされていませんが、Windows Update に関しては最新の状態です。ウイルス対策ソフトウェアもファイアウォールもありません。
を開くとvs_community.exe
、このプロセスが約 10 回連続して発生します。
すると次のようになります:
選択できるオプションはなく、67 MB のファイルを何度もダウンロードする以外に何もできません。
ログ収集ツールを実行したところ、次のエラーが見つかりました。
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 インストーラーは完璧に動作しました。