-
Notifications
You must be signed in to change notification settings - Fork 930
Open
Labels
Milestone
Description
Checklist
- I confirm there are no unresolved issues reported on the Chocolatey Status page.
- I have verified this is the correct repository for opening this issue.
- I have verified no other issues exist related to my problem.
- I have verified this is not an issue for a specific package.
- I have verified this issue is not security related.
- I confirm I am using official, and not unofficial, or modified, Chocolatey products.
What You Are Seeing?
Chocolatey's install.ps1
cant' download required .net package behind proxy.
What is Expected?
Choco can download required .net package while behind proxy.
How Did You Get This To Happen?
Got script from documentation https://docs.chocolatey.org/en-us/choco/setup/#completely-offline-install
Also tried to modify "online" script - the same result.
System Details
Windows server 2019 (not relevant)
Installed Packages
Not relevant, none.
Output Log
DEBUG: Using default repository authentication credentials.
DEBUG: Using explicit proxy server 'http://local-proxy-url:3128'.
Querying latest package from https://local-repo-url/Packages()?$filter=(Id%20eq%20%27chocolatey%27)%20and%20IsLatestVersion
Downloading http://local-repo-url/chocolatey/2.5.0 to C:\ProgramData\choco-cache\chocolatey.nupkg
d----- 8/14/2025 1:46 PM chocInstall
Extracting C:\ProgramData\choco-cache\chocolatey\chocInstall\chocolatey.zip to C:\ProgramData\choco-cache\chocolatey\chocInstall...
Installing chocolatey on this machine
DEBUG: Host version is 5.1.17763.7671, PowerShell Version is '5.1.17763.7671'
and CLR Version is '4.0.30319.42000'.
DEBUG: Cmdlets exported from Chocolatey.PowerShell.dll
DEBUG: Get-EnvironmentVariable
DEBUG: Get-EnvironmentVariableNames
DEBUG: Install-ChocolateyPath
DEBUG: Set-EnvironmentVariable
DEBUG: Test-ProcessAdminRights
DEBUG: Uninstall-ChocolateyPath
DEBUG: Update-SessionEnvironment
DEBUG: Install-DotNet48IfMissing called with $forceFxInstall=False
The registry key for .Net 4.8 was not found or this is forced
Downloading 'https://download.visualstudio.microsoft.com/download/pr/2d6bb6b2-226a-4baa-bdec-798822606ff1/8494001c276a4b96804cde7829c04d7f/ndp48-x86-x64-allos-enu.exe' to 'C:\ProgramData\choco-cache\ndp48-x86-x64-allos-enu.exe' - the installer is 100+ MBs, so this could take a while on a slow connection.
Initialize-Chocolatey : Exception calling "DownloadFile" with "2" argument(s):
"Unable to connect to the remote server"
At C:\ProgramData\choco-cache\chocolatey\chocInstall\tools\chocolateyInstall.ps
1:76 char:1
+ Initialize-Chocolatey
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Initialize-Chocolatey], Metho
dInvocationException
+ FullyQualifiedErrorId : WebException,Initialize-Chocolatey
Additional Context
No response
smsteel