Windows Update Error 0x80070002? How to Fix It

Avatar photo

What this missing-file update code means

Update error 0x80070002 is Windows saying it could not find a file it needs to download or install an update. The code is the same as the system error “file not found.” It can appear in Windows Update, during a feature update, or after a download reaches a high percentage and then rolls back.

Windows Update downloads packages into the SoftwareDistribution cache, checks catalogs in catroot2, and applies components from the Windows component store. If a package is incomplete, a catalog is damaged, or the installer looks for a file that a previous failed update never left behind, the same missing-file code appears.

Common causes of 0x80070002 Windows 11 failures are:

  • Damaged files in the update cache, usually the SoftwareDistribution folder.
  • Not enough free space on the system drive.
  • A required update file never finished downloading, so the installer looks for update files missing from the cache.
  • System file corruption, or a stuck pending install.

Microsoft lists this code in Troubleshoot problems updating Windows. Work through the fixes in order. If Settings will not open, start with our Settings not opening guide.

Before you start

A few checks will save you from resetting the update cache when the real problem is disk space, a locked file, or a wrong clock.

  1. Open Settings > Windows Update and note the exact error and, if shown, the KB number in Update history.
  2. Open Settings > System > Storage and confirm the system drive has a healthy amount of free space.
  3. Unplug extra USB drives, docks, and card readers so a removable disk is not confusing the installer.
  4. Open Settings > Time & language > Date & time and turn on automatic time and time zone if they are off.
  5. Pause large file copies, game installs, and VPNs for a few minutes so the update service is not competing for a busy disk or a filtered network.

If you will stop services and rename system folders, create a restore point first. Open Start, type Create a restore point, select the system drive, choose Create, and wait until Windows confirms it. That gives you a way back if a rename does not complete cleanly.

Quick-fix checklist for update error 0x80070002 on Windows 11

Use the checklist above as you work. After each fix, return to Settings > Windows Update, select Check for updates, and wait for a clear success or a new error before you continue.

Fixes for update error 0x80070002 on Windows 11

1. Run the Windows Update troubleshooter

The built-in Windows Update troubleshooter can restart services and repair simple catalog problems. Microsoft lists it first for this error, and it is the right starting point when update error 0x80070002 appears for the first time.

  1. Open Settings > System > Troubleshoot > Other troubleshooters.
  2. Next to Windows Update, select Run.
  3. Apply any fix it offers, restart if asked, then open Settings > Windows Update and select Check for updates.

If the troubleshooter says it could not complete the job, continue with the disk space and cache steps. Those fix most leftover cases of missing files in the download folder. Make a note of any message it reports, such as a service that would not start, because that points you to Fix 3.

2. Free up space and do a simple restart

Windows needs a healthy amount of free space to unpack updates. Microsoft’s update troubleshooting page asks for a large reserve on the system drive when you are installing a major upgrade. A nearly full disk can also make the installer report update files missing even when the download started normally.

  1. Open Settings > System > Storage and note the free space on C:.
  2. Use Temporary files and Cleanup recommendations to remove what you do not need. Microsoft’s Free up drive space in Windows page walks through the built-in tools.
  3. Unplug extra USB drives, docks, and card readers, then restart the PC and try Windows Update again.

A restart alone sometimes clears a file lock that made the installer think a package was missing. If Storage shows plenty of free space and the error remains after the restart, move on to the services and cache checks.

3. Check the date, time, and update services

If the clock is wrong, Windows can fail to validate packages and report the same missing-file code. Stopped services can produce the same 0x80070002 Windows 11 result because the download never finishes writing the files the installer expects.

  1. Open Settings > Time & language > Date & time and turn on Set time automatically and Set time zone automatically.
  2. Press Windows key + R, type services.msc, and press Enter.
  3. Make sure Windows Update, Background Intelligent Transfer Service, Cryptographic Services, and Windows Installer are running. Start any that are stopped, and set Windows Update to Automatic if it is disabled.

Then check for updates again. A healthy result is that those services show Running, and Windows Update can at least start a new check. If a service refuses to start, note the error and continue with the cache reset, then DISM.

4. Reset SoftwareDistribution folder and catroot2

