[Nexus 7 Q&A, Help & Troubleshooting] dimedropper:
UPDATE: My boot loader is unlocked. I wasn't able to lock it when I first flashed 5.0. I managed to lock it and they unlock it. But now this is what I get when I try to run ./flash-all.sh in terminal:

XXs-MacBook-Air:platform-tools XXXXXXXXX$ ./flash-all.sh

ERROR: could not get pipe properties

ERROR: could not get pipe properties

...

ERROR: usb_write failed with status e0004061

FAILED (command write failed (No such file or directory))

finished. total time: 0.000s

ERROR: could not get pipe properties

ERROR: could not get pipe properties

ERROR: usb_write failed with status e0004061

erasing 'boot'...

ERROR: usb_write failed with status e0004061

FAILED (command write failed (No such file or directory))

finished. total time: 0.000s

ERROR: could not get pipe properties

ERROR: could not get pipe properties

ERROR: usb_write failed with status e0004061

erasing 'cache'...

ERROR: usb_write failed with status e0004061

FAILED (command write failed (No such file or directory))

finished. total time: 0.000s

ERROR: could not get pipe properties

ERROR: could not get pipe properties

ERROR: usb_write failed with status e0004061

erasing 'recovery'...

ERROR: usb_write failed with status e0004061

FAILED (command write failed (No such file or directory))

finished. total time: 0.000s

ERROR: could not get pipe properties

ERROR: could not get pipe properties

ERROR: usb_write failed with status e0004061

erasing 'system'...

ERROR: usb_write failed with status e0004061

FAILED (command write failed (No such file or directory))

finished. total time: 0.000s

ERROR: could not get pipe properties

ERROR: could not get pipe properties

ERROR: usb_write failed with status e0004061

erasing 'userdata'...

ERROR: usb_write failed with status e0004061

FAILED (command write failed (No such file or directory))

finished. total time: 0.000s

ERROR: could not get pipe properties

ERROR: could not get pipe properties

ERROR: usb_write failed with status e0004061

ERROR: usb_write failed with status e0004061

sending 'bootloader' (2100 KB)...

ERROR: usb_write failed with status e0004061

FAILED (command write failed (No such file or directory))

finished. total time: 0.000s

ERROR: could not get pipe properties

ERROR: could not get pipe properties

rebooting into bootloader...

ERROR: usb_write failed with status e0004061

FAILED (command write failed (No such file or directory))

finished. total time: 0.000s

ERROR: could not get pipe properties

ERROR: could not get pipe properties

ERROR: usb_write failed with status e0004061

archive does not contain 'boot.sig'

ERROR: usb_write failed with status e0004061

archive does not contain 'recovery.sig'

ERROR: usb_write failed with status e0004061

archive does not contain 'system.sig'

ERROR: usb_write failed with status e0004061

archive does not contain 'tos.img'

ERROR: usb_write failed with status e0004061

Erase successful, but not automatically formatting.

Can't determine partition type.

FAILED (command write failed (No such file or directory))

ERROR: usb_write failed with status e0004061

Erase successful, but not automatically formatting.

Can't determine partition type.

FAILED (command write failed (No such file or directory))

--------------------------------------------

ERROR: usb_write failed with status e0004061

getvar:version-bootloader FAILED (command write failed (No such file or directory))