I just installed Ubuntu 22.04 and installed Arduino using
snap install arduino
which installed as expected.
I am aware I need to add my user to the dialout group, so I searched /dev for ttyACM* and also ttyUSB* using:
sudo ls -al /dev/ttyUSB*
and sudo ls -al /dev/ttyACM*
but got
ls: cannot access '/dev/ttyUSB*': No such file or directory
and
ls: cannot access '/dev/ttyACM*': No such file or directory
I checked the ringbuffer for either of those using
sudo dmesg | grep tty
and got the following output:
[ 0.167893] printk: console [tty0] enabled
[ 86.158991] usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB0
[ 88.005204] usb 2-2: usbfs: interface 0 claimed by ftdi_sio while 'brltty' sets config #1
[ 88.006033] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 1578.498248] usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB0
[ 1580.221903] usb 2-2: usbfs: interface 0 claimed by ftdi_sio while 'brltty' sets config #1
[ 1580.223379] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 1714.844660] usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB0
[ 1716.573774] usb 2-2: usbfs: interface 0 claimed by ftdi_sio while 'brltty' sets config #1
[ 1716.574710] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
So ttyUSB0 does seem to be there.
It doesnt seem to be permissions (I think) since its not saying "Permission denied".
I also tried adding to the udev rules:
sudoedit /etc/udev/rules.d/50-myusb.rules
and added the following lines:
KERNEL=="ttyUSB[0-9]*",MODE="0666"
KERNEL=="ttyACM[0-9]*",MODE="0666"
then saved and logged out and back in, but no change. I also tried rebooting, just to be sure.
I'm not sure how to proceed from here, can anyone please point me in the right direction?