Updates not uninstalling :: An error has occurred. Not all the updates successfully uninstalled :: 0x80073712


Issue: Unable install or uninstall Windows updates on Windows 2016 (Windows 8/10/2012 operating system)

It failed with “An error has occurred. Not all the updates successfully uninstalled”

DISM1

Event log says “Package KB4056890 failed to be changed to the Absent state. Status: 0x80073712.”

DISM.log has logged with below error lines

2018-02-09 09:53:45, Info                  DISM   DISM Package Manager: PID=9000 TID=10864  Error in operation: source for package or file not found, ResolveSource() unsuccessful. (CBS HRESULT=0x800f081f) – CCbsConUIHandler::Error

2018-02-09 09:53:45, Error                 DISM   DISM Package Manager: PID=9000 TID=10344 Failed finalizing changes. – CDISMPackageManager::Internal_Finalize(hr:0x800f081f)

2018-02-09 09:53:45, Error                 DISM   DISM Package Manager: PID=9000 TID=10344 The source files could not be found; their location must be specified using the /source option to restore the feature. – GetCbsErrorMsg

2018-02-09 09:53:45, Error                 DISM   DISM Package Manager: PID=9000 TID=10344 Failed processing package changes with session option CbsSessionOptionRepairStoreCorruption – CDISMPackageManager::RestoreHealth(hr:0x800f081f)

2018-02-09 09:53:45, Error                 DISM   DISM Package Manager: PID=9000 TID=10344 The source files could not be found; their location must be specified using the /source option to restore the feature. – GetCbsErrorMsg

2018-02-09 09:53:45, Error                 DISM   DISM Package Manager: PID=9000 TID=10344 Failed to restore the image health. – CPackageManagerCLIHandler::ProcessCmdLine_CleanupImage(hr:0x800f081f)

2018-02-09 09:53:45, Error                 DISM   DISM Package Manager: PID=9000 TID=10344 Failed while processing command cleanup-image. – CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f081f)

Cause : The component store has been corrupted. Usually windows 2012 or later has CheckSUR, bulletin functionality to repair this corruption during update installation or removal. If that fails to need to manually fix it using DISM /Cleanup-Image

You can check whether component store health by running “DISM /Online /Cleanup-Image /ScanHealth” or try to install  using DISM update “DISM.exe /Online /Remove-Package /PackageName:Package_for_KB2870699~31bf3856ad364e35~amd64~~6.2.1.1 /quiet /norestart”

It gives error as below

Error: 14098

The component store has been corrupted.

Steps 1

net stop wuauserv

cd %systemroot%\SoftwareDistribution

ren Download Download.old

net start wuauserv

net stop bits

net start bits

net stop cryptsvc

cd %systemroot%\system32

ren catroot2 catroot2old

net start cryptsvc

Try to update installation or removal, if that failed move to Step 2

Step 2

dism /online /get-packages

DISM2

DISM.exe /Online /Remove-Package /PackageName:Package_for_KB2870699~31bf3856ad364e35~amd64~~6.2.1.1 /quiet /norestart

DISM3

Try to update installation or removal, if that failed move to Step 3

Step 3

Copy install.wim from OS CD iso images Source folder

Find index of the Operating Installation by running “dism /Get-WimInfo /WimFile:E:\Sources\ORG\install.wim”

DISM4

Either use index from the list of above

“DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:e:\Sources\ORG\install.wim:2 /LimitAccess”

Or

Create new image for Operating System listed above using index number “dism /export-image /SourceImageFile:install.wim /SourceIndex:IndexNumber/DestinationImageFile:install_new.wim /Compress:max /CheckIntegrity”

I used command “dism /export-image /SourceImageFile:e:\Sources\ORG\install.wim /SourceIndex:2/DestinationImageFile:e:\Sources\install.wim /Compress:max /CheckIntegrity”

Then  run below command to repair the coponent store

DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:e:\Sources\install.wim:1 /LimitAccess

DISM5

Update removal worked on the Operating System

DISM6

Thanks!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s