Closed as not planned
Description
Describe the problem
After installing the latest version of the Arduino IDE (2.3.2) on Pop!_OS, I encountered a "Permission Denied" error while trying to upload the Blink example code to the built-in LED on my Arduino device. The error message is as follows:
Sketch uses 924 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied
Failed uploading: uploading error: exit status 1
To reproduce
- Download and install Arduino IDE version 2.3.2 on a system running Pop!_OS.
- Open the Blink example code from the IDE.
- Attempt to upload the code to an Arduino UNO board
Expected behavior
The upload should fail with a "Permission Denied" error, as shown in the error message above.
Arduino IDE version
2.3.2
Operating system
Linux
Operating system version
22.04
Additional context
The issue can be resolved by adding the current user to the dialout
group, which grants the necessary permissions to access the serial port. Run the following command in the terminal:
sudo usermod -aG dialout $USER
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details