gpt4 book ai didi

chocolatey - 无法让 Chocolatey 下载文件

转载 作者:行者123 更新时间:2023-12-05 08:16:36 25 4
gpt4 key购买 nike

我正在运行 Windows Enterprise 8.1。我可以在 Windows Server 2008 R2 上执行以下操作,但不能在 Windows Enterprise 8.1 上执行。我已成功安装 Chocolatey 并正在尝试运行“cinst poshgit”。当我这样做时,程序失败并显示以下消息:

Could not connect to the feed specified at 'https://chocolatey.org/api/v2/'.

下面是日志文件

20140401-13:21:22 [CHOCO] ################################################################################
20140401-13:21:22 [CHOCO] # Going Chocolatey on 2014-04-01 13:21:22Z #
20140401-13:21:22 [CHOCO] ################################################################################
20140401-13:21:22 [DEBUG] Arguments: $command = 'install'|$packageNames='poshgit'|$source=''|$version=''|$allVersions=False|$InstallArguments=''|$overrideArguments=False|$force=False|$prerelease=False|$localonly=False|$verbosity=False|$debug=False|$name=''|$ignoreDependencies=False|$forceX86=False|$packageParameters=''|PowerShellVersion=4.0
20140401-13:21:22 [DEBUG] Invoke-ChocolateyFunction is calling: $ChocoFunction='Chocolatey-Install'|@paramlist='@paramlist'
20140401-13:21:22 [DEBUG] Running 'Chocolatey-Install' for 'poshgit' with source: '', version: '', installerArguments:''
20140401-13:21:22 [DEBUG] Running 'Chocolatey-NuGet' for poshgit with source:''. Force? False
20140401-13:21:22 [CHOCO] Chocolatey (v0.9.8.23) is installing 'poshgit' and dependencies. By installing you accept the license for 'poshgit' and each dependency you are installing.
20140401-13:21:22 [DEBUG] Installing packages to "C:\Chocolatey\lib".
20140401-13:21:22 [DEBUG] Running 'Run-NuGet' for poshgit with source: '', version:''
20140401-13:21:22 [DEBUG] ___ NuGet ____
20140401-13:21:22 [DEBUG] Running 'Get-ConfigValue' with configValue:'useNuGetForSources'
20140401-13:21:22 [DEBUG] Running 'Get-UserConfigValue' with configValue:'useNuGetForSources'
20140401-13:21:22 [DEBUG] After checking the user config the value of 'useNuGetForSources' is ''
20140401-13:21:23 [DEBUG] Value not found in the user config file - checking the global config
20140401-13:21:23 [DEBUG] Running 'Get-GlobalConfigValue' with configValue:'useNuGetForSources'
20140401-13:21:23 [DEBUG] After checking the global config the value of 'useNuGetForSources' is 'false'
20140401-13:21:23 [DEBUG] Running 'Get-UserConfigValue' with configValue:'sources'
20140401-13:21:23 [DEBUG] Running 'Get-GlobalConfigValue' with configValue:'sources'
20140401-13:21:23 [DEBUG] Using global sources
20140401-13:21:23 [DEBUG] Using '-Source "https://chocolatey.org/api/v2/" ' as the source arguments
20140401-13:21:23 [DEBUG] Calling 'C:\Chocolatey\chocolateyinstall\nuget.exe' install poshgit -Outputdirectory "C:\Chocolatey\lib" -Source "https://chocolatey.org/api/v2/" -NonInteractive -NoCache
20140401-13:21:24 [DEBUG]
20140401-13:21:25 [DEBUG] Caught 'Could not connect to the feed specified at 'https://chocolatey.org/api/v2/'. Please verify that the package source (located in the Package Manager Settings) is valid and ensure your network connectivity.'
20140401-13:21:25 [CHOCO] Could not connect to the feed specified at 'https://chocolatey.org/api/v2/'. Please verify that the package source (located in the Package Manager Settings) is valid and ensure your network connectivity.
20140401-13:21:25 [CHOCO] Command 'install' failed (sometimes this indicates a partial failure). Additional info/packages: poshgit
20140401-13:21:25 [DEBUG] Exiting with non-zero exit code.

此外,当我尝试在系统事件查看器中运行任何 cinst 命令时,我得到:

A fatal alert was received from the remote endpoint. The TLS protocol defined fatal alert code is 49.

最佳答案

打开 chocolatey.config 并将 https 更改为 http

<?xml version="1.0"?>
<chocolatey>
<useNuGetForSources>false</useNuGetForSources>
<checksumFiles>true</checksumFiles>
<virusCheck>false</virusCheck>
<cacheLocation></cacheLocation>
<ksMessage>false</ksMessage>
<sources>
<source id="chocolatey" value="http://chocolatey.org/api/v2/" />
</sources>
</chocolatey>

关于chocolatey - 无法让 Chocolatey 下载文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22792955/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com