Platform installation fails: "proxyconnect tcp: dial tcp: lookup _: no such host:"

Continuing the discussion from Cannot install esp32 on Arduino IDE:

Similar errors when attempting to install using version 2.3.2

Some indexes could not be updated. Get "https://downloads.arduino.cc/packages/package_index.tar.bz2": proxyconnect tcp: dial tcp: lookup _: no such host: https://downloads.arduino.cc/packages/package_index.tar.bz2 Get "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json": proxyconnect tcp: dial tcp: lookup _: no such host: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

1 Like

I was having this exact problem also: I found this thread and was able to fix it.

I've cut and pasted the relevent discussion (contained in the thread above) below.

If you were using a proxy server you would probably know about it so we'll proceed on the assumption that no proxy configuration is required.

This error is caused by selecting the "Manual proxy configuration" radio button in the Arduino IDE preferences. The solution to the error is to disable the proxy configuration in the IDE. Unfortunately there is a bug in Arduino IDE 2.x that makes it impossible to use the Arduino IDE GUI set the preference back to "No proxy" after you have set it to "Manual proxy configuration". So you must edit the preferences file directly.

I'll provide instructions for doing that:

  1. Select File > Quit from the Arduino IDE menus if it is running.
  2. Use any text editor to open the file at the following path:
C:\Users\<username>\.arduinoIDE\arduino-cli.yaml
  1. Delete the line from the file that looks like this:
  proxy: http://_/
  1. Save the file.
  2. Start the Arduino IDE.

Now try installing the "ArduinoJson" library again. You should now no longer encounter that see that "proxyconnect tcp: dial tcp: lookup _: no such host" error.


Please let me know if you have any questions or problems while following those instructions.

4 Likes

What a long posting for "delete this line"

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