I’m trying to download Chocolatey in order to download VS (visual studio) ,I opened power shell (run as administrator) and then command prompt (run as administrator) ,here is what I got after downloading Chocolatey :
PS C:WINDOWSsystem32> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Forcing web requests to allow TLS v1.2 (Required for requests to Chocolatey.org)
Getting latest version of the Chocolatey package for download.
Not using proxy.
Getting Chocolatey from https://community.chocolatey.org/api/v2/package/chocolatey/2.2.2.
Downloading https://community.chocolatey.org/api/v2/package/chocolatey/2.2.2 to C:UsersAdminAppDataLocalTempchocolateychocoInstallchocolatey.zip
Not using proxy.
Extracting C:UsersAdminAppDataLocalTempchocolateychocoInstallchocolatey.zip to C:UsersAdminAppDataLocalTempchocolateychocoInstall
Installing Chocolatey on the local machine
Creating ChocolateyInstall as an environment variable (targeting 'Machine')
Setting ChocolateyInstall to 'C:ProgramDatachocolatey'
WARNING: It's very likely you will need to close and reopen your shell
before you can use choco.
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:ProgramDatachocolateylib'
(i.e. C:ProgramDatachocolateylibyourPackageName).
A shim file for the command line goes to 'C:ProgramDatachocolateybin'
and points to an executable in 'C:ProgramDatachocolateylibyourPackageName'.
Creating Chocolatey folders if they do not already exist.
chocolatey.nupkg file not installed in lib.
Attempting to locate it from bootstrapper.
WARNING: Not setting tab completion: Profile file does not exist at
'C:UsersAdminOneDriveמסמכיםWindowsPowerShellMicrosoft.PowerShell_profile.ps1'.
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
Ensuring Chocolatey commands are on the path
Ensuring chocolatey.nupkg is in the lib folder
PS C:WINDOWSsystem32>
and here is what I got after downloading VS :
C:WINDOWSsystem32>choco install vs
Chocolatey v2.2.2
Installing the following packages:
vs
By installing, you accept licenses for the packages.
vs not installed. The package was not found with the source(s) listed.
Source(s): 'https://community.chocolatey.org/api/v2/'
NOTE: When you specify explicit sources, it overrides default sources.
If the package version is a prerelease and you didn't specify `--pre`,
the package may not be found.
Please see https://docs.chocolatey.org/en-us/troubleshooting for more
assistance.
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:ProgramDatachocolateylogschocolatey.log).
Failures
- vs - vs not installed. The package was not found with the source(s) listed.
Source(s): 'https://community.chocolatey.org/api/v2/'
NOTE: When you specify explicit sources, it overrides default sources.
If the package version is a prerelease and you didn't specify `--pre`,
the package may not be found.
Please see https://docs.chocolatey.org/en-us/troubleshooting for more
assistance.
C:WINDOWSsystem32>
so what is the problem here ?why VS is failing to be downloaded ?