0x800f0831 — an update in the chain is missing from the store
The cumulative update needs a package from an earlier update that is not in the component store, so it cannot build the chain.
What you see
Cumulative updates fail with 0x800f0831. CBS.log names a specific package version that is missing. Common on machines imaged from an old base or built with an offline media that had updates stripped.
What is actually wrong
A servicing stack or cumulative update was removed, or the image was built with DISM /Cleanup-Image /StartComponentCleanup /ResetBase, which deletes the superseded components later updates expect to find.
Codes and articles
The fix
Find the missing package in CBS.log and install it by hand
The standard DISM repair has already failed or is not available. The log names exactly what is missing, which turns this from guesswork into a single download.
Pull the missing package name out of the servicing log.
Select-String -Path C:\Windows\Logs\CBS\CBS.log -Pattern 'Package_for_|does not have the required' | Select-Object -Last 25The entry looks like Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1234.1.5. The number after the tilde is the build the machine is missing.
Note the build number and the architecture.
Download that exact cumulative update from the Microsoft Update Catalog as an .msu.
Install it directly, bypassing Windows Update.
wusa.exe C:\temp\windows10.0-kb5005539-x64.msu /quiet /norestartRestart, then run the newer update again.
If the log names a servicing stack update (SSU), install that first and restart before anything else.
An SSU updates the code that installs updates. A cumulative update that needs a newer SSU cannot install itself out of the problem.
DISM /Online /Get-Packages /Format:Table | Select-String 'RollupFix'Related faults
Where this stops. This write-up was written and checked by hand. It says what each step changes, how to confirm it worked and how to reverse it, and anything destructive is flagged before you reach it. If it does not match what your machine is doing, search the Support Centre for the exact code or message — and when something needs a person, get in touch.