报错内容如下:
Beginning of the log. Start Time: 2022/8/27 21:38:23
VisualStudio Bootstrapper:2022/8/27 21:38:23: Commandline arguments = --env,_SFX_CAB_EXE_PACKAGE:C:\Users\Administrator\Downloads\vs_Community.exe _SFX_CAB_EXE_ORIGINALWORKINGDIR:C:\Users\Administrator\Downloads
VisualStudio Bootstrapper:2022/8/27 21:38:24: C2R signature did not exist or could not be read:
VisualStudio Bootstrapper:2022/8/27 21:38:24: Parent process name = vs_Community
VisualStudio Bootstrapper:2022/8/27 21:38:24: Parent process product version = 17.3.32819.101
VisualStudio Bootstrapper:2022/8/27 21:38:24: CampaignId =
VisualStudio Bootstrapper:2022/8/27 21:38:24: ResponseId not available in 'vs_setup_bootstrapper.config'. Trying to parse filename.
VisualStudio Bootstrapper:2022/8/27 21:38:24: loading config settings: -update --update --layout -offline --offline --locale --layout --originalworkingdir --installLayoutPath --env
VisualStudio Bootstrapper:2022/8/27 21:38:24: Creating the default public client application builder.
VisualStudio Bootstrapper:2022/8/27 21:38:24: Checking for WAM OS Support: OS Version: 10.0.17763.0, Is Server: False
VisualStudio Bootstrapper:2022/8/27 21:38:24: Checking for .NET Framework Runtime Version. Value: 528049
VisualStudio Bootstrapper:2022/8/27 21:38:24: The .NET runtime version is greater than or equal to net461.
VisualStudio Bootstrapper:2022/8/27 21:38:24: WAM enabled.
VisualStudio Bootstrapper:2022/8/27 21:38:24: DownloadURL = https://aka.ms/vs/17/release/installer
VisualStudio Bootstrapper:2022/8/27 21:38:24: InstallLocation = C:\Program Files (x86)\Microsoft Visual Studio\Installer
VisualStudio Bootstrapper:2022/8/27 21:38:24: OfflineFilePath = C:\Users\Administrator\Downloads\vs_installer.opc
VisualStudio Bootstrapper:2022/8/27 21:38:24: LayoutLocation =
VisualStudio Bootstrapper:2022/8/27 21:38:24: ExecutableArguments = /finalizeInstall install --layoutPath "C:\Users\Administrator\Downloads" --in "C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_setup_bootstrapper_202208272138240681.json" --locale zh-CN --activityId "e5e766ab-e95f-4b02-9bca-a50eb1a8800c"
VisualStudio Bootstrapper:2022/8/27 21:38:24: OSVersion = Microsoft Windows NT 10.0.17763.0
VisualStudio Bootstrapper:2022/8/27 21:38:24: Starting to detect the existing VS and .NET...
VisualStudio Bootstrapper:2022/8/27 21:38:24: Finished detecting the existing VS and .Net
VisualStudio Bootstrapper:2022/8/27 21:38:26: Existing client is unsupported: C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe does not exist.
VisualStudio Bootstrapper:2022/8/27 21:38:26: Using Offline package: C:\Users\Administrator\Downloads\vs_installer.opc
VisualStudio Bootstrapper:2022/8/27 21:38:26: Saving Certificates to layout folder
VisualStudio Bootstrapper:2022/8/27 21:54:33: Package signature verification threw exception: 终结点映射器中没有更多的终结点可用。
, for path: C:\Users\Administrator\Downloads\vs_installer.opc"
VisualStudio Bootstrapper:2022/8/27 21:54:33: Package signature verification threw exception: 终结点映射器中没有更多的终结点可用。
, for path: C:\Users\Administrator\Downloads\vs_installer.opc"
VisualStudio Bootstrapper:2022/8/27 21:54:33: Unable to verify the certificate: Exception
VisualStudio Bootstrapper:2022/8/27 21:54:33: Caught Exception: Type = InvalidOperationException, Message = Unable to verify the integrity of the installation files: the certificate could not be verified, StackTrace = 在 Microsoft.VisualStudio.Setup.OpcVerifier.Verify(Stream packageStream, String layoutLocation)
在 Microsoft.VisualStudio.Setup.Bootstrapper.Bootstrapper.VerifyLayoutPackage(Stream packageStream)
VisualStudio Bootstrapper:2022/8/27 21:54:33: Signature verification failed. Error: Unable to verify the integrity of the installation files: the certificate could not be verified.
VisualStudio Bootstrapper:2022/8/27 21:54:33: Bootstrapper failed with known error.
通过vs_community.exe安装visual studio时,远程服务器无法正常连接的代理设置限制引起的。
不建议使用离线安装,网络会导致有很多文件缺失,而且操作相对复杂。
可以换一种安装方式,
第一种方式1、https://msdn.itellyou.cn/
第二种方式2、https://blog.csdn.net/hebtu666/article/details/105979623
若您仍然想尝试离线安装,可以参考下
https://blog.csdn.net/zwjzwj108108/article/details/122915004
https://www.cnblogs.com/LiuwayLi/p/15328321.html
Hi, 从你的日志中我们可以看到当前OS版本是10.0.17763.0就是Windows 1809,这个版本是低于VS 2022安装需求的,你可以看看这个:https://docs.microsoft.com/zh-cn/visualstudio/releases/2022/system-requirements#supported-operating-systems
Windows 10 版本 1909 或更高版本:家庭版、专业版、教育版和企业版。
在日志中,我们也能看到证书认证失败的信息,我猜测可能是Windows没有及时更新导致的,你可以尝试着去手动安装下这些证书: https://docs.microsoft.com/zh-cn/visualstudio/install/install-certificates-for-visual-studio-offline?view=vs-2022#option-1---manually-install-certificates-from-a-layout-folder
如果还是不行,建议你升级系统或者考虑低版本的VS,比如2019: https://docs.microsoft.com/zh-cn/visualstudio/releases/2019/system-requirements#visual-studio-2019-system-requirements