To reset SoftwareDistribution folder contents, you stop the update services, rename the cache folders, and start the services again. Windows creates fresh folders and downloads the updates once more. Installed programs and personal files are not removed.

This is the most reliable fix when update error 0x80070002 keeps returning after the troubleshooter. You are discarding a damaged download cache, not uninstalling Windows.

  1. Right-click Start and open Terminal (Admin).
  2. Run these commands one at a time:
net stop wuauserv
net stop bits
net stop cryptSvc
net stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
net start wuauserv
net start bits
net start cryptSvc
net start msiserver
  1. Restart the PC and check for updates.

The net stop commands release the locks on those folders. The ren commands keep the old cache as a backup instead of deleting it outright. If a rename command says the folder is in use, confirm the services stopped successfully and try again.

After updates install, you can delete the .old folders to reclaim space. If an update still sits at 0% after this reset, our Windows 11 Update stuck at 0% guide covers that separate symptom.

5. Repair update files missing with DISM and SFC

When files are missing from the component store, DISM and System File Checker can restore them. Use this after you reset SoftwareDistribution folder contents if Windows Update still cannot find a package, or sooner if the troubleshooter already pointed to corrupted system files.

  1. In Terminal (Admin), run DISM.exe /Online /Cleanup-image /Restorehealth and wait until it finishes.
  2. Run sfc /scannow.
  3. Restart, then check Windows Update again.

If DISM cannot reach Windows Update to download repair files, Microsoft’s troubleshooter page still applies: get the PC online, free up space, and rerun the command later. Success looks like both commands completing without a hard failure, then Windows Update offering or installing the previously blocked package.

Do not stop DISM in the middle of the image restore. It can sit on a high percentage for several minutes. That pause is normal.

If you use a metered connection or a VPN, switch to a regular network before you rerun DISM or Windows Update. The repair command needs to reach Microsoft’s servers unless you already have the repair files cached locally. A filtered connection can make a healthy PC look like it still has corrupted components. Try a phone hotspot if your usual network is locked down.

6. Retry 0x80070002 Windows 11 after clearing a stuck pending install

Some of these failures happen when a previous update left a pending operation behind, and the new package cannot find the files it expected. That leftover state can make update files missing appear even after a fresh cache download.

  1. In Terminal (Admin), run dism /online /cleanup-image /revertpendingactions.
  2. Restart immediately when the command finishes.
  3. Run the update troubleshooter again, then DISM /Restorehealth and sfc /scannow as in Fixes 1 and 5.

Only use revertpendingactions if updates keep failing or rolling back. After the restart, check for updates once more. If Windows was in the middle of a feature update, give the first reboot time to finish before you run more commands.

7. Disable Windows Sandbox and review optional features

A missing component file can be tied to an optional feature such as Windows Sandbox. This is not the most common cause, but it is worth a check if the cache reset did not help and 0x80070002 Windows 11 still appears when optional features or a related update are installing.

  1. Open Settings > System > Optional features and also Settings > System > Optional features > More Windows features (or run optionalfeatures from the Run dialog).
  2. If Windows Sandbox is on and you do not need it during the update, turn it off, restart, and try Windows Update again.
  3. You can turn the feature back on after the update installs.

If a specific optional feature fails to install with the same code, turn that feature off, complete Windows Update, then add the feature again. The goal is to let the main quality or feature update finish before Windows tries to stitch the optional component back in.

8. Install the update from the Microsoft Update Catalog

If Windows Update still reports the same code, install the package yourself. A manual install bypasses a stuck Store-style download path and can succeed when update files missing from the automatic cache keep blocking the Settings page.

  1. In Settings > Windows Update > Update history, note the KB number of the failed update.
  2. Open a browser and go to the Microsoft Update Catalog.
  3. Search for that KB, download the package that matches your Windows 11 edition and architecture (usually x64 or ARM64), and run it.
  4. Restart when the installer asks.

Use only the official Microsoft Update Catalog, not a third-party “update downloader.” To confirm architecture, open Settings > System > About and check whether the system type is 64-bit or ARM. If you cannot open Task Manager to close a stuck installer, see Task Manager not opening. After a successful manual install, check Windows Update again so any remaining packages can follow.

