gpt4 book ai didi

ubuntu - 无法在 UBuntu 18.04 上安装 .Net Core 2.2

转载 作者:太空宇宙 更新时间:2023-11-03 16:41:59 29 4
gpt4 key购买 nike

我试图将 ASP.NET Core 2.2 应用程序部署到运行 Ubuntu 18.04DigitalOcean droplet。我按照 official documentation 上提供的步骤进行操作.

但是我收到了错误。

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-sdk-2.2 : Depends: aspnetcore-runtime-2.2 (>= 2.2.0) but it is not going to be installed
Depends: dotnet-runtime-2.2 (>= 2.2.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


有什么帮助吗?我试图从其他论坛获得帮助,但仍然没有成功。

最佳答案

这是 GitHub 上的一个已知问题

据我所知,开发人员提出了不同的解决方案。我建议您检查链接。

问题一般发生在缺少libicu。 libicu 的版本在哪里?

下面是针对DotNet-Core Sdk dotnet-sdk-2.2版本的建议解决方案

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic main" > /etc/apt/sources.list.d/dotnetdev.list'

sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.2

关于ubuntu - 无法在 UBuntu 18.04 上安装 .Net Core 2.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54065894/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com