[英]Package retrieving error is occurred while installing Chocolatey packages
我已经使用 nuget.exe 安装了 Chocolatey,并尝试下载 Ruby package。
但是,安装失败并显示消息The package was not found with the source(s) listed.
C:\Users\nblizz>sudo choco install ruby -y
Chocolatey v0.10.14
Installing the following packages:
ruby
By installing you accept licenses for the packages.
Error retrieving packages from source 'https://chocolatey.org/api/v2/':
The underlying connection was closed: An unexpected error occurred on a send.
ruby not installed. The package was not found with the source(s) listed.
Source(s): 'https://chocolatey.org/api/v2/'
NOTE: When you specify explicit sources, it overrides default sources.
If the package version is a prerelease and you didn't specify `--pre`,
the package may not be found.
Please see https://chocolatey.org/docs/troubleshooting for more
assistance.
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (c:\ProgramData\chocoportable\logs\chocolatey.log).
Failures
- ruby - ruby not installed. The package was not found with the source(s) listed.
Source(s): 'https://chocolatey.org/api/v2/'
NOTE: When you specify explicit sources, it overrides default sources.
If the package version is a prerelease and you didn't specify `--pre`,
the package may not be found.
Please see https://chocolatey.org/docs/troubleshooting for more
assistance.
我已经在以管理员模式运行的命令提示符下进行了尝试。 问题是什么? Ruby package 的安装命令是choco install ruby
我按原样输入。
我在我的情况下想通了 - 我没有使用 package 的正确名称。 确保您使用的是全名,如果您收到此错误,请在网站上验证它( https://chocolatey.org/packages/ )
以管理员身份运行cmd
然后:
choco install elixir
由于我的代理软件,我遇到了这个问题。
然后我把它关了,choco 工作了
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.