Fix: Error 0x800f0838 When Installing Windows Updates

Error 0x800f0838 is an issue that occurs during the installation of Windows updates, especially when using .MSU (Microsoft Standalone Update) files. This error abruptly terminates the installation process, rolls back any partially applied changes, and displays a failure message along with the error code. The root cause is often missing checkpoint updates, a feature introduced in Windows 11 24H2 to reduce the size of monthly updates.
Error 0x800f0838

This error can also occur in environments using offline update methods, such as manual installations or third-party patch management tools, where update dependencies aren’t resolved automatically. Other common causes include corrupted Windows system files, malfunctioning Windows Update services, and damaged update cache files.

Below, we’ll guide you through proven fixes to resolve this error and restore proper update functionality.

Note: Before starting, back up your data and ensure you have at least 20GB of free space on your system drive (C:), as low disk space can cause update failures.

1. Run SFC and DISM Scan

Running SFC (System File Checker) and DISM (Deployment Image Servicing and Management) scans can repair corrupted system files and restore a healthy Windows image. These tools address common causes of update failures by repairing essential components.

  1. Open the Windows Start menu.
  2. Search for “Command Prompt” and run it as an administrator.
  3. In the Command Prompt, enter the following command:
    sfc /scannow

  4. Once complete, keep the Command Prompt open and run:
    DISM /Online /Cleanup-Image /RestoreHealth

  5. After both scans finish, retry the Windows Update process.

2. Reset Windows Update Components

Resetting Windows Update components clears corrupted temporary files and resets related services. This gives the update process a clean state and resolves errors caused by file conflicts or partial update attempts.

  1. Open the Windows Start menu.
  2. Search for “Command Prompt” and run it as an administrator.
  3. Execute the following commands one by one:
    net stop wuauserv 
    net stop bits 
    net stop cryptsvc 
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old 
    ren C:\Windows\System32\catroot2 Catroot2.old 
    net start wuauserv 
    net start bits 
    net start cryptsvc

3. Manually Install Updates

Installing updates manually through PowerShell or Command Prompt allows you to bypass broken update mechanisms. Begin by installing the SSU (Servicing Stack Update) to ensure compatibility, followed by the main update (e.g., KB5050009). This method is useful when Windows Update fails due to service errors or corruption.

  1. Open your preferred browser.
  2. Go to https://www.catalog.update.microsoft.com
  3. Search for:
    Latest SSU (e.g., "KB5043080") Your target update (e.g., "KB5050009")
  4. Download the “Windows 11” and “x64” .msu files.
  5. Create a folder in C: (e.g., C:\Updates) and move both files there.
  6. Open Command Prompt or PowerShell as Administrator.
  7. Navigate to your update folder:
    cd C:\Updates

  8. Run the SSU installer (adjust filename if needed):
    Add-WindowsPackage -Online -PackagePath "C:\Updates\windows11.0-kb5043080-x64.msu"

    Wait for the process to complete.

  9. Then, install the Main Update:
    Add-WindowsPackage -Online -PackagePath "C:\Updates\windows11.0-kb5050009-x64.msu"

  10. Restart your PC after installation completes.
ABOUT THE AUTHOR

Hamza Mohammad Anwar


Hamza Mohammad Anwar is an intermediate JavaScript web developer with a focus on developing high-performance applications using MERN technologies. His skill set includes expertise in ReactJS, MongoDB, Express NodeJS, and other related technologies. Hamza is also a Google IT Certified professional, which highlights his competence in IT support. As an avid problem-solver, he recreates errors on his computer to troubleshoot and find solutions to various technical issues.