Chocolatey installation error on Windows 7 - using Prompt or Powershell as Command Adm

Asked

Viewed 160 times

0

Hello, I’m having trouble installing Chocolatey in my Win7. I use the code

@"%Systemroot% System32 Windowspowershell v1.0 powershell.exe" -Noprofile -Inputformat None -Executionpolicy Bypass -Command "iex ((New-Object System.Net.Webclient).Downloadstring('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE% Chocolatey bin"

And the Command Prompt returns me the following error:

Exception when calling "Downloadstring" with "1" argument(s): "The underlying connection was closed: Unexpected error on a shipment." Online:1 character:54

  • iex ((New-Object System.Net.Webclient). Downloadstring <<< ('https://Chocolat ey.org/install.ps1'))
    • Categoryinfo : Notspecified: (:) [], Methodinvocationexception
    • Fullyqualifiederrorid : Dotnetmethodexception I did not understand the mistake very well. If you can help me I will be very grateful!

inserir a descrição da imagem aqui

1 answer

0

I got this same error message, searched the Chocolately documentation and found some alternative options for installation. I downloaded it and managed to install it.

On the link page search for "Install downloaded Nuget package from Powershell"

  1. First I downloaded the link, I downloaded the file "Chocolatey.0.10.16-beta-20200806.nupkg";
  2. I will rename the file "Chocolatey.0.10.16-beta-20200806.zip" and extract;
  3. I opened Powershell as an administrator;
  4. I accessed the folder "C: MINHA_PASTA Downloads Chocolately Chocolatey.0.10.16-beta-20200806 tools"
  5. I inserted it in the command line: "& . chocolateyInstall.ps1"

And installed correctly. This step by step is in the documentation mentioned.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.