Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
311 views
in Technique[技术] by (71.8m points)

chocolatey - 无法获取Chocolatey下载文件(Can't get Chocolatey to download files)

I am running Windows Enterprise 8.1.

(我正在运行Windows Enterprise 8.1。)

I am able to do the following on Windows Server 2008 R2, but I can't do it on Windows Enterprise 8.1.

(我可以在Windows Server 2008 R2上执行以下操作,但不能在Windows Enterprise 8.1上执行以下操作。)

I have successfully installed Chocolatey and am trying to run "cinst poshgit".

(我已经成功安装Chocolatey,并尝试运行“ cinst poshgit”。)

When I do, the program fails with the following message:

(当我这样做时,程序将失败,并显示以下消息:)

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

(无法连接到“ https://chocolatey.org/api/v2/ ”中指定的供稿。)

Below is the log file

(下面是日志文件)

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:Chocolateylib".
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:Chocolateychocolateyinstall
uget.exe' install poshgit -Outputdirectory "C:Chocolateylib" -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.

Also, when I try to run any cinst commands in the system event viewer I get:

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

A fatal alert was received from the remote endpoint.

(从远程端点收到了致命警报。)

The TLS protocol defined fatal alert code is 49.

(TLS协议定义的致命警报代码为49。)

  ask by mikemurf22 translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Open chocolatey.config and change https to http

(打开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> 


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...