【问题标题】:Nuget and "Unable to load the service index" [duplicate]Nuget和“无法加载服务索引” [重复]
【发布时间】:2017-06-22 00:23:48
【问题描述】:

我在使用 Monodevelop 时遇到了问题。我正在使用 LinuxMint Serena (18.1) 和 Monodevelop 7.0.1 (build 24)。尝试在新项目中添加 nuget 包时,我得到了下一个答案:

[nuget.org] Unable to load the service index for source https://api.nuget.org/v3/index.json. An error occurred while sending the request
Error: SecureChannelFailure (Object reference not set an instance of an object) Object reference not set to an instance of an object

我查看了api nuget地址,正常,链接没什么奇怪的。我尝试从原始 Visual Studio 项目中复制旧包,但问题仍然存在。

提前致谢。

编辑: 在尝试了很多事情都没有成功之后,我使用了从旧 Visual Studio 项目下载的旧 nuget 包。我不知道这样做是否可行,或者我接受该项目并使用 Monodevelop for Windows 打开它是否解决了这个问题。

【问题讨论】:

  • 我检查了两个链接,但没有解决我的问题。第一个与 Visual Studio 有关,我在 Linux 环境中使用 Monodevelop。我更改为http://api.nuget.org/v3/index.json 并仍然存在错误。第二个甚至没有答案。
  • 看起来您遇到了 Mono v5 错误 - bugzilla.xamarin.com/show_bug.cgi?id=57019 解决方法是设置旧版 TLS 提供程序,然后从同一命令行运行 flatpak export MONO_TLS_PROVIDER=legacy

标签: c# linux nuget monodevelop


【解决方案1】:

我在 ubuntu(16.04) Monodevelop(7.0.1) 中有同样的问题。我可以在浏览器中访问http://api.nuget.org/v3/index.json,但是当我在monodevelop 中添加nuget 包时,它会抛出异常“无法加载源https://api.nuget.org/v3/index.json 的服务索引”。 我通过检查更新程序、检查并安装所有软件更新来解决这个问题。 你可以试试看。祝你好运!

【讨论】:

    猜你喜欢
    • 2018-09-21
    • 1970-01-01
    • 2022-10-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-29
    • 2022-10-04
    • 1970-01-01
    相关资源
    最近更新 更多