简体   繁体   English

将.Net Core 1.0升级到2.0 Ubuntu 16.10

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

I'm trying to upgrade the .net core version from 1.0 to 2.0 but I'm getting some errors. 我正在尝试将.net核心版本从1.0升级到2.0,但出现一些错误。 I'm not good at Linux, so I don't understand well what's happening. 我不擅长Linux,所以我不太了解发生了什么。

I run: 我跑:

apt-get install dotnet-sdk-2.1.4

And I get this error: 我得到这个错误:

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.

So, I try to install dotnet-runtime-2.0.5 and I get this 所以,我尝试安装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.

After this, I try to install libicu55 but I already have installed libicu57 . 此后,我尝试安装libicu55但我已经安装了libicu57 I don't know what to do. 我不知道该怎么办。

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:~$

Do you have any ideas? 你有什么想法?

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

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

Try installing the libicu55 manually on your machine (it should run side by side with the newer version on your machine): 尝试在计算机上手动安装libicu55(它应与计算机上的较新版本并排运行):

  1. Download the file from here: http://packages.ubuntu.com/en/xenial/amd64/libicu55/download 从此处下载文件: http : //packages.ubuntu.com/en/xenial/amd64/libicu55/download
  2. Install it using: sudo dpkg –i libicu55_55.1-7_amd64.deb 使用以下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