Ubuntu - Error: Failed to create the SD card
I had the same error like you and I have just solved it, so maybe it can help you (though I don't think your error is caused by the same problem like me).
I found that all tools in ../tools don't have the permission to excute, so I used
chmod -R 777 ../tools
from the command line and it finally works