Ami*_*mir 20 ubuntu .net-core ubuntu-18.04
我试图将ASP.NET Core 2.2应用程序部署到运行Ubuntu 18.04的DigitalOcean droplet.我按照官方文件中提供的步骤进行操作. https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-04/sdk-current.
但是我收到了错误.
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.
Run Code Online (Sandbox Code Playgroud)
有帮助吗?我试图从其他论坛获得帮助,所以答案仍然没有运气.
Der*_*ğlu 33
这是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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6533 次 |
| 最近记录: |