2014-04-01 70 views
1

我正在運行Windows企業8.1。我可以在Windows Server 2008 R2上執行以下操作,但無法在Windows Enterprise 8.1上執行此操作。我已成功安裝巧克力,並試圖運行「cinst poshgit」。當我執行程序失敗時顯示以下消息:無法連接到在'https://chocolatey.org/api/v2/'處指定的Feed。無法下載文件巧克力

下面是日誌文件

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命令我得到「從遠程終端接收到了致命的警報。TLS協議定義的致命警報代碼是49。「

任何幫助,非常感謝。

+0

當你直接去到h會發生什麼ttps://chocolatey.org/api/v2/? – ferventcoder

+0

在瀏覽器中,我可以直接進入https://chocolatey.org/api/v2/,並且看到xml文件正常。昨天晚上,當我從公司防火牆試用它時,它運行良好。我懷疑我的公司防火牆正在阻止它。奇怪的是,在網絡中運行Server 2008 R2的客戶端可以使其工作。 – mikemurf22

+0

我很感興趣,知道它是否與Win 8.1「ENTERPRISE」有關。我們有很多人已經使用Win 8.1或2012 R2,但沒有看到這些問題。 – ferventcoder

回答

1

打開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>

+1

chocolatey.config位於何處?更新:在C:\ ProgramData \ chocolatey \ config中找到它 – Benjin