What exact error are you getting?
Kindly go through the following Microsoft reference article:
Troubleshoot problems updating Windows
Open Command Prompt as Admin and run the following commands:
net stop bits
net stop wuauserv
ren %systemroot%\softwaredistribution softwaredistribution.bak
ren %systemroot%\system32\catroot2 catroot2.bak
net start bits
net start wuauserv
After all these commands are completed, close the Command Prompt window and restart your computer.