Unable To Install Core To Arduino Library

Hello everyone, I have recently bought an Arduino/Genuino 101. When I went to the Boards Manager, scrolled down to the Aduino/Genuino section, clicked install and it did not work. Instead of installing it came up with this error message...

Error downloading https://github.com/01org/corelibs-arduino101/archive/1.6.4+1.68.zip
java.lang.RuntimeException: java.lang.Exception: Error downloading https://github.co/01org/corelibs-arduino101/archive/1.6.4+1.68.zip
     at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$20(ContributionManagerUI.java:176)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Error downloading https://github.com/01org/corelibs-arduino101/archive/1.6.4+1.68.zip
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:113)
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:67)
at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:103)
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$20(ContributionManagerUI.java:173)
... 1 more
Caused by: java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:170)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
at sun.security.ssl.InputRecord.read(InputRecord.java:503)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:170)
at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:111)
... 4 more

...If anyone knows how to fix this it would be great if you could help.
Feel free to let me know if you have been having this problems too.

Thankyou Everyone

Have you tried doing it a couple of times? Have you been able to successfully install other cores using Boards Manager? I did notice one strange thing about the error output:

ethanjjack:
java.lang.RuntimeException: java.lang.Exception: Error downloading https://github.co/01org/corelibs-arduino101/archive/1.6.4+1.68.zip

Tried here on Win7 x64 and no issues.

What is your OS etc.

Hi Pert, thankyou for your reply. I have tried installing many times with this core and with others after this issue first came up, and it did not work for any of them.

What did you think was strange about the error statement.

If you can't install any core than It's probably something to do with your firewall blocking the Arduino IDE from downloading. Try whitelisting the IDE in your firewall.

ethanjjack:
What did you think was strange about the error statement.

instead of
https://github.com/01org/corelibs-arduino101/archive/1.6.4+1.68.zip
even though in other parts of the error output the URL was correct.

Pert, I tried doing it on another computer and it worked but this was on the library computer.

I hope we end up figureing this out eventually Pert. I am very eager to use this board. If you could spread this issue it would be great thanks :slight_smile:

If this helps I also have another forum running on this from this ardess here:

thankyou for your help

Well as I said it's likely caused by the security settings on the library computer not allowing the IDE to download. If you can't change those settings then you could try installing the IDE in portable mode on a flash drive, plug that drive into the USB port on the library computer, and then run that copy of the IDE from the drive. It's quite possible that the security settings on that computer also would not allow this but it's worth a try.

  • If you're using Windows then download the "Windows ZIP file for non admin install" version.
  • Extract and move the IDE installation folder to the flash drive.
  • Create a folder named portable inside the Arduino IDE installation folder. This will cause the IDE to run in portable mode.
  • Run the IDE from the flash drive on a computer that allows Boards Manager installation.
  • File > Preferences > Sketchbook location - set the location to a folder on the flash drive
  • Install all boards from Boards Manager and libraries from Library Manager that you need.

Hi Pert. I turned firewall completely off and tried to download again but it is still the same as before, still won't download. Now I will try running the IDE off my flash drive...

I tried downloading the windows ZIP file for non admin install and I still can't download the core for the same reasons :frowning:

same error code too :frowning:

Error downloading https://github.com/01org/corelibs-arduino101/archive/1.6.4+1.68.zip
java.lang.RuntimeException: java.lang.Exception: Error downloading https://github.com/01org/corelibs-arduino101/archive/1.6.4+1.68.zip
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$20(ContributionManagerUI.java:176)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Error downloading https://github.com/01org/corelibs-arduino101/archive/1.6.4+1.68.zip
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:113)
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:67)
at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:103)
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$20(ContributionManagerUI.java:173)
... 1 more
Caused by: java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:170)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
at sun.security.ssl.InputRecord.read(InputRecord.java:503)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:170)
at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:111)
... 4 more

But Pert, I had an idea, mabye Java might have something to do with this whole issue.
And if this helps i'm using Arduino 1.6.9.
What do you think I should do next?

thanks again for your help :slight_smile:

You're supposed to install the core to your flash drive from the other computer that you were previously able to successfully install the Intel Curie Boards core on, not the library computer. Get your whole IDE installation complete on the flash drive and then you will not need to download anything using the Arduino IDE on the library computer. It looks like the library computer did let you run the IDE from the flash drive so I think this workaround will be possible.

