2015-02-06 16 views
3

我試着在我的Ubuntu 14.04 運行asp.net家庭樣本,但在每一個KPM恢復我得到如下:KPM恢復Ubuntu的:請求的功能未實現

[email protected]:~/repos/Home/samples/HelloMvc$ kvm list 

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

[email protected]:~/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包,但可能它沒有任何關係:(

我的單聲道版本是:

[email protected]:~$ 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 

有什麼想法嗎?

+0

你有什麼版本的單呢? – 2015-02-06 17:23:46

+0

找到該版本的最佳方法是什麼? – 2015-02-06 18:09:29

+0

wuetrs @ wuetrs-N750JK:〜$ mono --version Mono JIT編譯器版本3.2.8(Debian 3.2.8 + dfsg-4ubuntu1) 版權所有(C)2002-2014 Novell,Inc,Xamarin Inc and Contributors。 www.mono-project.com \t TLS:__thread \t SIGSEGV:altstack \t聲明:epoll的 \t硬件架構: \t禁用:無 \t其他:softdebug \t LLVM:支持,尚未啓用。 \t GC:sgen – 2015-02-06 18:17:20

回答

5

,建議b @SuhasJoshi解決方案是正確的:

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

然後使用去: http://www.mono-project.com/docs/getting-started/install/linux/

+2

對於未來的用戶:我有同樣的問題與dnvm(*最新版本的kpm)這個答案也解決了它。 – 2015-11-02 06:07:27

+0

對於它的價值,我做了這件事,並完全使用我的單聲道設置。你的英里可能會有所不同。 – MetaFight 2016-05-06 19:23:23