我发现一台 PC 运行的是 Windows 10 Pro 版本 1709,该版本自 2019 年 4 月 9 日以来一直不受支持,因此我正在尝试对其进行升级,但它一直失败。
尝试通过 Windows 更新升级失败并出现错误A current driver on your PC may be better than the driver we're trying to install. We'll keep trying to install.
。
尝试通过安装媒体升级失败并出现以下错误:
0x8007001F - 0x20006
The installation failed in the SAFE_OS phase with an error during REPLICATE_OC operation
到目前为止,我已经尝试了所有可以在网上找到的东西以及更多:
- 确保系统驱动器有足够的可用存储空间。
- 以管理员身份运行 Windows 更新疑难解答,据报道发现并修复了以下问题:
Potential Windows Update Database error detected
Windows Update components must be repaired
Check for pending updates
- 以管理员身份运行以下命令:
3a。net stop wuauserv
3b。net stop bits
3c。ren c:\windows\SoftwareDistribution SoftwareDistribution.old
3d。net start wuauserv
3e。net stop bits
- 停止 Windows 服务
cryptsvc
,将所有文件从%systemroot%\system32\catroot2\
移至%systemroot%\system32\catroot2.old
,然后重新启动服务。 .old
-ed 文件夹C:\$WINDOWS.~BT\
。- 删除文件夹
C:\Windows10Upgrade\
并重新运行 Windows 10 更新助手。 以管理员身份运行命令
sfc /scannow
,报告没有问题:Beginning system scan. This process will take some time. Beginning verification phase of system scan. Verification 100% complete. Windows Resource Protection did not find any integrity violations.
以管理员身份运行命令
dism /online /cleanup-image /scanhealth
,报告没有问题:Deployment Image Servicing and Management tool Version: 10.0.16299.15 Image Version: 10.0.16299.431 [==========================100.0%==========================] No component store corruption detected. The operation completed successfully.
以管理员身份运行命令
DISM /online /Cleanup-Image /RestoreHealth
,报告没有问题:Deployment Image Servicing and Management tool Version: 10.0.16299.15 Image Version: 10.0.16299.431 [==========================100.0%==========================] The restore operation completed successfully. The operation completed successfully.
以管理员身份运行命令
chkdsk /scan
,报告没有问题:The type of the file system is NTFS. Stage 1: Examining basic file system structure ... 2055168 file records processed. File verification completed. 12866 large file records processed. 0 bad file records processed. Stage 2: Examining file name linkage ... 26874 reparse records processed. 2699910 index entries processed. Index verification completed. 0 unindexed files scanned. 0 unindexed files recovered to lost and found. 26874 reparse records processed. Stage 3: Examining security descriptors ... Security descriptor verification completed. 322372 data files processed. CHKDSK is verifying Usn Journal... Usn Journal verification completed. Windows has scanned the file system and found no problems. No further action is required. 233916415 KB total disk space. 185713784 KB in 1632128 files. 724380 KB in 322373 indexes. 0 KB in bad sectors. 2138943 KB in use by the system. 65536 KB occupied by the log file. 45339308 KB available on disk. 4096 bytes in each allocation unit. 58479103 total allocation units on disk. 11334827 allocation units available on disk.
下载 Windows 10 v1909 64 位的官方 ISO,安装并运行
setup.exe
.- 下载 Windows 10 v1903 64 位的官方 ISO,安装并运行
setup.exe
. - 发现设备驱动程序是最新的。
- 将 BIOS 固件更新到最新版本。
- 使用https://errortools.com/windows/how-to-fix-safe_os-phase-error-during-replicate_oc-operation-error-in-windows-10/
\Windows\System32\mcupdate_GenuineIntel.dll
中记录的方法从安装介质中删除文件。
我现在已经没有想法了,无法使用带外管理,并且由于冠状病毒/COVID-19,物理访问存在风险。
任何人都可以帮忙吗?
2020/05/04 17:05 更新:
回答Ramhound 的评论 #1:
1. 不,所有用户配置文件都仅在系统驱动器 (C:) 上。2. 我从https://docs.microsoft.com/en-us/windows/deployment/upgrade/setupdiag → https://go.microsoft.com/fwlink/?linkid
下载并运行 SetupDiag v1.6(最新)=870142报告了以下内容:
Matching Profile found: OptionalComponentOpenPackageFailed - 22952520-EC89-4FBD-94E0-B67DF88347F6
SetupDiag version: 1.6.0.0
System Information:
Machine Name = [REDACTED]
Manufacturer = FUJITSU
Model = ESPRIMO E410
HostOSArchitecture = 2057
FirmwareType = PCAT
BiosReleaseDate = 20150422000000.000000+000
BiosVendor = BIOS Date: 04/22/15 12:46:17 Ver: 04.06.05
BiosVersion = V4.6.5.3 R1.30.0 for D3120-A1x
HostOSVersion = 10.0.16299
HostOSBuildString = 16299.431.amd64fre.rs3_release_svc_escrow.180502-1908
TargetOSBuildString = 10.0.17134.1 (rs4_release.180410-1804)
HostOSLanguageId =
HostOSEdition = Professional
RegisteredAV = Webroot SecureAnywhere
FilterDrivers = FileInfo
UpgradeStartTime = 04/05/2020 10:47:29
UpgradeEndTime = 04/05/2020 12:30:10
UpgradeElapsedTime = 01:42:41
CV = xaR0eqEoHEKd2Og6
ReportId =
Error: SetupDiag reports Optional Component installation failed to open OC Package.
Last Phase: Safe OS
Last Operation: Gather Optional Component status
Package Name: Foundation
Error: 0x8007001F
Refer to "https://support.microsoft.com/en-us/help/947821/fix-windows-update-errors-by-using-the-dism-or-system-update-readiness" for possible remediation information.
Recommend you check the "Windows Modules Installer" service (Trusted Installer) is started on the system and set to automatic start, reboot and try the update again. Optionally, you can check the status of optional components on the system (search for Windows Features), uninstall any unneeded optional components, reboot and try the update again.
Last Setup Phase:
Phase Name: Safe OS
Phase Started: 04/05/2020 12:30:01
Phase Ended: 01/01/0001 00:00:00
Phase Time Delta: 00:00:00
Completed Successfully? False
Last Setup Operation:
Operation Name: Gather Optional Component status
Operation Started: 04/05/2020 12:30:02
Operation Ended: 01/01/0001 00:00:00
Operation Time Delta: 0:00:00:00.0000000
Completed Successfully? False
有趣的是,我打开appwiz.cpl
→Turn Windows features on or off
查看安装了哪些可选组件,它根本不加载任何内容:
这导致我https://support.microsoft.com/en-gb/help/947821/fix-windows-update-errors-by-using-the-dism-or-system-update-readiness所以我运行了以下PowerShell 命令:
PS C:\WINDOWS\system32> Dism /Mount-Image /ImageFile:C:\Windows10v1909\sources\boot.wim /index:1 /MountDir:C:\Users\$Env:userName\Desktop\Mount
Deployment Image Servicing and Management tool
Version: 10.0.16299.15
Mounting image
[==========================100.0%==========================]
The operation completed successfully.
PS C:\WINDOWS\system32> Dism /Online /Cleanup-Image /RestoreHealth /Source:C:\Users\$Env:userName\Desktop\Mount\windows /LimitAccess
Deployment Image Servicing and Management tool
Version: 10.0.16299.15
Image Version: 10.0.16299.431
[==========================100.0%==========================] The restore operation completed successfully.
The operation completed successfully.
PS C:\WINDOWS\system32>
但是,升级到 v1909 以同样的方式失败。
作为对Ramhound 评论 #2 的回答:我不确定在我的研究过程中我是如何没有发生在该帖子中的,但无论如何,我使用我的文件Windows_10_EnglishUK_1803_April2018Update_64bit.iso
尝试直接路径升级,但以同样的方式失败:
回答约翰的评论:我尝试使用MediaCreationTool1909.exe
→Upgrade this PC now
但以同样的方式失败。
回答JW0914 的评论:
1. 该文件C:\Windows\Logs\CBS\CBS.log
中包含以下新条目(实际上有大约 48 行App1:
,但我无法将它们全部放入):
2020-05-04 15:50:42, Info CBS Failed to find a matching version for servicing stack: C:\WINDOWS\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.16299.428_none_1704c21831ffb4a8\ [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2020-05-04 15:50:42, Info CBS Failed to find servicing stack directory in online store. [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2020-05-04 15:50:42, Info CBS Loaded Servicing Stack v10.0.16299.428 with Core: C:\WINDOWS\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.16299.428_none_1704c21831ffb4a8\cbscore.dll
2020-05-04 15:50:42, Info CBS Failed to internally open package. [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]
2020-05-04 15:50:42, Info CBS Failed to create open package. [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]
2020-05-04 15:50:42, Info CBS Failed to OpenPackage using worker session [HRESULT = 0x800f0805]
2020-05-04 15:50:42, Info CBS Session: 30810659_1653900665 initialized by client WindowsUpdateAgent, external staging directory: (null), external registry directory: (null
2020-05-04 15:50:42, Info CBS Failed to internally open package. [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]
2020-05-04 15:50:42, Info CBS Failed to create open package. [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]
2020-05-04 15:50:42, Info CBS Failed to OpenPackage using worker session [HRESULT = 0x800f0805]
2020-05-04 15:50:45, Info CBS WU creates the package, AppID:Dynamic Update, UpdateID:{33D6CF13-224E-459B-AD4F-AF8C5E3CC469}, revision: 202
2020-05-04 15:50:45, Info CBS Session: 30810659_1685496589 initialized by client WindowsUpdateAgent, external staging directory: (null), external registry directory: (null
2020-05-04 15:50:46, Info CBS WU creates the package, AppID:Dynamic Update, UpdateID:{CAEF987D-2E08-49D8-8C68-5D6FA9F801E2}, revision: 200
2020-05-04 15:50:46, Info CBS Session: 30810659_1690150083 initialized by client WindowsUpdateAgent, external staging directory: (null), external registry directory: (null
2020-05-04 15:50:46, Info CBS Appl: detect Parent, Package: Package_for_KB4497165~31bf3856ad364e35~amd64~~10.0.4.1, Parent: Microsoft-Windows-WinPE-Package~31bf3856ad364e35~amd64~~10.0.18362.1, Disposition = Detect, VersionComp: EQ, BuildComp: EQ, RevisionComp: EQ, Exist: present
2020-05-04 15:50:46, Info CBS Appl: detectParent (exact match): Parent: Microsoft-Windows-WinPE-Package~31bf3856ad364e35~amd64~~10.0.18362.1, parent state: Absent
2020-05-04 15:50:46, Info CBS Appl: Evaluating package applicability for package Package_for_KB4497165~31bf3856ad364e35~amd64~~10.0.4.1, applicable state: Absent
2020-05-04 15:52:19, Info CBS Session: 30810659_2621054062 initialized by client Setup360, external staging directory: (null), external registry directory: (null
2020-05-04 15:52:20, Info CBS Session: 30810659_2633102031 initialized by client OCLib, external staging directory: (null), external registry directory: (null
2020-05-04 15:52:20, Info CBS Not able to find an installed package package from moniker: @Foundation [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]
2020-05-04 15:52:20, Info CBS Failed to resolve package from moniker [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]
2020-05-04 15:52:20, Info CBS Failed to create open package. [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]
2020-05-04 15:52:20, Info CBS Failed to OpenPackage using worker session [HRESULT = 0x800f0805]
2020-05-04 15:53:00, Info CBS Session: 30810659_3031483361 initialized by client WinMgmt, external staging directory: (null), external registry directory: (null
2020-05-04 15:53:00, Info CBS Not able to find an installed package package from moniker: @Foundation [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]
2020-05-04 15:53:00, Info CBS Failed to resolve package from moniker [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]
2020-05-04 15:53:00, Info CBS Failed to create open package. [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]
2020-05-04 15:53:00, Info CBS Failed to OpenPackage using worker session [HRESULT = 0x800f0805]
2020-05-04 15:55:00, Info CBS Trusted Installer is shutting down because: SHUTDOWN_REASON_AUTOSTOP
2020-05-04 15:55:00, Info CBS TiWorker signaled for shutdown, going to exit.
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: ExecutionEngineFinalize
2020-05-04 15:55:00, Info CBS Execution Engine Finalize
2020-05-04 15:55:00, Info CBS Execution Engine Finalize
2020-05-04 15:55:00, Info CBS Ending the TiWorker main loop.
2020-05-04 15:55:00, Info CBS Starting TiWorker finalization.
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: ManifestCacheFinalize
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: ExecutionEngineFinalize
2020-05-04 15:55:00, Info CBS CBS Engine already deativated
2020-05-04 15:55:00, Info CBS CBS Engine already deativated
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: ComponentAnalyzerFinalize
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: PackageTrackerFinalize
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: CoreResourcesUnload
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: SessionManagerFinalize
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: CapabilityManagerFinalize
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: PublicObjectMonitorFinalize
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: Enter vCoreInitializeLock
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: WcpUnload
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: DrupUnload
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: CfgMgr32Unload
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: DpxUnload
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: SrUnload
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: CbsEsdUnload
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: CbsTraceInfoUninitialize
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: CbsEventUnregister
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: AppContainerUnload
2020-05-04 15:55:00, Info CBS CbsCoreFinalize: WdsUnload, logging from cbscore will end.
2020-05-04 15:55:00, Info CBS Ending TiWorker finalization.
2020-05-04 15:55:00, Info CBS Ending the TrustedInstaller main loop.
2020-05-04 15:55:00, Info CBS Starting TrustedInstaller finalization.
2020-05-04 15:55:00, Info CBS Ending TrustedInstaller finalization.
修复错误的建议0x800f0805 - CBS_E_INVALID_PACKAGE
似乎是重置我已经尝试过的 Windows 更新组件。
2. 我运行了命令(下面的输出 - 我不确定那 20% 是怎么回事)并再次尝试,但升级以同样的方式失败。
PS C:\WINDOWS\system32> DISM /Online /Cleanup-Image /StartComponentCleanup
Deployment Image Servicing and Management tool
Version: 10.0.16299.15
Image Version: 10.0.16299.431
[=========== 20.0% ]
The operation completed successfully.
PS C:\WINDOWS\system32> DISM /Online /Cleanup-Image /RestoreHealth
Deployment Image Servicing and Management tool
Version: 10.0.16299.15
Image Version: 10.0.16299.431
[==========================100.0%==========================] The restore operation completed successfully.
The operation completed successfully.
PS C:\WINDOWS\system32> SFC /ScanNow
Beginning system scan. This process will take some time.
Beginning verification phase of system scan.
Verification 100% complete.
Windows Resource Protection did not find any integrity violations.
PS C:\WINDOWS\system32>
为了回答Ramhound 的评论 #3:为了确定是否安装了 KB3022345,我尝试了:
- 运行 CMD 命令
wmic qfe list brief /format:texttablewsys | find "KB3022345"
但它报告No Instance(s) Available.
- 运行 PowerShell 命令
Get-Hotfix
,但它完全没有输出。 - Running CMD command
systeminfo.exe
but it outputtedHotfix(s): N/A
, among everything else. - Using
regedit.exe
to search all keys, values, and data forKB3022345
but nothing was found. As per https://www.sysnative.com/forums/threads/windows-seven-cant-update.30365/post-286650, running administrative CMD command
reg load HKLM\COMPONENTS C:\WINDOWS\SYSTEM32\CONFIG\COMPONENTS
which completed successfully then using Farbar Recovery Scan Tool 64-bit version 03-05-2020 (latest) to search the registry forKB3022345
which outputted the following:Farbar Recovery Scan Tool (x64) Version: 03-05-2020 Ran by <username> (04-05-2020 16:50:19) Running from C:\Users\<username>\Desktop Boot Mode: Normal ================== Search Registry: "KB3022345" =========== ====== End of Search ======
Update 2020/05/07 15:52:
In answer to JW0914's comment: I mounted my file Windows_10_EnglishUK_1909_November2019Update_64bit.iso
and ran the recommended commands which outputted the following:
PS C:\WINDOWS\system32> DISM /Get-WIMinfo /WIMfile:D:\sources\install.esd
Deployment Image Servicing and Management tool
Version: 10.0.16299.15
Details for image : D:\sources\install.esd
Index : 1
Name : Windows 10 S
Description : Windows 10 S
Size : 15,717,444,845 bytes
Index : 2
Name : Windows 10 S N
Description : Windows 10 S N
Size : 14,651,579,555 bytes
Index : 3
Name : Windows 10 Home
Description : Windows 10 Home
Size : 15,528,886,602 bytes
Index : 4
Name : Windows 10 Home N
Description : Windows 10 Home N
Size : 14,465,481,381 bytes
Index : 5
Name : Windows 10 Home Single Language
Description : Windows 10 Home Single Language
Size : 15,531,153,450 bytes
Index : 6
Name : Windows 10 Education
Description : Windows 10 Education
Size : 15,719,400,830 bytes
Index : 7
Name : Windows 10 Education N
Description : Windows 10 Education N
Size : 14,648,998,694 bytes
Index : 8
Name : Windows 10 Pro
Description : Windows 10 Pro
Size : 15,719,526,598 bytes
Index : 9
Name : Windows 10 Pro N
Description : Windows 10 Pro N
Size : 14,649,755,740 bytes
The operation completed successfully.
PS C:\WINDOWS\system32> DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:D:\sources\install.esd:8 /LimitAccess
Deployment Image Servicing and Management tool
Version: 10.0.16299.15
Image Version: 10.0.16299.431
[==========================100.0%==========================] The restore operation completed successfully.
The operation completed successfully.
PS C:\WINDOWS\system32>
The upgrade to v1909 failed in the same way again.
In answer to Ramhound's comment: I found that Webroot SecureAnywhere:
- Is not listed in
appwiz.cpl
. - Cannot be uninstalled via administrative command
"C:\Program Files (x86)\Webroot\WRSA.exe" -uninstall
because all it does is cause a wordless warning window to prompt asking yes or no and neither option works. - Is not detected by Revo Uninstaller.
- Cannot be repaired (installed over) using http://anywhere.webrootcloudav.com/zerol/wsainstall.exe, https://anywhere.webrootcloudav.com/zerol/wsasme.exe, or https://anywhere.webrootcloudav.com/zerol/wsasme.msi as the EXEs simply cause the UI to open and the MSI did fix the
appwiz.cpl
listing but nothing else.
I think I'm just going to have to reinstall Windows.
我手动扁平化了 Windows 10 v1709 的安装并安装了 Windows 10 v1909,完全没有问题。
检查您的软件安装。如果任何端点保护或安全软件似乎阻止更改系统驱动程序。删除它并尝试
通过放置在网络上的本地提取的 ISO 文件将 Windows 7 升级到 10 时,我遇到了同样的问题。原来是英特尔芯片组上缺少一些驱动程序。安装所有驱动程序,错误将消失。