asp.net - kpm 恢复 ubuntu : The requested feature is not implemented

标签 asp.net mono asp.net-core

我尝试在 Ubuntu 14.04 上运行 asp.net Home 示例 但在每次 kpm 恢复时我都会得到以下信息:

wuetrs@wuetrs-N750JK:~/repos/Home/samples/HelloMvc$ kvm list

Active Version              Runtime Location             Alias
------ -------              ------- --------             -----
  *    1.0.0-beta2          Mono    ~/.kre/packages      default

wuetrs@wuetrs-N750JK:~/repos/Home/samples/HelloMvc$ kpm restore
Restoring packages for /home/wuetrs/repos/Home/samples/HelloMvc/project.json
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='Kestrel'
  CACHE https://www.nuget.org/api/v2/package/Kestrel/1.0.0-beta2
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Diagnostics'
  GET https://www.nuget.org/api/v2/package/Microsoft.AspNet.Diagnostics/1.0.0-beta2.
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Hosting'
  CACHE https://www.nuget.org/api/v2/package/Microsoft.AspNet.Hosting/1.0.0-beta2
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Mvc'
  GET https://www.nuget.org/api/v2/package/Microsoft.AspNet.Mvc/6.0.0-beta2.
  CACHE https://www.nuget.org/api/v2/FindPackagesById()?Id='Microsoft.AspNet.Server.WebListener'
  GET https://www.nuget.org/api/v2/package/Microsoft.AspNet.Server.WebListener/1.0.0-beta2.
----------
System.NotImplementedException: The requested feature is not implemented.
  at Microsoft.Framework.PackageManager.PackageUtilities+<OpenNuspecStreamFromNupkgAsync>d__1.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[System.IO.Stream].GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.Restore.NuGet.PackageFeed+<OpenNuspecStreamAsync>d__1.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[System.IO.Stream].GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.RemoteWalkProvider+<GetDependencies>d__1.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[System.Collections.Generic.IEnumerable`1[Microsoft.Framework.Runtime.LibraryDependency]].GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.RestoreOperations+<FindLibraryEntry>d__1.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[Microsoft.Framework.PackageManager.GraphItem].GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.RestoreOperations+<CreateGraphNode>d__1.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[Microsoft.Framework.PackageManager.GraphNode].GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.RestoreOperations+<CreateGraphNode>d__1.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[Microsoft.Framework.PackageManager.GraphNode[]].GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.RestoreCommand+<RestoreForProject>d__1.MoveNext () [0x00000] in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[System.Boolean].GetResult () [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.RestoreCommand+<ExecuteCommand>d__1.MoveNext () [0x00000] in <filename unknown>:0 
----------
Restore failed
The requested feature is not implemented.

如kvm列表所示,我安装了KRE-Mono.1.0.0-beta2 所以我尝试更改 package.json 以获取 1.0.0-beta2 包,但可能与此无关:(

我的单声道版本是:

wuetrs@wuetrs-N750JK:~$ mono --version
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS:           __thread
SIGSEGV:       altstack
Notifications: epoll
Architecture:  amd64
Disabled:      none
Misc:          softdebug 
LLVM:          supported, not enabled.
GC:            sgen

请问有什么想法吗?

最佳答案

@SuhasJoshi 建议的解决方案是正确的:

sudo apt-get remove mono-complete (or whatever package was installed)

然后继续: http://www.mono-project.com/docs/getting-started/install/linux/

关于asp.net - kpm 恢复 ubuntu : The requested feature is not implemented,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28370482/

相关文章:

css - Bootstrap select 在 autopostback 后丢失样式

c# - 通过 dbus-sharp 访问 NetworkManager 连接设置

C# 从 EC 公钥字节生成 PublicKey/IPublicKey 对象?

c# - Keep-Alive 出现在 Debian/Mono 的 HTTP header 中 - 而不是 Windows

javascript - .NET Core javascript 到 Controller POST

asp.net - .wpp.targets 发布到服务器

asp.net - 在 Visual Studio 中调试时无法识别属性 ‘targetframework’

c# - 复选框工具提示数据库

asp.net-core - AspNetCore 使用OpenIdConnectAuthentication

entity-framework - 如何在 vNext MVC 中使用 Entity Framework 和 OData