Skip to content

core install fails with "Access is denied" error #723

Closed
@dajtxx

Description

@dajtxx

Bug Report

Current behavior

I am trying to install the AVR core to see if uploads work with that, to help debug my Feather problem.

The AVR core installation fails.

Again, I can compile and upload a sketch from within the IDE.

C:\Users\DAVITAYL\Documents\Arduino>arduino-cli core list -v
INFO[0000] Using config file: C:\Users\DAVITAYL\AppData\Local\Arduino15\arduino-cli.yaml
INFO[0000] arduino-cli version 0.10.0
INFO[0000] Checking if CLI is Bundled into the IDE
INFO[0000] Loading hardware from: C:\Users\DAVITAYL\AppData\Local\Arduino15\packages
INFO[0000] Loading package adafruit from: C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\adafruit\hardware
INFO[0000] Loaded platform                               platform="adafruit:[email protected]"
INFO[0000] Loading package arduino from: C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\arduino\hardware
INFO[0000] Checking existence of 'tools' path: C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\arduino\tools
INFO[0000] Loading tools from dir: C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\arduino\tools
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:arm-none-eabi-gcc@7-2017q4"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loading package builtin from: C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\builtin
INFO[0000] Checking existence of 'tools' path: C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\builtin\tools
INFO[0000] Loading tools from dir: C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\builtin\tools
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Adding libraries dir                          dir="C:\\Users\\DAVITAYL\\Documents\\Arduino\\libraries" location=user
INFO[0000] current best: adafruit:[email protected]            bundle=false managed=true version=1.5.13
INFO[0000] Adding libraries dir                          dir="C:\\Users\\DAVITAYL\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.5.13\\libraries" location=platform
INFO[0000] Executing `arduino core list`
INFO[0000] current best: adafruit:[email protected]            bundle=false managed=true version=1.5.13
ID            Installed Latest Name
adafruit:samd 1.5.13    1.5.13

C:\Users\DAVITAYL\Documents\Arduino>arduino-cli core install arduino:avr -v
INFO[0000] Using config file: C:\Users\DAVITAYL\AppData\Local\Arduino15\arduino-cli.yaml
INFO[0000] arduino-cli version 0.10.0
INFO[0000] Checking if CLI is Bundled into the IDE
INFO[0000] Loading hardware from: C:\Users\DAVITAYL\AppData\Local\Arduino15\packages
INFO[0000] Loading package adafruit from: C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\adafruit\hardware
INFO[0000] Loaded platform                               platform="adafruit:[email protected]"
INFO[0000] Loading package arduino from: C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\arduino\hardware
INFO[0000] Checking existence of 'tools' path: C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\arduino\tools
INFO[0000] Loading tools from dir: C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\arduino\tools
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:arm-none-eabi-gcc@7-2017q4"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loading package builtin from: C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\builtin
INFO[0000] Checking existence of 'tools' path: C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\builtin\tools
INFO[0000] Loading tools from dir: C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\builtin\tools
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Adding libraries dir                          dir="C:\\Users\\DAVITAYL\\Documents\\Arduino\\libraries" location=user
INFO[0000] current best: adafruit:[email protected]            bundle=false managed=true version=1.5.13
INFO[0000] Adding libraries dir                          dir="C:\\Users\\DAVITAYL\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.5.13\\libraries" location=platform
INFO[0000] Executing `arduino core install`
WARN[0000] Tool already installed                        platform="arduino:[email protected]" tool="arduino:[email protected]"
Tool arduino:[email protected] already installed
WARN[0000] Tool already installed                        platform="arduino:[email protected]" tool="arduino:[email protected]"
Tool arduino:[email protected] already installed
Downloading packages...
arduino:[email protected] already downloaded
arduino:[email protected] already downloaded
INFO[0000] Installing tool                               Tool="arduino:[email protected]"
Installing arduino:[email protected]...
WARN[0009] Cannot install tool                           Tool="arduino:[email protected]" error="moving extracted archive to destination dir: rename C:\\Users\\DAVITAYL\\AppData\\Local\\Arduino15\\tmp\\package-095788307\\avr C:\\Users\\DAVITAYL\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5: Access is denied."
INFO[0009] Installing platform                           platform="arduino:[email protected]"
Installing arduino:[email protected]...
ERRO[0014] Cannot install platform                       error="moving extracted archive to destination dir: rename C:\\Users\\DAVITAYL\\AppData\\Local\\Arduino15\\tmp\\package-183218518\\avr C:\\Users\\DAVITAYL\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.2: Access is denied." platform="arduino:[email protected]"
Error during install: moving extracted archive to destination dir: rename C:\Users\DAVITAYL\AppData\Local\Arduino15\tmp\package-183218518\avr C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.2: Access is denied.
ERRO[0014] Error during install: moving extracted archive to destination dir: rename C:\Users\DAVITAYL\AppData\Local\Arduino15\tmp\package-183218518\avr C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.2: Access is denied.

C:\Users\DAVITAYL\Documents\Arduino>dir C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\arduino\hardware
 Volume in drive C is System
 Volume Serial Number is 0CAD-5409

 Directory of C:\Users\DAVITAYL\AppData\Local\Arduino15\packages\arduino\hardware

27/05/2020  02:36 PM    <DIR>          .
27/05/2020  02:36 PM    <DIR>          ..
               0 File(s)              0 bytes
               2 Dir(s)  76,647,366,656 bytes free

Environment

arduino-cli Version: 0.10.0 Commit: ec5c3ed
Win10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions