error uploading programmer not responding

If the loopback test fails, your communication path is broken.

Some possibly causes:
Wrong serial port selected.
USB-to-serial chip broken; does anything show in dmesg when yiu connect/disconnect?
Bad USB cable or bad contacts.

What is a master/slave connection?