cannot upload Genuino Micro sketch on Linux

Hello,

I'm definitely not able to upload any sketch (no problem using windows). I currently use Linux Mint 18.2 running sudo terminal and adding group permissions. Here's the console output in vervose mode.

It's stuck in 'Connecting to programmer: .' process

Any hints?

Archiving built core (caching) in: /tmp/arduino_cache_795717/core/core_arduino_avr_micro_6ff2e664a94bed132806b9ee39ba0bf9.a
Sketch uses 16880 bytes (58%) of program storage space. Maximum is 28672 bytes.
Global variables use 555 bytes (21%) of dynamic memory, leaving 2005 bytes for local variables. Maximum is 2560 bytes.
Forcing reset using 1200bps open/close on port /dev/ttyACM1
PORTS {/dev/ttyACM1, } / {} => {}
PORTS {} / {/dev/ttyACM1, } => {/dev/ttyACM1, }
Found upload port: /dev/ttyACM1
/home/gschelotto/arduino-1.8.5/hardware/tools/avr/bin/avrdude -C/home/gschelotto/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/ttyACM1 -b57600 -D -Uflash:w:/tmp/arduino_build_952609/termo_i2c___tapa_definitiva.ino.hex:i 

avrdude: Version 6.3, compiled on Jan 17 2017 at 11:00:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/gschelotto/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/root/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM1
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega32U4
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  9000  9000 0x00 0x00
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .

regards,
gaston

How do you know that your device is on /dev/ttyACM1 ?

My Arduino Uno generally shows up at /dev/ttyACM0.

See if this article helps.

ieee488:
How do you know that your device is on /dev/ttyACM1 ?

My Arduino Uno generally shows up at /dev/ttyACM0.

The same using ttyACM0...

Archiving built core (caching) in: /tmp/arduino_cache_619089/core/core_arduino_avr_micro_6ff2e664a94bed132806b9ee39ba0bf9.a
Sketch uses 3606 bytes (12%) of program storage space. Maximum is 28672 bytes.
Global variables use 149 bytes (5%) of dynamic memory, leaving 2411 bytes for local variables. Maximum is 2560 bytes.
Forcing reset using 1200bps open/close on port /dev/ttyACM0
PORTS {/dev/ttyACM0, } / {} => {}
PORTS {} / {} => {}
PORTS {} / {/dev/ttyACM0, } => {/dev/ttyACM0, }
Found upload port: /dev/ttyACM0
/home/gschelotto/arduino-1.8.5/hardware/tools/avr/bin/avrdude -C/home/gschelotto/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/ttyACM0 -b57600 -D -Uflash:w:/tmp/arduino_build_821946/sketch_oct11a.ino.hex:i 

avrdude: Version 6.3, compiled on Jan 17 2017 at 11:00:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/gschelotto/arduino-1.8.5/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/gschelotto/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM0
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega32U4
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  9000  9000 0x00 0x00
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .

gdsports:
See if this article helps.

Diagnosing Arduino Problems in Linux | Majenko's Hardware Hacking Blog

Great explanation. The problem was the Modem Manager grabbing the serial port as soon as it appears and trying to configure a modem attached to it! It's fixed by removing these packages as follow

$ sudo apt-get remove modemmanager

Now I can upload any sketch successfully.
Thank you!
gaston

Try also pressing the RESET button to force the board to run the boot loader then upload from the IDE. On some boards, the reset button must be double clicked.

gdsports:
Try also pressing the RESET button to force the board to run the boot loader then upload from the IDE. On some boards, the reset button must be double clicked.

It does not work at all.
A double click on reset to enter the boot? Which Arduino board has this behavior?
regards,
gaston