Skip to content

Board Install - Access Denied #310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MikeSW17 opened this issue Apr 12, 2021 · 4 comments
Closed

Board Install - Access Denied #310

MikeSW17 opened this issue Apr 12, 2021 · 4 comments
Assignees
Labels
conclusion: off topic Off topic for this repository topic: CLI Related to Arduino CLI type: imperfection Perceived defect in any part of project

Comments

@MikeSW17
Copy link

MikeSW17 commented Apr 12, 2021

Fresh (first time) Install of IDE 2.0 beta 4

When attempting to install "Arduino MBed OS Nano Boards", it fails with "Access Denied"

downloading arduino:arm-none-eabi-gcc@7-2017q4
downloading arduino:[email protected]
downloading arduino:[email protected]
downloading arduino:[email protected]
downloading arduino:[email protected]
Failed to install platform: arduino:mbed_nano.
Error: 2 UNKNOWN: installing tool arduino:arm-none-eabi-gcc@7-2017q4: moving extracted archive to destination dir: rename C:\Users\Mike\AppData\Local\Arduino15\tmp\package-827321993\gcc-arm-none-eabi-7-2017-q4-major-win32 C:\Users\Mike\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4: Access is denied.

I tried running the IDE as Administrator too, with the same result.

@Cecchellone
Copy link

same error but with esp8266:[email protected] platform

@Cecchellone
Copy link

Partially solved by running in powershell:

cd C:\Users\<UserName>\AppData\Local\Arduino15
icacls .\packages\* /grant Everyone:F /r

@makerinchina-iot
Copy link

makerinchina-iot commented Jul 18, 2021

Partially solved by running in powershell:

cd C:\Users\<UserName>\AppData\Local\Arduino15
icacls .\packages\* /grant Everyone:F /r

the same result, and use the powershell cmd it just shows: "invalid parameter '/r'. solved by this cmd:
icacls.exe .\* /grant[:r] Everyone:F

But install other platform like stm32 failed too. Finally solved just install platform by Arduino 1.x, and used it in Arduino IDE 2.x.

@rsora rsora removed the topic: cli label Sep 16, 2021
@cmaglie cmaglie removed the type: bug label Sep 16, 2021
@rsora rsora added type: imperfection Perceived defect in any part of project topic: CLI Related to Arduino CLI labels Sep 22, 2021
@per1234
Copy link
Contributor

per1234 commented Oct 25, 2021

We had two prior reports of this in the Arduino CLI repository (Arduino CLI handles the installation for Arduino IDE):

In both, interference from the antivirus was found to cause the problem. The same sort of pattern has long been observed with the classic Arduino IDE. The solution is to configure the antivirus so that it won't interfere with the working of the Arduino software.

Since this is really an Arduino CLI issue, and likely to be not something Arduino has any power to mitigate, I'll go ahead and close this. We do still have one issue open at arduino/arduino-cli#723, so if anyone has ideas for what can be done to improve on this situation, feel free to comment over there.

@per1234 per1234 closed this as completed Oct 25, 2021
@per1234 per1234 added the conclusion: off topic Off topic for this repository label Oct 25, 2021
@per1234 per1234 self-assigned this Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: off topic Off topic for this repository topic: CLI Related to Arduino CLI type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

7 participants