3

I'm a wizard at Linux/Unix-based OSes, but I'm rubbish at Windows and the like. To be able to install package via a CLI, which I prefer to graphical installers, I installed Chocolatey onto my Windows XP SP3 system. Wishing to install the Elixir programming language, which I favour to some others, I run cinst elixir. It succeeded to install Erlang (a dependency for Elixir), but then failed to install Elixir itself. The console error message is as follows:

 Exception calling "GetResponse" with "0" argument(s): "The underlying connectio

 n was closed: An unexpected error occurred on a send."
 At C:\Documents and Settings\All Users\Application Data\chocolatey\helpers\func

 tions\Get-WebHeaders.ps1:92 char:37
 +     $response = $request.GetResponse <<<< ();
     + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordE

    xception
     + FullyQualifiedErrorId : DotNetMethodException
The install of elixir was NOT successful.
Error while running 'C:\Documents and Settings\All Users\Application Data\chocol
atey\lib\Elixir\tools\chocolateyInstall.ps1'.
 See log for details.

Chocolatey installed 0/1 package(s). 1 package(s) failed.
 See the log for details (C:\Documents and Settings\All Users\Application Data\c
hocolatey\logs\chocolatey.log).
Failures:
 - elixir

A pastebin of the log file can be found here.

As I've never used this tool before, I need to know - what am I doing wrong?

4

Technically it passes installing Elixir - note the lovely green ball in the image: Green means good install

The green ball is also a link. Follow this Gist link to see the install results. I also just ran it while writing this answer. It installs just fine on supported Windows versions.

Two things are at play here (well, really just one thing):

  1. Windows XP. Technically Chocolatey is not supported on Windows XP (Microsoft released it over 14 years ago and ended support for it April 2014). Perhaps we need to officially state that somewhere (I looked around and while we've stated it before, I don't technically see it in our documentation).
  2. Downloading from GitHub requires better ciphers. It's not Chocolatey failing, it's likely the ciphers built-in to Windows XP not allowing it to download Elixir. I see Elixir downloads from GitHub, so it's quite likely that's why it doesn't work for you. Choco does attempt to fallback to SSL v3 when TLS fails, however the fallback likely doesn't even work because GitHub may have disabled that due to POODLE (the article is from CloudFlare, but it is a great explanation). See Windows support for SSL/TLS and GitHub's article disabling Windows XP and recommending upgrade to newer versions of Windows.

Also, another thing worth mentioning - Chocolatey has more detailed logs. If you don’t want to go grab the log file, you can also use -dv in your switches and just copy the screen output. Should you want to use a GUI interface in Windows, we also have ChocolateyGUI.

I'd highly recommend you upgrade to a newer and more secure Windows OS. Everything at and beyond Windows 7/Windows 2008 is a much better OS than Windows XP/2003. You can't go wrong in Windows 7 or Windows 10. Windows 8, well… That’s another story for another day.

Should you decide not to upgrade for now, you can likely install Chrome/Firefox and download and manually install Elixir from GitHub.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.