The Error Message: When I run the command arduino-cli core install rak_rui:stm32, I get the following error:
Installing rak_rui:arm-none-eabi-gcc@9-2019q4...Error during install: Cannot install tool rak_rui:arm-none-eabi-gcc@9-2019q4: testing local archive integrity: testing archive checksum: archive hash differs from hash in index
Steps I have already tried:
Cleaned the staging cache: I deleted all files in ~/.arduino15/staging/packages/* to ensure there are no corrupted downloads.
Updated index: Ran arduino-cli core update-index before retrying the installation.
Network check: Verified the internet connection and tried without any proxy/VPN.
Despite these steps, the “archive hash differs from hash in index” error persists. This suggests there might be a mismatch between the actual file hosted on the server and the hash value defined in the package_rakwireless_com_rui_index.json file for the Linux platform.
Could you please verify if the JSON index file or the hosted archive for arm-none-eabi-gcc@9-2019q4 has been updated recently? Any guidance or workaround to bypass this checksum check or manually install the tool would be greatly appreciated.
I’m having a similar issue with the RAK11720. The same file is causing the issue ( arm-none-eabi-gcc@9-2019q4) and if I look in the staging downloads, the downloaded file is very small. Inspecting it in a text editor gives the following: