Library install fails on new IDE installation

I'm trying to set up the Arduino IDE (2.1.0) on a new Macbook.

However, when I download the .dmg & run it, it gives me the following output:

Platform arduino:avr@1.8.6 already installed
Downloading TFT@1.0.6
TFT@1.0.6
Installing TFT@1.0.6
Failed to install library: Arduino_BuiltIn:1.0.0.
Error: 13 INTERNAL: Library install failed: testing local archive integrity: testing archive size: fetched archive size differs from size specified in index: 50669 != 50189

I've tried removing & reinstalling a couple times now, but it hasn't made a difference. I can't seem to find any mention of this issue anywhere online either.

Anyone know what I should do? Thanks!

Hi @schreiberito. On the first run after a fresh installation, Arduino IDE 2.x installs some fundamental "built-in" Arduino libraries. These libraries are downloaded from Arduino's download server and then the downloaded file is validated to make sure it wasn't corrupted. One of these validations is checking the downloaded file size is as expected.

The file size should definitely be 50189 bytes, so the error message is correct in the case where the downloaded file size is instead 50669 bytes as appears to be the case for you. The question is: why is the file size different? Even if there was a transient corruption of the download once, Arduino IDE will redownload the file the next time you start it so that should not cause a situation where the failed validation is persistent.

I would be interested in taking a look at this file to see if I can find some clue about what is happening. Please attach the file in a reply here:

  1. Open a forum reply here by clicking the Reply button.
  2. Click the "Upload" icon (image) on the post composer toolbar:
    Upload icon on toolbar
    A dialog will open.
  3. In the dialog, select the file at this path:
    /Users/<username>/Library/Arduino15/staging/libraries/TFT-1.0.6.zip
    
    (where <username> is your macOS username)
    :exclamation: The /Users/<username>/Library folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.
  4. Click the Open button.
  5. Click the Reply button to publish the post.

Alternatively, instead of using the "Upload" icon on the post composer toolbar as described above, you can simply drag and drop the TFT-1.0.6.zip file onto the post composer field to attach it.

Well unfortunately, I do not have the original file to share.

Fortunately, I did find out what the issue was!

Our IT system apparently scans every file that's downloaded & I was told that process can occasionally change the file a tiny bit, which is what looks like happened here. I temporarily disabled that tool, opened the IDE again, & it installed with no issues!

I'm glad you were able to find the cause of the error. Thanks for taking the time to post an update with your findings!

Regards,
Per

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