繁体   English   中英

将.Net Core 1.0升级到2.0 Ubuntu 16.10

[英]Upgrade .Net Core 1.0 to 2.0 Ubuntu 16.10

我正在尝试将.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:~$

你有什么想法?

因此,全新安装Ubuntu 16.04的确是……尽管有一个陷阱,您可以选择是否选择LTS(长期支持)。 我选择不这样做,因为它是VM,而且我不介意较新的更新,等等……事实证明,安装.NET Core并不是一个好主意! 看来,一旦安装了非LTS,您最终会得到16.10,该版本已安装了一些较新版本的必需库,即称为libicu的库,它现在是57,而不是必需的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安装它: sudo dpkg –i libicu55_55.1-7_amd64.deb

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM