2021-09 .NET 5.0.10 Update for x64 Client (KB5006192) 安装失败,错误代码:0x80070643

上周五日常检查系统更新(强迫症晚期)

出现一项更新:2021-09 .NET 5.0.10 Update for x64 Client (KB5006192)

details: https://www.catalog.update.microsoft.com/ScopedViewInline.aspx?updateid=b1959051-6825-4a1c-8dc5-7974d505040f

等待更新后,提示这样一个错误:0x80070643

目前在网上,暂无搜到相关解决方案,但我根据该链接给出的脚本内容中的路径 SoftwareDistributionDownload 得到启发:DISM命令手动安装解决Win10安装更新失败错误代码0x80070643的问题

根据这个路径,找到 C:\Windows\SoftwareDistribution\Download\Install 目录,看到该目录下有个 windowsdesktop-runtime-5.0.10-win-x64.exe

双击运行 windowsdesktop-runtime-5.0.10-win-x86.exe ,报错:

点击查阅日志文件:

[20E8:1B98][2021-11-08T09:55:19]i001: Burn v3.14.0.4118, Windows v10.0 (Build 19042: Service Pack 0), path: C:\Windows\Temp\{7EE31960-AD75-473A-85E0-37918BF763D3}\.cr\windowsdesktop-runtime-5.0.10-win-x86.exe
[20E8:1B98][2021-11-08T09:55:19]i000: Initializing string variable 'DOTNETHOME' to value '[ProgramFilesFolder]dotnet'
[20E8:1B98][2021-11-08T09:55:19]i000: Initializing string variable 'BUNDLEMONIKER' to value 'Microsoft Windows Desktop Runtime - 5.0.10 (x86)'
[20E8:1B98][2021-11-08T09:55:19]i000: Initializing string variable 'PRODUCT_NAME' to value 'Microsoft Windows Desktop Runtime - 5.0.10 (x86)'
[20E8:1B98][2021-11-08T09:55:19]i000: Initializing string variable 'LINK_PREREQ_PAGE' to value 'https://go.microsoft.com/fwlink/?linkid=846817'
[20E8:1B98][2021-11-08T09:55:19]i009: Command Line: '-burn.clean.room=C:\Windows\SoftwareDistribution\Download\Install\windowsdesktop-runtime-5.0.10-win-x86.exe -burn.filehandle.attached=592 -burn.filehandle.self=588'
[20E8:1B98][2021-11-08T09:55:19]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Windows\SoftwareDistribution\Download\Install\windowsdesktop-runtime-5.0.10-win-x86.exe'
[20E8:1B98][2021-11-08T09:55:19]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Windows\SoftwareDistribution\Download\Install\'
[20E8:1B98][2021-11-08T09:55:19]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\Microsoft_Windows_Desktop_Runtime_-_5.0.10_(x86)_20211108095519.log'
[20E8:1B98][2021-11-08T09:55:19]i000: Setting string variable 'WixBundleName' to value 'Microsoft Windows Desktop Runtime - 5.0.10 (x86)'
[20E8:1B98][2021-11-08T09:55:19]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft Corporation'
[20E8:5BF4][2021-11-08T09:55:19]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
[20E8:5BF4][2021-11-08T09:55:19]i000: Setting version variable 'WixBundleFileVersion' to value '5.0.10.30418'
[20E8:1B98][2021-11-08T09:55:19]i100: Detect begin, 4 packages
[20E8:1B98][2021-11-08T09:55:19]i102: Detected related bundle: {7ce2617d-0a0a-4f61-8e5a-96f7bfca6fdd}, type: Upgrade, scope: PerMachine, version: 5.0.11.30524, operation: Downgrade
[20E8:1B98][2021-11-08T09:55:19]i101: Detected package: dotnet_runtime_5.0.10_win_x86.msi, state: Absent, cached: Complete
[20E8:1B98][2021-11-08T09:55:19]i101: Detected package: dotnet_hostfxr_5.0.10_win_x86.msi, state: Absent, cached: Complete
[20E8:1B98][2021-11-08T09:55:19]i101: Detected package: dotnet_host_5.0.10_win_x86.msi, state: Absent, cached: None
[20E8:1B98][2021-11-08T09:55:19]i101: Detected package: windowsdesktop_runtime_5.0.10_win_x86.msi, state: Absent, cached: Complete
[20E8:1B98][2021-11-08T09:55:19]i052: Condition '((VersionNT > v6.1) OR (VersionNT = v6.1 AND ServicePackLevel >= 1))' evaluates to true.
[20E8:1B98][2021-11-08T09:55:19]i199: Detect complete, result: 0x0
[20E8:5BF4][2021-11-08T09:55:21]e000: Error 0x80070666: Cannot install a product when a newer version is installed.

如图提示,安装了更新的版本,导致当前安装不成功。Cannot install a product when a newer version is installed.

到控制面板->程序和功能,找到 Microsoft Windows Desktop Runtime - 5.0.10 (x86),卸载,然后 Windows Update 点重试。
接着可能还是会出现更新失败,重复以上步骤,找到如下exe,逐个依次重复以上步骤,直到完全成功。
此时,恭喜你全部安装了 老版本的 .NET 5

  • dotnet-runtime-5.0.10-win-x86.exe
  • windowsdesktop-runtime-5.0.10-win-x64.exe
  • dotnet-sdk-5.0.401-win-x86.exe
  • windowsdesktop-runtime-5.0.10-win-x86.exe
  • aspnetcore-runtime-5.0.10-win-x64.exe
  • dotnet-runtime-5.0.10-win-x64.exe
  • dotnet-sdk-5.0.401-win-x64.exe
  • dotnet-sdk-5.0.207-win-x64.exe
  • aspnetcore-runtime-5.0.10-win-x86.exe
  • dotnet-sdk-5.0.207-win-x86.exe

PS: 可能是任意以上exe,都有类似问题,甚至需要每次逐个卸载相对应的最新版本,后重装老版本,然后将 Windows Update 成功后,再自行安装最新版本。

该问题主要出现在,电脑安装了 Visual Studio 2019 最新版本的开发者。

Windows Update 成功后,不要手动升级 Microsoft Windows Desktop RuntimeMicrosoft ASP.NET Core Runtime 到最新版本 5.0.11
否则 Windows Update 又会提示 KB5006192 更新,并且更新还是会失败。

posted @ 2021-11-08 11:02  VAllen  阅读(404)  评论(2编辑  收藏  举报