Dealing with this very common issue on IDE v2.0.0., but not sure why.
I should be fine group-wise:
adm tty dialout cdrom sudo dip plugdev lpadmin lxd sambashare docker
I've also seen numerous suggestions to change the device's permissions directly via chmod a+rw /dev/<device>
. This is terrible advice, but nothing is working so far, so I tried it anyway. It also doesn't work, as at some point during the upload process, the device is removed and recreated, resetting the permissions.
edit: I've also ensured that ModemManager is not running, and has been purged from the system.
Running the IDE as root always fails, including when the --no-sandbox
argument is passed.
I'm using the AppImage download on Ubuntu 22.04, but I tried the zip download, with the same results.
edit: Previously in this spot was a note about this problem not occurring on IDE v. 1.8. That wasn't actually the case - I was just testing with a board that doesn't remove and re-create the device on upload. Using a board where that does occur (Arduino Micro in this case), the error occurs in 1.8 as well.
Using avrdude
directly (as my normal user account) also works just fine.
Additional observation - when the device is recreated by the OS after plugging the Arduino board in, it's first created with crw------- 1 root root
permissions, and remains in that state for a very short period of time before switching to crw-rw----+ 1 root dialout
permissions, at which point uploads work as expected.