Error downloading http://arduino.esp8266.com/stable/package_esp8266com_index.jso

Can't really help as I don't use ESP.

First thing to try is to access the URL in a browser. If that gives errors, it's a problem with the esp site. If that gives you something like below, the problem is elsewhere

packages	[…]