[SOLVED] Windows Update Errors 0x80070490

naboo

Contributor
Joined
Feb 9, 2022
Posts
21
Hi,
as many others im facing problems with Windows Updates on my pc (Windows 10, 21h1 Build 19043.1165) while trying to run Windows Update or install any Update, or Update Rollup Package or upgrade to 21h2 (online or from dvd)
Every Update Package fails with error 0x80070490. Upgrade to 21h2 fails with error 0x8007001f - 0x20006 SAFE_OS REPLICATE_OC error

sfc /scannow didnt find any problems, everything is fine
dism /online /cleanup-image /checkhealth found no problems
dism /online /cleanup-image /Scanhealth stops with 4% , Error 1168, File not found message


SFCfix also didnt found a problem. im pretty sure that some missing reg keys causing this troubble, but cannot find them.
Maybe you can help me out here?

cheers and greets from Hamburg
 

Attachments

Rich (BB code):
2022-02-09 11:28:03, Info                  CBS    Failed to extract file update.mum from cabinet \\?\G:\windows10.0-kb5009647-x64_2670e7d4a06ca31caece82602577cdda7e09ef86.cab [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2022-02-09 11:28:03, Info                  CBS    Failed to extract package manifest from cabinet [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2022-02-09 11:28:03, Info                  CBS    Failed to initialize internal package [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2022-02-09 11:28:03, Error                 CBS    Failed to create internal package [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2022-02-09 11:28:03, Info                  CBS    Failed to create windows update package [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2022-02-09 11:28:03, Info                  CBS    Failed to CreatePackage using worker session [HRESULT = 0x80070002]
2022-02-09 11:28:03, Info                  CBS    Failed to create internal CBS package [HRESULT = 0x80070002]

Rich (BB code):
2022-02-09 10:49:02, Info                  CBS    Failed to extract file update.mum from cabinet \\?\C:\Users\naboo\Downloads\windows10.0-kb5009647-x64_2670e7d4a06ca31caece82602577cdda7e09ef86.cab [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2022-02-09 10:49:02, Info                  CBS    Failed to extract package manifest from cabinet [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2022-02-09 10:49:02, Info                  CBS    Failed to initialize internal package [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2022-02-09 10:49:02, Error                 CBS    Failed to create internal package [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2022-02-09 10:49:02, Info                  CBS    Failed to create windows update package [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
2022-02-09 10:49:02, Info                  CBS    Failed to CreatePackage using worker session [HRESULT = 0x80070002]

Were you trying to install the update manually? If so, with what method?
 
yes, i try manually after nothing helps, but gives the same error:
i used dism /Online /Add-Package /PackagePath: for this

i used some more directories, like c:\temp etc., but all giving the same results.

Yesterday i got the Microsoft Support on my machine, they checked some steps, but also couldnt help me out an suggested to do a reinstall, or try to keep personal files, but reinstall all apps. I havnt done it yet
 
Please run the following command again and then attach the CBS log:

Rich (BB code):
Dism /Online /Cleanup-Image /RestoreHealth

Please do not run any other commands or attempt any updates yet.
 
done....

C:\Windows\system32>Dism /Online /Cleanup-Image /RestoreHealth

Tool zur Imageverwaltung fΓΌr die Bereitstellung
Version: 10.0.19041.844
Abbildversion: 10.0.19043.1165
[== 3.8% ]
Fehler: 1168
Element nicht gefunden.

Log File attached
 

Attachments

Thanks, could you please provide the following:

Step#1 - Export CBS hive
  • Click on the Start button and in the search box, type regedit
  • When you see regedit on the list, right-click on it and select Run as administrator.
  • When regedit opens, using the left pane, navigate to the following registry key and select it by clicking on it once.
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing
  • Once selected, click File > Export....
  • Change the Save as type: to Registry Hive Files (.).
  • Name this file ComponentBasedServicing (with no file extension) and save it to your Desktop.
  • Right-click on the saved file and choose Send To -> Compressed (zipped) Folder.
  • Attach the .ZIP file to your next post.
  • If the file is too large to upload here, upload to Dropbox or OneDrive or SendSpace and just provide the link here.
 
Thanks, could you please provide the following:

Step#1 - Export CBS hive
  • Click on the Start button and in the search box, type regedit
  • When you see regedit on the list, right-click on it and select Run as administrator.
  • When regedit opens, using the left pane, navigate to the following registry key and select it by clicking on it once.
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing
  • Once selected, click File > Export....
  • Change the Save as type: to Registry Hive Files (.).
  • Name this file ComponentBasedServicing (with no file extension) and save it to your Desktop.
  • Right-click on the saved file and choose Send To -> Compressed (zipped) Folder.
  • Attach the .ZIP file to your next post.
  • If the file is too large to upload here, upload to Dropbox or OneDrive or SendSpace and just provide the link here.
sure, here you go. And thanks for your time :)
 

Attachments

Thanks, it appears that there is a corrupted package key in part of your CBS hive. The browser appears to be omitting the unicode but the key is corrupt and can't be opened. It should be the same name as the value in blue.

Rich (BB code):
2022-02-16 15:49:17, Info                  CBS    Failed to get child object: Microsoft-Windows-20H2Enablement-Payload-Package~31bf385  [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2022-02-16 15:49:17, Info                  CBS    Failed to enumerate packages. [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2022-02-16 15:49:17, Info                  CBS    Failed to check package integrity [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2022-02-16 15:49:17, Info                  CBS    Failed to check CBS manifest [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2022-02-16 15:49:17, Info                  CBS    Failed to check CBS store. [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2022-02-16 15:49:17, Info                  CBS    
2022-02-16 15:49:17, Info                  CBS    =================================
2022-02-16 15:49:17, Info                  CBS    Checking System Update Readiness.
2022-02-16 15:49:17, Info                  CBS    
2022-02-16 15:49:17, Info                  CBS    (w)    CBS Package Index Package Missing    0x80070490    Microsoft-Windows-20H2Enablement-Payload-Package~31bf3856ad364e35~amd64~~0.0.0.0    Microsoft-Windows-20H2Enablement-Payload-Package~31bf3856ad364e35~amd64~~10.0.19041.844

Fortunately, the data appears to be intact still and I have successfully managed to amend the key using a hex editor. However, to do the fix properly, I'll need the entire SOFTWARE hive since CBS is merely a subkey of it.

Retrieve SOFTWARE Hive
Note: The SOFTWARE hive has confidential and sensitive information in it so please send me a PM with a link to that particular hive so it's not in the public forum.
  • Please download the Freeware RegBak from here: Acelogix Software - Download products
    You will find it at the bottom of the page that the link brings you to.
  • Go ahead and install this program and accept all the defaults. After the last install screen the program should open.
  • Click the New Backup button. Accept the defaults and simply click Start.
  • When it says Finished successfully, click the Close button.
  • This will bring you back to the main screen of the program. You will see one entry in this list with the date that you did it. Right-click on this line-item and select Explore Backup...
  • This will bring you into the folder where the backup was made. You should see a Users folder and a Windows folder along with a couple other files. Double-click on the Windows folder to open it. Then open the System32 folder and then config folder. You should see around 6 files in here, one of which is named SOFTWARE.
  • Copy these file to your Desktop. If the SOFTWARE file does not exist, please fetch it instead from C:\Windows\System32\config\SOFTWARE.
  • Now right click [/B]on these files on your desktop and select Send to > Compressed (zipped) folder.
  • Then please upload the zip file(s) to your favourite file sharing website (it will be too big to upload here). Examples of services to upload to are Dropbox or OneDrive or SendSpace and then just provide the link in your reply.
  • You can close any open windows you have as well as the RegBak program now.
 
SOFTWARE Hive Replacement with RegBak
Warning: This fix is specific to the user in this thread. No one else should follow these instructions as it may cause more harm than good.
  1. Close all open programs and save all your work. You will need to reboot the machine during this process.
  2. Download the SOFTWARE.ZIP from the private message I sent you.
  3. Right-click on SOFTWARE.ZIP and select Extract All.... Ensure the "Show extracted files when complete" checkbox is checked and click the Extract button.
  4. The software hive will be extracted. You will see the file named SOFTWARE (no extension)
  5. Copy the SOFTWARE hive to where you previously saved a backup. It should be (C:\Windows\RegBak\PC-NAME\DATE\Windows\System32\Config)
  6. 2014-10-1818_56_49-config_zpscbb8aad0.png
  7. Overwrite the one that is currently there when prompted.
  8. Open RegBak by click Start and selecting Registry Backup and Restore. Highlight the backup in the list (it should be the one date today), and press Restore. Click Start. RegBak will reboot your computer to complete the restore process.
Let me know if the hive was replaced or if there were any errors.
 
it all runs smooth, and i was able to install all failed updates, even the upgrade to 21h2 is installed now! πŸ‘€ (y)
many thanks x BlueRobot - im really impressed how you could find that. Thank you thank you. How can i send a beer or something? πŸ˜ƒ

would you explain where the error was in? what could have done that damage to the software hive?
 
You're welcome, glad everything is now installing correctly and you've even managed to install the newer feature update πŸ‘

would you explain where the error was in? what could have done that damage to the software hive?

The error was because of a corrupted key name in the following registry path:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages

The key was Microsoft-Windows-20H2Enablement-Payload-Package~31bf385, however, it should have been Microsoft-Windows-20H2Enablement-Payload-Package~31bf3856ad364e35~amd64~~10.0.19041.844. So, I opened your SOFTWARE hive using HxD (a hex editor) and then searched for the corrupted key name. I then converted the missing portion (highlighted in blue) to it's byte form and inserted them back.

I knew what the error was from examining your CBS log and noticing the line highlighted in red.

Rich (BB code):
2022-02-16 15:49:17, Info                  CBS    Failed to get child object: Microsoft-Windows-20H2Enablement-Payload-Package~31bf385  [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2022-02-16 15:49:17, Info                  CBS    Failed to enumerate packages. [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2022-02-16 15:49:17, Info                  CBS    Failed to check package integrity [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2022-02-16 15:49:17, Info                  CBS    Failed to check CBS manifest [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2022-02-16 15:49:17, Info                  CBS    Failed to check CBS store. [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2022-02-16 15:49:17, Info                  CBS  
2022-02-16 15:49:17, Info                  CBS    =================================
2022-02-16 15:49:17, Info                  CBS    Checking System Update Readiness.
2022-02-16 15:49:17, Info                  CBS  
2022-02-16 15:49:17, Info                  CBS    (w)    CBS Package Index Package Missing    0x80070490    Microsoft-Windows-20H2Enablement-Payload-Package~31bf3856ad364e35~amd64~~0.0.0.0    Microsoft-Windows-20H2Enablement-Payload-Package~31bf3856ad364e35~amd64~~10.0.19041.844

What caused the error to begin with? To be honest, I'm not sure too sure, but considering the data was still intact then I would conjecture it was either software related or an improper shutdown while that key was in use by the operating system.
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top