I have done this, and now instead of having the “package_index” error than before. It is now saying
“Error downloading https://github.com/sparkfun/Arduino_Apo … eta.tar.gz”
this seems to be a common problem on the internet but I none of the suggested solutions have been working.