O Ubuntu não consegue instalar o .Net Core

3

Acabei de instalar o Ubuntu 16.04 na máquina virtual e tentando instalar o núcleo .Net.

Eu segui o seguinte link para Instalando o .Net Core no Ubuntu

Eu tentei instalar o pacote, mas ele está falhando.

Aqui estou colocando a saída por favor verifique uma vez.

$ 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.

Depois de instalar o Ubuntu 16.04, descobri que o núcleo .Net ainda não é suportado no 16.04 e o suporte máximo é de até 15.10.

Ubuntu - Instalando o núcleo .net

Por que não há nenhuma nota sobre a instalação do núcleo .net na página do Ubuntu sobre qual versão do Ubuntu deve ser usada?

É correto que o .Net Core ainda não seja suportado no Ubuntu 16.04? Existe alguma maneira de resolver isso?

    
por Nirav Kamani 07.06.2016 / 12:37

2 respostas

1

Tentando instalar o pacote dependente dotnet-sharedframework-microsoft.netcore.app, você obterá o próximo erro, dizendo que esse pacote depende da libicu52, mas não é instalável

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

e faça o download do pacote .deb. Agora, vá para o local de download e instale o pacote executando:

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

Agora, você poderá executar os seguintes comandos:

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

Boa sorte

fonte: link

    
por beespace 07.07.2016 / 09:42
0

Você pode executar

sudo apt-get install -f

para resolver alguns erros automaticamente. De 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.

Ele instalará pacotes ou dependências ausentes.

    
por Georg.Duees 08.06.2016 / 06:06

Tags