Can't complete OS X 10.10.5 software update in App Store
Assuming you are already on 10.10.something just get the Combo Updater directly from Apple, rather than from the App Store.

Direct link: Download OS X Yosemite 10.10.5 Combo Update