avrdude is the tool used to program the flash memory inside the MEGA2560 processor, so that's where something is going wrong. Have you tried to upload from the Arduino IDE a second time? Have you previously been able to upload OK?