Code:
sfc /scannow
Enter that in the terminal. Also check that the dcom rpc and windows installer services are running. If that doesn't work then we can try fixing windows installer.