Error while uploading hex file to AVR uC
A short write-up from chat.

First make sure the driver module is loaded, apparently this does not happen automatically:

Option 1: On the fly: modprobe cdc-acm

Option 2: To load the module at boot time:


sudo bash -c 'echo hoi &gt;&gt; /etc/modules Notice the double &gt;&gt; is important.
reboot
check if the module is loaded: lsmod | grep cdc-acm &amp;&amp; echo success || echo failed




You should be able to program the device using:

sudo avrdude -v -p t85 -c avrispmkII -P usb -U flash:w:src.hex


Check this question for more information: https://stackoverflow.com/questions/5412727/avrisp-mkii-doesnt-work-with-avrdude-in-linux

Not sure what the reason is for the error message you reported at this point:

avrdude: stk500v2_command(): command failed
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: Target not detected
avrdude: initialization failed, rc=-1 




Your to do list:


Automatically load the cdc-acm module => Described above.
Figure out what is wrong with your udev rules, so you do not have to use sudo for programming => check https://askubuntu.com/ for that.
Figure out why the programmer doesn't respond. https://electronics.stackexchange.com/ is the right place. A picture of your setup will help. As it is a different error than you started with, I think a new question is justified.