I'm very new to Arduino, my apologies if I don't understand something simple.
I'm on Ubuntu 18.04 trying to connect an ATMEGA32U4 board.
Downloaded the IDE, got permissions to ttyACM0, and ran into this error:
avrdude: Error: butterfly programmer uses avr_write_page() but does not provide a cmd() method.
To fix this problem I tried this: avrdude butterfly programmer uses avr_write_page() but does not provide a cmd() - Avrdude, stk500, Bootloader issues - Arduino Forum
Basically I tried to disable ModemManager:
sudo systemctl stop ModemManager.service
And to check:
systemctl status ModemManager.service
It had worked, but now IDE doesn't find that port. Dmesg --follow showed that I had disconnected the device.
Restarting didn't work, reconnecting didn't work (dmesg didn't even recognize that something had been plugged in).
Tried to connect it while in a VM, the ttyACM0 didn't show up in /dev and Arduino didn't find anything.