簡體   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