OK
thankyou
:slight_smile:

Is there any way I could manually install the core without the boards manager?

Yes, you can just download the various files and manually install them. It's a bit complicated because you have to create the correct folder structure but I can help you out with it if you want to take that approach.

Hi Pert, I think I would like to try manually installing the core, if that is ok with you.
Could you please tell me how to do it.
Thankyou so much for helping me this whole time.
You have been a great help :slight_smile:

By the way I have given you karma.

Hi ethanjjack, sorry for the delay responding. I had a work deadline to meet. What operating system will you be using the manual installation on?

I am currently using Window 10.
It would be great if we could do the manual install with this version.
Also if you are refering to which version of IDE I am using, I am running version 1.6.9.
By the way Pert don't stress because you didn't reply early enough.
I don't care. I am happy enough to have your help.
And by the way, I kind of replyed a bit late too.

Regards From ethanjjack :slight_smile:

Installing "Intel Curie Boards" 1.0.6 On Windows

  1. Download the file from this URL:
    http://downloads.arduino.cc/packages/package_index.json
  2. Save the downloaded file to the folder at the following path:
    C:\Users\<username>\AppData\Local\Arduino15\
    
    (where <username> is your Windows username)
    :exclamation: If looking for it with your file browser or command line, note that the <!-- TODO: path --> folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
  3. Download the file from this URL:
    http://downloads.arduino.cc/packages/package_index.json.sig
  4. Save the downloaded file to the folder at the following path:
    C:\Users\<username>\AppData\Local\Arduino15\
    
  5. Create the folders for the following path:
    C:\Users\<username>\AppData\Local\Arduino15\packages\Intel\hardware\arc32\1.0.6\
    
  6. Download the file from this URL:
    https://github.com/01org/corelibs-arduino101/archive/1.6.9+1.74.zip
  7. Unzip the downloaded file to the folder at the following path:
    C:\Users\<username>\AppData\Local\Arduino15\packages\Intel\hardware\arc32\1.0.6\
    
  8. Create the folders for the following path:
    C:\Users\<username>\AppData\Local\Arduino15\packages\Intel\tools\arc-elf32\1.6.9+1.0.1\
    
  9. Download the file from this URL:
    https://downloadmirror.intel.com/25470/eng/arc-toolchain-windows-arcem-1.0.1.zip
  10. Unzip the downloaded file to the folder at the following path:
    C:\Users\<username>\AppData\Local\Arduino15\packages\Intel\tools\arc-elf32\1.6.9+1.0.1\
    
  11. Create the folders for the following path:
    C:\Users\<username>\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.9+1.24
    
  12. Download the file from this URL:
    https://github.com/01org/intel-arduino-tools/archive/1.6.9+1.24-windows.zip
  13. Unzip the downloaded file to the folder at the following path:
    C:\Users\<username>\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.9+1.24
    
  14. Find the file at the following path in Windows File Explorer and double click it:
    C:\Users\<username>\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.9+1.24\post_install.bat
    
  15. Restart Arduino IDE if it's running.

The Arduino/Genuino 101 board should now appear as an option in the Tools > Board menu

The folder structure created by following the instructions above should look like this:

Clipboard01.gif


The instructions above are for Arduino IDE 1.6.6 and greater. If you are using a previous version the only difference is the folders are under C:\Users\<username>\AppData\Roaming instead of C:\Users\<username>\AppData\Local


Installing Other Versions

You will probably want to repeat this process whenever a new version of Intel Curie Boards is released. Here's how you find the URLs to download these files:

  1. Open the package index that contains the installation data. It is at the following URL:
    http://downloads.arduino.cc/packages/package_index.json
  2. Find the entry in the package index file for the target version of the "Intel Curie Boards" platform.
  3. Download the platform archive file from the URL specified by the url key of the entry.
  4. Extract the downloaded file to the appropriate location.
  5. Find the entry in the package index file associated with a systems[*].host value of i686-mingw32 for each of the tool dependencies specified by the toolsDependencies field of the "Intel Curie Boards" platform entry.
  6. Download the archive files for each of the tool dependencies.
  7. Extract the downloaded files to the appropriate location.

You will need to adjust the folder structure specified in the 1.0.6 installation instructions to reflect the new version numbers.

Example

