Are you flashing using flash-all.bat or the.sh file? If you are using the batch file install wine on your linux device. Or you can boot TWRP and wipe everything including internal storage, system, data and dalvik cache and then try to flash the file. I recommend you to auto flash, not manually...