win10 0x8007042b 安装1803更新 失败
怀着兴奋的心情安装最新的win10推送,,,不了, 好不容易要重启更新了,整整花费1小时后,忽然发现安装回滚了,正在恢复到以前的版本,那个纳闷啊,于是收到一个安装错误提示:
0x8007042b 安装失败
不服,继续安装连续8次还是这个错误,
360也卸载了,其他都卸载了,各种卸载,依然还是 0x8007042b 安装失败
蛋疼!
所以去微软官方查了查,细细察看找到了解决方案:
https://docs.microsoft.com/zh-cn/windows/deployment/upgrade/resolve-windows-10-upgrade-errors#upgrade-error-codes
例如,假设错误的错误代码是 0x8007042B - 0x2000D。 从 setuperr.log 文件中搜索“8007042B”将显示以下内容:
缩短以下文本中的几行以增强可读性。 将每一行开头的日期和时间(例如 2016-10-05 15:27:08)缩短到分钟和秒钟,将较长文本字符串的证书文件名缩短到“CN”。
setuperr.log 内容:
27:08,Error SP Error READ,0x00000570 while gathering/applying object: File,C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18 [CN]. Will return 0[gle=0x00000570]
27:08,Error MIG Error 1392 while gathering object C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18 [CN]. Shell application requested abort![gle=0x00000570]
27:08,Error Gather Failed. Last error: 0x00000000
27:08,Error SP SPDoFrameworkGather: Gather operation Failed. Error: 0x0000002C
27:09,Error SP CMigrateFramework: Gather framework Failed. Status: 44
27:09,Error SP Operation Failed: Migrate framework (Full). Error: 0x8007042B[gle=0x000000b7]
27:09,Error SP Operation execution Failed: 13. hr = 0x8007042B[gle=0x000000b7]
27:09,Error SP CSetupPlatformPrivate::Execute: Execution of operations queue Failed,abandoning. Error: 0x8007042B[gle=0x000000b7]
第一行指示文件 C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18 [CN] 中有错误 0x00000570(如下所示):
27:08,C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18 [CN]. Will return 0[gle=0x00000570]
错误 0x00000570 是 Win32 错误代码,对应于:ERROR_FILE_CORRUPT:文件或目录已损坏,无法读取。
因此,Windows 安装程序会失败,因为它无法迁移损坏的文件 C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18[CN]。 此文件是本地系统证书,可以安全删除。 在 setupact.log 文件中搜索其他详细信息,在与 setuperr.log 中的行具有相同时间戳的位置中找到了阶段“Shell application requested abort”。 我们怀疑此文件导致升级失败,上述内容证实了这一点:
Setupact.log 内容:
27:00,Info Gather started at 10/5/2016 23:27:00
27:00,Info [0x080489] MIG Setting system object filter context (System)
27:00,Info [0x0803e5] MIG Not unmapping HKCU\Software\Classes; it is not mapped
27:00,Info [0x0803e5] MIG Not unmapping HKCU; it is not mapped
27:00,Info SP ExecuteProgress: Elapsed events:1 of 4,Percent: 12
27:00,Info [0x0802c6] MIG Processing GATHER for migration unit: \UpgradeFramework (CMXEAgent)
27:08,Info SP ExecuteProgress: Elapsed events:2 of 4,Percent: 25
27:08,Info SP ExecuteProgress: Elapsed events:3 of 4,Percent: 37
27:08,Info [0x080489] MIG Setting system object filter context (System)
27:08,Info [0x0803e5] MIG Not unmapping HKCU\Software\Classes; it is not mapped
27:08,Info [0x0803e5] MIG Not unmapping HKCU; it is not mapped
27:08,Info MIG COutOfProcPluginFactory::FreeSurrogateHost: Shutdown in progress.
27:08,Info MIG COutOfProcPluginFactory::LaunchSurrogateHost::CommandLine: -shortened-
27:08,Info MIG COutOfProcPluginFactory::LaunchSurrogateHost: Successfully launched host and got control object.
27:08,Info Gather ended at 10/5/2016 23:27:08 with result 44
27:08,Info Leaving MigGather method
27:08,Error SP SPDoFrameworkGather: Gather operation Failed. Error: 0x0000002C
此分析表明,通过删除 C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18[CN] 文件可解决 Windows 升级错误。 注意:在此示例中,未缩短的完整文件名是 C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18\be8228fb2d3cb6c6b0ccd9ad51b320b4_a43d512c-69f2-42de-aef9-7a88fabdaa3f。
就是说通过setuperr.log 这个文件能找到错误原因,于是用 “everything.exe” 全能搜索,直接搜索查看得到如下内容:
[SetupPlatform.exe] winreHashWimFile: Failed to hash [C:\WINDOWS\System32\Recovery]: 0x5
2018-06-14 12:03:46,Error [0x080831] MIG CSIAgent: Invalid xml format: FormatException: Component with display name: Plugin/{C939EC0F-2F56-4CE8-AF56-2336596A5FA7} already loaded __cdecl Mig::CMXEMigrationXml::CMXEMigrationXml(class Mig::CPlatform *,class UnBCL::String *,class UnBCL::XmlDocument *,class UnBCL::String *)
2018-06-14 12:04:24,Error SP Error WRITE,0x00000055 while gathering/applying object: File,C:\Users\Administrator\AppData\LocalLow\SogouPY\Popup [config.ini]. Will return 0[gle=0x00000003]
2018-06-14 12:04:24,Error MIG Error 85 while applying object C:\Users\Administrator\AppData\LocalLow\SogouPY\Popup [config.ini]. Shell application requested abort[gle=0x00000003]
2018-06-14 12:04:24,Error [0x08097b] MIG Abandoning apply due to error for object: C:\Users\Administrator\AppData\LocalLow\SogouPY\Popup [config.ini][gle=0x00000003]
2018-06-14 12:04:24,Error Apply Failed. Last error: 0x00000000
2018-06-14 12:04:24,Error SP pSPExecuteApply: Apply operation Failed. Error: 0x0000002C
2018-06-14 12:04:24,Error SP Apply: Migration phase Failed. Result: 44
2018-06-14 12:04:24,Error SP Operation Failed: First boot apply. Error: 0x8007042B[gle=0x000000b7]
2018-06-14 12:04:24,Error SP Operation execution Failed: 13. hr = 0x8007042B
2018-06-14 12:04:24,Error SP ExecuteOperations: Failed execution phase Post First Boot. Error: 0x8007042B
2018-06-14 12:04:24,Error SP Operation execution Failed.
2018-06-14 12:04:24,Error SP CSetupPlatformPrivate::Execute: Failed to deserialize/execute post-FirstBoot operations. Error: 0x8007042B
**
error SogouPY 这就是搜狗拼音 的问题了,于是卸载了它,彻底清除了,
**
再次实验,安装成功
问题解决!完美收关!
还有一个问题就是:wireless驱动,也就是无线网卡驱动,我无线网卡没有插,所以检测不到驱动更新;在没有卸载无线网卡驱动前,是安装失败的,卸载以后立马就安装好了!
原文链接:https://www.f2er.com/windows/372791.html