Skip to content

Permission Denied When Uploading Program on Pop!_OS (Arduino IDE 2.3.2) #2494

Closed as not planned
@Arthur-Barreto

Description

@Arthur-Barreto

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

  1. Download and install Arduino IDE version 2.3.2 on a system running Pop!_OS.
  2. Open the Blink example code from the IDE.
  3. 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions