To flash the USBMIDIKLIK bootloader on your Mega using an Uno follow this approach
1. Connect the boards as described.
2. Put the Mega in bootloader mode.
3. Run the avrdude command:
Make sure you are using the right serial port.
Remove the jumper wire and reset the Mega.
Remember to double-check your connections and serial port before flashing