【问题标题】:Error after updating dotnet-host Ubuntu 16.04更新 dotnet-host Ubuntu 16.04 后出错
【发布时间】:2016-07-18 23:38:17
【问题描述】:

从 .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 的所有内容并重新安装 但什么也没发生,有人知道吗?

提前致谢

【问题讨论】:

    标签: command-line-interface ubuntu-16.04 .net-core


    【解决方案1】:

    我遇到了同样的问题and found this link。简短的故事是我运行它来安装 dotnet-hostfxr 版本 1.0.2 并解决了依赖问题:

    sudo apt-get install dotnet-hostfxr-1.0.2

    【讨论】:

    • 您的链接似乎是同一页。
    • @AndrewArnott - 糟糕,修复了链接
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-10-30
    • 1970-01-01
    • 2017-05-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多