For example, the entry for the "Intel Curie Boards" platform version 1.0.6 looks like:

{
  "name": "Intel Curie Boards",
  "version": "1.0.6",
  "category": "Arduino Certified",
  "archiveFileName": "arduino101-1.0.6.zip",
  "architecture": "arc32",
  "url": "https://github.com/01org/corelibs-arduino101/archive/1.6.9+1.74.zip",
  "checksum": "SHA-256:c3d34679c18b34411bcfd55e09d3403ff372ff1ca1c6dcd26ec6b08f2b88fd7f",
  "size": 673874,
  "boards": [
    {
      "name": "Arduino/Genuino 101"
    }
  ],
  "toolsDependencies": [
    {
      "packager": "Intel",
      "version": "1.6.9+1.0.1",
      "name": "arc-elf32"
    },
    {
      "packager": "Intel",
      "version": "1.6.9+1.24",
      "name": "arduino101load"
    }
  ]
}

The url key specifies that the platform archive file can be downloaded from this URL:

https://github.com/01org/corelibs-arduino101/archive/1.6.9+1.74.zip

There are also two tools dependencies specified by the toolsDependencies field:

  • Intel:arc-elf32 version 1.6.9+1.0.1
  • Intel:arduino101load version 1.6.9+1.24

You will find the entries for those tools in the package index as well. For example, here is the entry for Intel:arc-elf32 version 1.6.9+1.0.1:

{
  "name": "arc-elf32",
  "version": "1.6.9+1.0.1",
  "systems": [
    {
      "url": "https://downloadmirror.intel.com/25470/eng/arc-toolchain-windows-arcem-1.0.1.zip",
      "checksum": "SHA-256:59614534473a55b1d964e1f4fa14f5e01e6aaa426d1e8319a8293ffa6576f58e",
      "host": "i686-mingw32",
      "archiveFileName": "arc-toolchain-windows-arcem-1.0.1.zip",
      "size": 172455793
    },
    {
      "url": "https://downloadmirror.intel.com/25470/eng/arc-toolchain-osx-arcem-1.0.1.tar.bz2",
      "checksum": "SHA-256:456995157cf1549073b9330a114abb25f056352278c107e25b3cc79443040a44",
      "host": "i386-apple-darwin11",
      "archiveFileName": "arc-toolchain-osx-arcem-1.0.1.tar.bz2",
      "size": 30014953
    },
    {
      "url": "https://downloadmirror.intel.com/25470/eng/arc-toolchain-linux32-arcem-1.0.1.tar.bz2",
      "checksum": "SHA-256:6aa92f239998d10992592cc16a16352bb1cce75a6bff1c72b8be18d939182915",
      "host": "i686-linux-gnu",
      "archiveFileName": "arc-toolchain-linux32-arcem-1.0.1.tar.bz2",
      "size": 116481978
    },
    {
      "url": "https://downloadmirror.intel.com/25470/eng/arc-toolchain-linux64-arcem-1.0.1.tar.bz2",
      "checksum": "SHA-256:0ee03cecc27471eae58cb557a105c5edaea45b49557c86867fa436a13681392c",
      "host": "x86_64-linux-gnu",
      "archiveFileName": "arc-toolchain-linux64-arcem-1.0.1.tar.bz2",
      "size": 129250679
    }
  ]
}

The download URL is specified by the systems[*].url key for the object with host value of i686-mingw32:

https://downloadmirror.intel.com/25470/eng/arc-toolchain-windows-arcem-1.0.1.zip

Installing On Other Operating Systems

The instructions above were specific to Windows. Some small adjustments are needed to install for other operating systems:

Data Directory Location

The files are installed under C:\Users\<username>\AppData\Local\Arduino15\ on Windows. The equivalent folder is in the following location on other operating systems:

  • macOS: /Users/<username>/Library/Arduino15
  • Linux: /home/<username>/.arduino15 (a.k.a. ~/.arduino15)

systems[*].host Value For Tool Dependencies

The tool dependencies data in the package index file for Windows was associated with a systems[*].host value of i686-mingw32. The equivalent value for other operating systems:

  • macOS: i386-apple-darwin11
  • Linux 64 bit: x86_64-linux-gnu
  • Linux 32 bit: i686-linux-gnu

Hi Pert thanks for posting this.
Although it is quite tricky to understand :(, I will now try to follow these steps ...