Error uploading script to arduino uno

hi, i have issues trying to upload a script on to the board it gives me this error, please help. i am on a macbook

Sketch uses 450 bytes (1%) of program storage space. Maximum is 32,256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
/private/var/folders/5g/mq7w2hxn7ds2w_slty9gqw1c0000gn/T/AppTranslocation/AE58BB98-B823-4452-B44A-41A43F10B1DA/d/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/private/var/folders/5g/mq7w2hxn7ds2w_slty9gqw1c0000gn/T/AppTranslocation/AE58BB98-B823-4452-B44A-41A43F10B1DA/d/Arduino 2.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/cu.usbmodem142201 -b115200 -D -Uflash:w:/var/folders/5g/mq7w2hxn7ds2w_slty9gqw1c0000gn/T/build7328872674903257741.tmp/sketch_jun30a.cpp.hex:i
chmod: Unable to change file mode on /private/var/folders/5g/mq7w2hxn7ds2w_slty9gqw1c0000gn/T/AppTranslocation/AE58BB98-B823-4452-B44A-41A43F10B1DA/d/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avrdude_bin: Read-only file system
/private/var/folders/5g/mq7w2hxn7ds2w_slty9gqw1c0000gn/T/AppTranslocation/AE58BB98-B823-4452-B44A-41A43F10B1DA/d/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avrdude: line 6: /private/var/folders/5g/mq7w2hxn7ds2w_slty9gqw1c0000gn/T/AppTranslocation/AE58BB98-B823-4452-B44A-41A43F10B1DA/d/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avrdude_bin: Permission denied
/private/var/folders/5g/mq7w2hxn7ds2w_slty9gqw1c0000gn/T/AppTranslocation/AE58BB98-B823-4452-B44A-41A43F10B1DA/d/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avrdude: line 6: exec: /private/var/folders/5g/mq7w2hxn7ds2w_slty9gqw1c0000gn/T/AppTranslocation/AE58BB98-B823-4452-B44A-41A43F10B1DA/d/Arduino 2.app/Contents/Java/hardware/tools/avr/bin/avrdude_bin: cannot execute: Undefined error: 0

Your Arduino IDE does not appear to be up to date. Maybe you could try updating it?

2 Likes

hi, thanks for your response, the place where I got the script from said to use version 1.65... anyways I found the solution to the issue on stackexchange from an anonymous user. This was the solution they wrote to another user with same problem that worked:

"Drag Arduino.app out of your ~/Downloads folder to /Applications or anywhere else that isn't where you downloads it to. The app is being subjected to Gatekeeper Path Randomization which means it is running on a read-only file system. The app is trying to chmod something inside the app bundle and thats not possible on a read-only file system."

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.