巧克力不工作

问题描述 投票:1回答:2

当我使用Chocolatey安装像choco install freshplayerplugin这样的东西时。我收到follwinf错误:

Chocolatey v0.10.3
Installing the following packages:
flashplayerplugin
By installing you accept licenses for the packages.
flashplayerplugin 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/"

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - flashplayerplugin - flashplayerplugin 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/"
powershell chocolatey
2个回答
1
投票

当您看到类似的内容时,应首先检查以排除阻止此特定位置的代理。

大约90%的时间,您需要设置代理。

如果不是这样,您可以随时使用Fiddler来确定问题所在。

此外,最好在超级用户或服务器故障(这个问题被投票关闭b / c而不是关于开发)或接触规定的Chocolatey频道(Gitter或电子邮件)时询问。 HTH


0
投票

问题是chocolatey无法连接到远程服务器。在我的情况下,问题发生是因为Nuget包管理器的代理配置。我解决了以下问题:1。找到NuGet.Config文件。 NuGet.Config可能位于基于NuGet版本的不同位置。在我的情况下,它位于%appdata%\ NuGet。您可以通过在C盘内搜索“NuGet.Config”找到它。 2打开NuGet.Config文件,确保代理配置正确或在不需要代理时清除。在我的情况下,我曾经配置过不再需要的NuGet代理。因为我没有在代理背后工作。所以我删除了代理部分:

<configuration>
    <!-- stuff -->
    <config>
        <add key="http_proxy" value="http://192.168.7.7:3128" />
        <add key="https_proxy" value="http://192.168.7.7:3128" />
    </config>
    <!-- stuff -->

因此,删除代理配置标记或更正代理值。 3.保存的更改重新启动cmd并再次运行choco install命令,一切运行良好。希望这也会对你有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.