首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装Chocolatey包时发生包检索错误

安装Chocolatey包时发生包检索错误
EN

Stack Overflow用户
提问于 2019-11-12 00:46:15
回答 2查看 5.7K关注 0票数 1

我已经用nuget.exe安装了Chocolatey并尝试下载Ruby包。

但是,安装失败,并显示消息The package was not found with the source(s) listed.

代码语言:javascript
复制
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包的安装命令是choco install ruby,我按原样输入了它。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2019-11-26 18:47:06

我在我的案例中发现了这一点--我没有使用正确的包名称。确保您使用的是全名,如果出现此错误,请在网站(https://chocolatey.org/packages/)上进行验证

票数 1
EN

Stack Overflow用户

发布于 2021-08-10 07:08:22

以管理员身份运行cmd,然后:

choco install elixir

票数 -2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58805442

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档