How to prevent it from coming back

Once the update installs, keep the system drive from filling up and let Windows Update finish before you shut the PC down mid-download. Pause updates only for a short, planned window. A long pause followed by a large backlog is a common way to end up with a damaged cache.

If the Windows Update troubleshooter starts reporting the same code again, run it once, then reset SoftwareDistribution folder contents if the error repeats, rather than checking for updates over and over on a broken cache. Keep BITS and Windows Update set to start automatically.

When the problem returns, open Event Viewer and check Windows Logs > System and Applications and Services Logs > Microsoft > Windows > WindowsUpdateClient > Operational around the time of the failure. Those logs can show a disk-space error, a catalog failure, or a service that stopped mid-install. Advanced users can also review C:\Windows\Logs\CBS\CBS.log after a DISM or SFC run for component-store errors. You do not need to edit that file; search it for the failed package name or copy it if you are asking for help.

If several updates fail after DISM, SFC, and a cache reset, use a repair install with a current official Windows 11 ISO from Microsoft. Run setup.exe, choose to keep personal files and apps, and let the install finish. Back up important files first. A repair install refreshes the component store without wiping your documents, and it often clears a stubborn update error 0x80070002 that a cache rename alone could not fix.

Quick reference

SymptomLikely causeBest fix to try firstNeeds restart?
First time the error appearsA simple service or catalog problemRun the built-in update troubleshooter (Fix 1)If asked
The system drive is nearly fullWindows cannot unpack the packageFree up space and restart (Fix 2)Yes
The error returns after every checkA damaged update cacheRename the SoftwareDistribution cache (Fix 4)Yes
Updates download, then roll backA stuck pending install or damaged system filesRevert pending actions, then run DISM and SFC (Fixes 5 and 6)Yes
One KB fails repeatedlyThe automatic download is incompleteInstall it from the Microsoft Update Catalog (Fix 8)Yes
The same code appears for an optional featureA missing optional-component fileTurn the feature off, update Windows, then add it again (Fix 7)Yes

FAQ

What causes this missing-file update code?

Windows cannot find a file it needs for the update, which is what update error 0x80070002 reports. The cache may be damaged, the drive may be short on space, or system files may be incomplete. Resetting the update cache and running DISM and SFC fixes most cases.

Is this update code a hardware failure?

Usually not. It is almost always a missing or damaged update file. Test the cache and system-file repairs before you assume a failing drive, unless Disk Management or a drive health tool already reports problems. A drive that is only full, not failing, still needs the space check in Fix 2.

How do I reset the SoftwareDistribution cache safely?

Stop the Windows Update and BITS services, rename C:\Windows\SoftwareDistribution and C:\Windows\System32\catroot2, start the services, and restart. Windows rebuilds both folders. Your personal files stay in place. That is the supported way to reset SoftwareDistribution folder contents without deleting Windows.

Should I run the built-in update troubleshooter first?

Yes. It is quick, and Microsoft lists it first for this error. If the Windows Update troubleshooter does not help, move on to disk space, the cache reset, and DISM. You can run it again after those repairs if you want a final service check.

What if the missing-files error still appears after DISM?

Download the failed KB from the Microsoft Update Catalog and install it manually if update files missing still block Windows Update. If several updates fail in a row, make sure the PC can reach Windows Update on the network and that a work policy is not blocking it.

Can a wrong date or time cause this code?

Yes. If the clock is far off, Windows may fail to validate catalogs and then report the same missing-file error. Turn on automatic time and time zone, restart the update services, and check for updates again before you rename system folders.

Do I need to reinstall Windows to clear this error?

Almost never. Most 0x80070002 Windows 11 cases are fixed by freeing space, resetting the update cache, or repairing system files. Use a repair install with an official ISO only if those steps fail, and keep your personal files and apps during that install.

Sources

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
Taskbar Icons Missing on a Windows 11 laptop in a home office

Taskbar Icons Missing on Windows 11? How to Get Them Back

Next Post
Desktop Icons Missing on a Windows 11 laptop in a home office

Desktop Icons Missing on Windows 11? How to Restore Them

Related Posts