Hi @knherzog. This error is often caused by interference from your antivirus software.
Any experiment you can try is TEMPORARILY disabling your antivirus for a single installation to see if the problem goes away, then turn the antivirus back on.
If the problem doesn't occur with the antivirus off you will need to adjust the settings of your antivirus to put the appropriate file, folder, or process on the "allow list" so it doesn't interfere with compilation.
Please be cautious about working without an antivirus. This is only about temporarily disabling it for a quick test. If you don't feel comfortable doing that, fine. You can try going straight to configuring the antivirus to not interfere with the Arduino software.
I'm happy to say that an improvement was made recently which should cause the IDE to be more resilient to this type of interference:
However, that improvement hasn't propagated into an Arduino IDE build yet, so it won't be of immediate assistance.
Good Morning:
I downloaded the latest IDE yesterday (and donated). I have been trying to install the IDE ever since. I have been having the same problem and I am on the verge of giving up in abject despair.
Error: 13 INTERNAL: Cannot install tool arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7: moving extracted archive to destination dir: rename C:\Users\Mark\AppData\Local\Arduino15\tmp\package-689175940\avr c:\Users\Mark\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7: Access is denied.
I followed the link to github that you provided but I am having trouble understanding exactly what I am supposed to copy to where.
The source directory in the failed "rename" operation:
C:\Users\Mark\AppData\Local\Arduino15\tmp\package-689175940\avr
does not exist. In fact, when I come to:
C:\Users\Mark\AppData\Local\Arduino15\tmp
That is as far as it goes. There is nothing in this directory.
The link was more intended to share that progress is being made in this area, rather than with the expectation that users would manually apply that change to their IDE. However, that is possible if you want.
A tester build of Arduino IDE that uses the latest version of Arduino CLI happens to be available for download right now. This tester build offers the easiest way to get the fix I mentioned in my previous comment.
I'll provide instructions you can follow to download that tester build:
Hi again. A developer investigated the problem and identified a potential cause.
A fix has been prepared, but unfortunately we were never able to reproduce the fault despite quite some attempts. So we are hoping that you might be willing to help us out by testing the fix and letting us know whether the error still occurs.
Everyone is welcome to test, but the most conclusive results will be in the case where the error is produced reliably with the regular production version of the software. So please first test with Arduino IDE 2.0.1 (or the latest nightly build of Arduino IDE if you prefer) to make sure you are able to reproduce the error.
I'll provide the instructions for getting the tester build of Arduino IDE that has the proposed fix:
Sign in to your GitHub account.
(GitHub only allows downloads of the tester builds when you are signed in.)