Windows update giving error 80070002 and manual update not working how to update?

I have been trying to update my pc from 20h1 to 20h2 but the windows update shows error message 80007002 and when I manually install the update using windows 10 update assistant it downloads completely and then even starts install and gets stuck at 87 percent on the screen where it says do not turn off. What to do?This is the log file.

Matching Profile found: FindRollbackFailure - 3A43C9B5-05B3-4F7C-A955-88F991BB5A48SetupDiag version: 1.6.0.0System Information:    Machine Name =     Manufacturer =     Model =     HostOSArchitecture = 1033    FirmwareType = UEFI    BiosReleaseDate = 20160513000000.000000+000    BiosVendor = A12    BiosVersion = A12    HostOSVersion = 10.0.19041    HostOSBuildString = 19041.1.amd64fre.vb_release.191206-1406    TargetOSBuildString = 10.0.19041.621 (vb_release_svc_prod1.201014-1758)    HostOSLanguageId =     HostOSEdition = CoreSingleLanguage    RegisteredAV = Quick Heal Internet Security    FilterDrivers = FileInfo    UpgradeStartTime = 12/20/2020 2:54:38 PM    UpgradeEndTime = 12/20/2020 5:30:40 PM    UpgradeElapsedTime = 02:36:02    CV = Pi3IdU3SlEqpFx93    ReportId = Error: SetupDiag reports rollback failure found.Last Phase = Pre OOBE BootLast Operation = OOBE boot applyError = 0xC1900101-0x4000DLogEntry: Refer to "https://docs.microsoft.com/en-us/windows/desktop/Debug/system-error-codes" for error information.Last Setup Phase:Phase Name: Pre OOBE Boot    Phase Started: 12/20/2020 4:37:50 PM    Phase Ended: 1/1/0001 12:00:00 AM    Phase Time Delta: 00:00:00    Completed Successfully? FalseLast Setup Operation:Operation Name: OOBE boot apply    Operation Started: 12/20/2020 4:37:50 PM    Operation Ended: 1/1/0001 12:00:00 AM    Operation Time Delta: 0:00:00:00.0000000    Completed Successfully? False

Solution:

Windows Update is problematic and can fail in many ways.

Below is a list of advice that may help Windows Update work better:

  • Run the Windows Update troubleshooter in:
    Settings > Update & Security > Troubleshoot > Additional troubleshooters >Windows Update > Run the troubleshooter

  • Run Microsoft’s Windows Update Troubleshooter for Windows 10

  • Reset Windows Update components by running these commands in an elevatedCommand Prompt:

    net stop wuauservnet stop cryptSvcnet stop bitsnet stop msiserverRen C:WindowsSoftwareDistribution SoftwareDistribution.oldRen C:WindowsSystem32catroot2 Catroot2.oldnet start msiservernet start wuauservnet start cryptSvcnet start bits

    If all goes well, delete the .old folders (or return them if a problemarrives).

  • Run the DISM tool in an elevated Command Prompt:

    Dism /Online /Cleanup-Image /ScanHealthDism /Online /Cleanup-Image /CheckHealthDism /Online /Cleanup-Image /RestoreHealth
  • Run the following in an elevated PowerShell shell:

    SC config trustedinstaller start=auto
  • If nothing fixes the problem, use a heavy gun:
    Repair Install of Windows 10 with an In-place Upgrade