How do I resolve the ConnectionResetError and CondaHTTPError when attempting to update conda despite multiple retries and Anaconda reinstalls?

4 hours ago 2
ARTICLE AD BOX

Error Screenshot

I have been facing the following persistent issue while attempting to update conda (conda update --all) for the past few hours.

EDIT: I am using my home network, and I am not using a proxy. I am only using the native Windows Firewall, which has not caused any problems when updating conda before. I have switched off Windows Firewall and also added https://repo.anaconda.com to the list of Trusted Sites in my Internet options. But this has not helped.

Collecting package metadata (repodata.json): - Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10t \ Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)': /pkgs/main/noarch/repodata.json.t Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)': /pkgs/r/noarch/repodata.json.zst / Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)': /pkgs/r/noarch/repodata.json.zst - Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)': /pkgs/msys2/noarch/repodata.jsont Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)': /pkgs/main/noarch/repodata.json.zst \ Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)': /pkgs/msys2/win-64/repodata.jsont | Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)': /pkgs/msys2/win-64/repodata.jsont | Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)': /pkgs/main/noarch/repodata.json.t Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)': /pkgs/r/noarch/repodata.json.zst - Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)': /pkgs/msys2/noarch/repodata.jsont \ Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)': /pkgs/msys2/win-64/repodata.jsont failed CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/noarch/repodata.json> Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. If your current network has https://repo.anaconda.com blocked, please file a support request with your network engineering team. 'https//repo.anaconda.com/pkgs/main/noarch'

I have also attempted to uninstall and reinstall Anaconda various times. After every reinstall, I copied the files below from anaconda3\Library\bin and pasted them in anaconda3/DLLs:

- libcrypto-1_1-x64.dll - libssl-1_1-x64.dll

However, nothing has helped.

EDIT: I don't feel safe to execute conda config --set ssl_verify no because it might make my system more vulnerable.

Any advice/help would be greatly appreciated.

Thank you.

Read Entire Article