【问题标题】:Packages have unmet dependencies dot.net core软件包具有未满足的依赖关系 dot.net core
【发布时间】:2017-06-20 00:41:49
【问题描述】:

无法在 Ubuntu 16.04 上安装 .net core 1.0.4 版本

sudo apt-get install dotnet-dev-1.0.4

系统产生以下错误。

    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
     dotnet-dev-1.0.4 : Depends: libstdc++6 (>= 6) but 5.4.0-6ubuntu1~16.04.4 is to be installed
                        Depends: dotnet-sharedframework-microsoft.netcore.app-1.1.2 but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

我根据在 stackoverflow 中看到的未满足依赖项的 cmets 尝试了以下操作。没有任何效果。

sudo apt-get install -f

sudo apt-get install libstdc++6

sudo apt update
sudo apt upgrade
sudo apt-get install dotnet-dev-1.0.4

任何建议

【问题讨论】:

    标签: .net asp.net-core .net-core ubuntu-16.04


    【解决方案1】:

    运行以下命令

    sudo sh -c 'echo "deb [arch=amd64] https://aptmo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
    
    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
    
    sudo apt-get update
    

    取自 Get Started with .NET Core 请注意,您需要 16.04 部分

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-07-05
      • 2016-07-10
      • 1970-01-01
      • 2020-08-17
      • 1970-01-01
      • 1970-01-01
      • 2019-12-12
      • 1970-01-01
      相关资源
      最近更新 更多