Ubuntu, не могущая устанавливать.Net Core

Я просто установил Ubuntu 16.04 на виртуальной машине и пытающийся установить ядро .NET.

Я следовал за следующей ссылкой для Установки.Net Core на Ubuntu

Я пытался установить пакет, но он перестал работать.

Здесь я помещаю вывод, проверьте его однажды.

$ sudo apt-get install dotnet-dev-1.0.0-preview1-002702
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-dev-1.0.0-preview1-002702 : Depends: dotnet-sharedframework-microsoft.netcore.app-1.0.0-rc2-3002702 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$ sudo apt-get install dotnet-sharedframework-microsoft.netcore.app-1.0.0-rc2-3002702
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-sharedframework-microsoft.netcore.app-1.0.0-rc2-3002702 : Depends: libicu52 (>= 52~m1-1~) but it is not installable
E: Unable to correct problems, you have held broken packages.

После установки Ubuntu 16.04 я нашел, что ядро .NET все еще не поддерживается в 16,04, и максимальная поддержка, обеспечивают, до 15,10.

Ubuntu - Установка ядра .NET

Почему нет никакого примечания по Установке ядра .NET на странице Ubuntu о том, какая версия Ubuntu должна использоваться?

Это корректно, что.Net Core все еще не поддерживается в Ubuntu 16.04? Там какой-либо путь состоит в том, чтобы разрешить это?

3
задан 23 May 2017 в 15:39

2 ответа

Вы могли работать

склонные sudo - получают установку-f

решить некоторые ошибки автоматически. От man apt:

-f, --fix-broken Fix; attempt to correct a system with broken dependencies in place. This option, when used with install/remove, can omit any packages to permit APT to deduce a likely solution. If packages are specified, these have to completely correct the problem. The option is sometimes necessary when running APT for the first time; APT itself does not allow broken package dependencies to exist on a system. It is possible that a system's dependency structure can be so corrupt as to require manual intervention (which usually means using dselect(1) or dpkg --remove to eliminate some of the offending packages). Use of this option together with -m may produce an error in some situations. Configuration Item: APT::Get::Fix-Broken.

Это установит недостающие пакеты или зависимости.

0
ответ дан 1 December 2019 в 17:33

При попытке установить подчиненный пакет dotnet-sharedframework-microsoft.netcore.app получит Вас затем ошибка, говоря, что этот пакет зависит от libicu52, но это не устанавливаемо

http://packages.ubuntu.com/pl/trusty/amd64/libicu52/download

и загрузите .deb пакет. Теперь, перейдите к местоположению загрузки и установите пакет путем выполнения:

sudo dpkg -i libicu52_52.1-3ubuntu0.4_amd64.deb

Теперь, Вы сможете выполнить следующие команды:

sudo apt-get install dotnet-sharedframework-microsoft.netcore.app-1.0.0-rc2-3002702
sudo apt-get install dotnet-dev-1.0.0-preview1-002702

dotnet --version

Удачи

источник: http://zablo.net/blog/post/run-and-debug-asp-net-core-rc2-ubuntu-16-04

1
ответ дан 1 December 2019 в 17:33

Другие вопросы по тегам:

Похожие вопросы: