更新dotnet-host Ubuntu 16.04后出错(Error after updating dotnet-host Ubuntu 16.04)

在.NET Core ppa的最后一次更新,dotnet-host更新后,我再也无法运行dotnet cli,我在终端中遇到这个错误(运行例如dotnet --version命令):

Failed to resolve library symbol hostfxr_load, error: /usr/share/dotnet/host/fxr/1.0.1/libhostfxr.so: undefined symbol: hostfxr_load Failed to resolve library symbol hostfxr_unload, error: /usr/share/dotnet/host/fxr/1.0.1/libhostfxr.so: undefined symbol: hostfxr_unload This executable relies on newer functionality (exports) provided by 'libhostfxr.so' - Updating 'libhostfxr.so' to version '1.0.2-beta-000583-00' might help resolve this problem.

我已经尝试清理.NET Core的所有内容并重新安装但没有任何反应,任何人都有想法?

提前致谢

after the last update from .NET Core ppa, dotnet-host update, I can't anymore run the dotnet cli, I get just this error in terminal (running for eg dotnet --version command):

Failed to resolve library symbol hostfxr_load, error: /usr/share/dotnet/host/fxr/1.0.1/libhostfxr.so: undefined symbol: hostfxr_load Failed to resolve library symbol hostfxr_unload, error: /usr/share/dotnet/host/fxr/1.0.1/libhostfxr.so: undefined symbol: hostfxr_unload This executable relies on newer functionality (exports) provided by 'libhostfxr.so' - Updating 'libhostfxr.so' to version '1.0.2-beta-000583-00' might help resolve this problem.

I already tried to clean everything about the .NET Core and reinstall again but nothing happens, anyone has idea about?

Thanks in advance

最满意答案

我有同样的问题,发现了这个链接 。 简短的故事是我运行它来安装dotnet-hostfxr版本1.0.2并解决了依赖性问题:

sudo apt-get install dotnet-hostfxr-1.0.2

I had the same problem and found this link. Short story is that I ran this to install dotnet-hostfxr version 1.0.2 and it resolved the dependency problem:

sudo apt-get install dotnet-hostfxr-1.0.2

更新dotnet-host Ubuntu 16.04后出错(Error after updating dotnet-host Ubuntu 16.04)

在.NET Core ppa的最后一次更新,dotnet-host更新后,我再也无法运行dotnet cli,我在终端中遇到这个错误(运行例如dotnet --version命令):

Failed to resolve library symbol hostfxr_load, error: /usr/share/dotnet/host/fxr/1.0.1/libhostfxr.so: undefined symbol: hostfxr_load Failed to resolve library symbol hostfxr_unload, error: /usr/share/dotnet/host/fxr/1.0.1/libhostfxr.so: undefined symbol: hostfxr_unload This executable relies on newer functionality (exports) provided by 'libhostfxr.so' - Updating 'libhostfxr.so' to version '1.0.2-beta-000583-00' might help resolve this problem.

我已经尝试清理.NET Core的所有内容并重新安装但没有任何反应,任何人都有想法?

提前致谢

after the last update from .NET Core ppa, dotnet-host update, I can't anymore run the dotnet cli, I get just this error in terminal (running for eg dotnet --version command):

Failed to resolve library symbol hostfxr_load, error: /usr/share/dotnet/host/fxr/1.0.1/libhostfxr.so: undefined symbol: hostfxr_load Failed to resolve library symbol hostfxr_unload, error: /usr/share/dotnet/host/fxr/1.0.1/libhostfxr.so: undefined symbol: hostfxr_unload This executable relies on newer functionality (exports) provided by 'libhostfxr.so' - Updating 'libhostfxr.so' to version '1.0.2-beta-000583-00' might help resolve this problem.

I already tried to clean everything about the .NET Core and reinstall again but nothing happens, anyone has idea about?

Thanks in advance

最满意答案

我有同样的问题,发现了这个链接 。 简短的故事是我运行它来安装dotnet-hostfxr版本1.0.2并解决了依赖性问题:

sudo apt-get install dotnet-hostfxr-1.0.2

I had the same problem and found this link. Short story is that I ran this to install dotnet-hostfxr version 1.0.2 and it resolved the dependency problem:

sudo apt-get install dotnet-hostfxr-1.0.2