Why am I getting an error status 7 when installing Android 5.0.1?

I have tried to install the 5.0.1 android L update from the OTA on the nexus 7 2013. Then it kept coming up as error during recovery mode about halfway through installation and the log said that it had an error opening the update file. This error is status 7. I have tried flushing cache and factory reset.