nuget:未找到任何包

nuget:未找到任何包

我安装了最新的 Ubuntu 服务器 16.04 LTS,其中安装了 mono-runtime。我已经使用 apt 安装了 nuget 包,但无法看到任何包。

nuget list -Verbosity detailed

给出以下错误信息:

WARNING: Error: SendFailure (Error writing headers)
No packages found.

nuget install Microsoft.Owin.Host.SystemWeb -Verbosity detailed

返回如下内容:

WARNING: Error: SendFailure (Error writing headers)
WARNING: An error occurred while loading packages from 'https://www.nuget.org/api/v2/': Error: SendFailure (Error writing headers)
System.InvalidOperationException: Unable to find package 'Microsoft.Owin.Host.SystemWeb'.
  at NuGet.PackageRepositoryHelper.ResolvePackage (IPackageRepository sourceRepository, IPackageRepository localRepository, IPackageConstraintProvider constraintProvider, System.String packageId, NuGet.SemanticVersion version, Boolean allowPrereleaseVersions) <0xb459aea8 + 0x001fb> in <filename unknown>:0
  at NuGet.PackageRepositoryHelper.ResolvePackage (IPackageRepository sourceRepository, IPackageRepository localRepository, System.String packageId, NuGet.SemanticVersion version, Boolean allowPrereleaseVersions) <0xb459ae10 + 0x00037> in <filename unknown>:0
  at NuGet.PackageManager.InstallPackage (System.String packageId, NuGet.SemanticVersion version, Boolean ignoreDependencies, Boolean allowPrereleaseVersions) <0xb459ada8 + 0x00033> in <filename unknown>:0
  at NuGet.Commands.InstallCommand.InstallPackage (IFileSystem fileSystem, System.String packageId, NuGet.SemanticVersion version) <0xb4a844f0 + 0x001f5> in <filename unknown>:0
  at NuGet.Commands.InstallCommand.ExecuteCommand () <0xb4a830c0 + 0x0014f> in <filename unknown>:0
  at NuGet.Commands.Command.Execute () <0xb4a99878 + 0x0029c> in <filename unknown>:0
  at NuGet.Program.Main (System.String[] args) <0xb71dc910 + 0x004c2> in <filename unknown>:0

有人能告诉我从哪里开始调试吗?我在网上浏览了将近两个小时,但没有找到任何有用的方法来解决这个问题。

提前谢谢了。

相关内容