gpt4 book ai didi

linux - 将 .Net Core 1.0 升级到 2.0 Ubuntu 16.10

转载 作者:太空宇宙 更新时间:2023-11-04 09:14:05 25 4
gpt4 key购买 nike

我正在尝试将 .net 核心版本从 1.0 升级到 2.0,但出现了一些错误。我不擅长 Linux,所以我不太了解发生了什么。

我跑:

apt-get install dotnet-sdk-2.1.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-sdk-2.1.4 : Depends: dotnet-runtime-2.0.5 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

所以,我尝试安装 dotnet-runtime-2.0.5 并且我明白了

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-runtime-2.0.5 : Depends: libicu55 but it is not installable
E: Unable to correct problems, you have held broken packages.

在此之后,我尝试安装 libicu55 但我已经安装了 libicu57。我不知道该怎么办。

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libicu55 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libicu55' has no installation candidate
betocastillo86@ubuntu-huellitas-prod:~$

你有什么想法吗?

最佳答案

So a clean install of Ubuntu 16.04 it was … there’s a catch though, you can choose between LTS (Long Term Support) or not. I chose not to since It’s a VM and I don’t mind newer updates, etc… Turns out that was a bad idea with .NET Core installs! It would seem that once the non LTS is installed you end up with 16.10 which has installed some newer versions of required libraries, namely something called libicu which is now on 57 instead of a required 55.

来源:https://shazwazza.com/post/installing-net-core-101-on-ubuntu-1610/

尝试在您的机器上手动安装 libicu55(它应该与您机器上的较新版本并行运行):

  1. 从这里下载文件:http://packages.ubuntu.com/en/xenial/amd64/libicu55/download
  2. 使用以下命令安装:sudo dpkg –i libicu55_55.1-7_amd64.deb

关于linux - 将 .Net Core 1.0 升级到 2.0 Ubuntu 16.10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50648821/

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