File permission inconsistencies .

I have seen this once before a long time ago and I can't recall what I had to do

"Update Failed: The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions."
Is there a way to set them all back to default?

Wordpress won't update to 4.7