avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied

Hello all,
I'm not new to the Forum, but as long as I can remember... I've never wrote in it...

I'm having an issue with the Arduino IDE on Ubuntu 18.10:

When I try to upload a sketch on the Arduino UNO I receive this error message

avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied
An error occurred while uploading the sketch

The solutions I've already tried (most common solutions found in internet so far):

-Check that the board is seen by Ubuntu from terminal

ricky@Elitebook-8440p:~$ ls /dev/ttyACM0
ricky@Elitebook-8440p:~$ ls /dev/ttyACM1
ricky@Elitebook-8440p:~$ ls -l /dev/ttyACM0
crw-rw-rw- 1 root dialout 166, 0 apr 13 10:22 /dev/ttyACM0
ricky@Elitebook-8440p:~$ ls -l /dev/ttyACM1
crw-rw-rw-+ 1 root dialout 166, 1 apr 13 10:22 /dev/ttyACM1

-Check/Grant the permissions of my user

ricky@Elitebook-8440p:~$ sudo usermod -a -G tty ricky
ricky@Elitebook-8440p:~$ sudo usermod -a -G dialout ricky
ricky@Elitebook-8440p:~$ sudo chmod a+rw /dev/ttyACM0
ricky@Elitebook-8440p:~$ sudo chmod a+rw /dev/ttyACM1

So far I keep receiving the same message.
does anyone had this issue?
is this a common bug of the IDE on Ubuntu?

Ps: in windows it all works fine, no issues (but I don't have a windows pc anymore)

Have you added yourself to the dialout group?

That is the only thing I ever needed to do.


ricky@Elitebook-8440p:~$ sudo usermod -a -G dialout ricky

After doing that, did you log out and then log back in to your Linux user account?

Might also unplug and plug the usb and have a look at dmesg.

Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-47-generic i686)
rsutherland@conversion:~$ dmesg
[22212.826279] usb 3-2: USB disconnect, device number 2
[22220.266246] usb 3-2: new full-speed USB device number 3 using uhci_hcd
[22220.494252] usb 3-2: New USB device found, idVendor=2341, idProduct=0043
[22220.494257] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[22220.494261] usb 3-2: Manufacturer: Arduino (www.arduino.cc)
[22220.494264] usb 3-2: SerialNumber: 95233353131351E0E0F0
[22220.497395] cdc_acm 3-2:1.0: ttyACM0: USB ACM device

well that was fun to color