【发布时间】:2020-06-01 20:25:37
【问题描述】:
我正在尝试在 Google Colab 上安装 .NET Core。我按照给出的说明进行操作(适用于 Ubuntu 17.10):
! wget -q https://packages.microsoft.com/config/ubuntu/17.10/packages-microsoft-prod.deb
! dpkg -i packages-microsoft-prod.deb
! apt-get install apt-transport-https
! apt-get update
在我尝试安装 aspnetcore-runtime-2.1 之前,这一切正常:
! apt-get install aspnetcore-runtime-2.1
并得到这个错误:
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:
aspnetcore-runtime-2.1 : Depends: dotnet-runtime-2.1 (>= 2.1.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
您可以清楚地看到缺少一个依赖项:dotnet-runtime-2.1。问题是我无法单独安装它,因此不存在依赖性问题。谁能帮我这个 ?
【问题讨论】:
-
你要
aspnetcore-runtime-2.1这个版本吗? -
不,我只想安装 .NET core sdk
-
这是我在 medium 上找到的教程:medium.com/@MatthewMooreZA/google-colab-net-core-c0c1cd80661d
标签: asp.net .net-core google-colaboratory