更新dotnet-host后出现的错误 Ubuntu 16.04

5
自从最近一次.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相关的内容并重新安装,但仍然没有结果。有没有人有想法?

提前感谢。

1个回答

4

我曾经遇到过同样的问题,在这里找到了解决办法。简而言之,运行以下命令安装dotnet-hostfxr 1.0.2版本可以解决依赖问题:

sudo apt-get install dotnet-hostfxr-1.0.2


您的链接似乎是这个页面本身。 - Andrew Arnott
@AndrewArnott - 哎呀,链接已修复。 - swannee

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接