2017-06-15 83 views
1

無法使用軟件包有不能滿足的依賴dot.net核心

sudo apt-get install dotnet-dev-1.0.4 

系統會生成以下錯誤安裝.NET核心版本1.0.4在Ubuntu 16.04。

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中的評論。沒有工作。

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 

任何建議

回答

1

運行以下命令,從Get Started with .NET Core注意到已經採取

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 

您需要的部分16.04

相關問題