With this error must follow these steps:
-Press The Windows key + R
-Write The following commands all at once
net stop wuauserv
net stop CryptSvc
net stop bits
net stop msiserver
ren C: \ Windows \ SoftwareDistribution SoftwareDistribution.old
ren C: \ Windows \ System32 \ catroot2 catroot2.old
net start wuauserv
net start CryptSvc
net start bits
net start msiserver
pause