Question: how to fix this item is temporarily unavailable when reinstall os x?
Answer: One of the choices you get on the screen is GET HELP ONLINE.
Click on it, and it will open up Safari.
Go to iCloud and sign in with your Apple ID.
Now you can go back to the installation process. Use the same Apple ID that you've used for the iCloud, and the download will finally work.