我已经尝试了https://chocolatey.org/install
上的所有内容以下是我最强烈推荐使用的方法的错误:
根据他们的说明,我使用PowerShell
'Set-ExecutionPolicy AllSigned'
我也尝试过从PowerShell执行安装
具有以下结果:
我还尝试了“完全脱机安装”,其中涉及手动下载和解压缩nupkg文件,但结果与上述类似。您对我收到的错误有任何了解吗?如何安装巧克力呢?
提前感谢您提出的任何想法。
UPDATE:Click Here用于巧克力日志文件。以下代码段满足SO要求:
2017-04-26 11:47:33,091 [DEBUG] - Configuration:
CommandName='install'|
CacheLocation='C:\Users\PARAGON\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='False'|Verbose='False'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='choco'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='choco'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.2.9200.0'|
Information.PlatformName='Windows 8'|
Information.ChocolateyVersion='0.10.5.0'|
Information.ChocolateyProductVersion='0.10.5'|
Information.FullName='choco, Version=0.10.5.0, Culture=neutral,
PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.IsUserAdministrator='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|
ListCommand.Exact='False'|ListCommand.ByIdOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
FeatureCommand.Command='unknown'|
ConfigCommand.Command='unknown'|PinCommand.Command='unknown'|
Proxy.BypassOnLocal='True'| 2017-04-26 11:47:33,095 [DEBUG] - _
Chocolatey:ChocolateyInstallCommand - Normal Run Mode _ 2017-04-26
11:47:33,102 [INFO ] - Installing the following packages: 2017-04-26
11:47:33,111 [INFO ] - choco 2017-04-26 11:47:33,119 [INFO ] - By
installing you accept licenses for the packages. 2017-04-26
11:47:33,517 [WARN ] - [NuGet] An error occurred while loading
packages from 'https://chocolatey.org/api/v2/': The remote server
returned an error: (403) Forbidden. 2017-04-26 11:47:33,531 [ERROR] -
choco not installed. The package was not found with the source(s)
listed. If you specified a particular version and are receiving this
message, it is possible that the package name exists but the version
does not. Version: "" Source(s): "https://chocolatey.org/api/v2/"
2017-04-26 11:47:33,558 [WARN ] - Chocolatey installed 0/1 packages.
1 packages failed. See the log for details
(C:\ProgramData\chocolatey\logs\chocolatey.log). 2017-04-26
11:47:33,569 [INFO ] - 2017-04-26 11:47:33,577 [ERROR] - Failures
2017-04-26 11:47:33,586 [ERROR] - - choco - choco not installed. The
package was not found with the source(s) listed. If you specified a
particular version and are receiving this message, it is possible that
the package name exists but the version does not. Version: ""
Source(s): "https://chocolatey.org/api/v2/" 2017-04-26 11:47:33,596
[WARN ] - Enjoy using Chocolatey? Explore more amazing features to
take your experience to the next level at
https://chocolatey.org/compare 2017-04-26 11:47:33,606 [DEBUG] -
Sending message 'PostRunMessage' out if there are subscribers...
2017-04-26 11:47:33,613 [DEBUG] - Exiting with 1
答案 0 :(得分:0)
我的猜测是,您很可能遇到SSL / TLS问题。我们刚刚在周一关闭了证书,旧证书在周二到期。我的猜测是你需要更新你的证书,或者你出于某种原因缓存旧证书。
另一种可能性是阻止你接触的方式有代理。
答案 1 :(得分:0)
别忘了你的chocolatey.config。看来你被封锁了但是对于访问这个问题的任何人来说,这些都是你需要填写的相关密钥。除非你是个坏男孩,否则你的IP黑名单。
<config>
<add key="cacheLocation" value="" description="Cache location if not TEMP folder." />
<add key="containsLegacyPackageInstalls" value="true" description="Install has packages installed prior to 0.9.9 series." />
<add key="commandExecutionTimeoutSeconds" value="2700" description="Default timeout for command execution. '0' for infinite (starting in 0.10.4)." />
<add key="proxy" value="" description="Explicit proxy location. Available in 0.9.9.9+." />
<add key="proxyUser" value="" description="Optional proxy user. Available in 0.9.9.9+." />
<add key="proxyPassword" value="" description="Optional proxy password. Encrypted. Available in 0.9.9.9+." />
<add key="webRequestTimeoutSeconds" value="30" description="Default timeout for web requests. Available in 0.9.10+." />
<add key="proxyBypassList" value="" description="Optional proxy bypass list. Comma separated. Available in 0.10.4+." />
<add key="proxyBypassOnLocal" value="true" description="Bypass proxy for local connections. Available in 0.10.4+." />