Solucionado (ver solução)
Solucionado
(ver solução)
4
respostas

Erro no .NET Framework no Linux

Estou tentando instalar o .NET Framework para rodar aplicações em C# no Ubuntu 19.04. Estou tentando baixar a Runtime para em seguida a versão de desenvolvedor, mas aparece a seguinte mensagem no terminal: " 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: aspnetcore-runtime-2.2 : Depends: dotnet-runtime-2.2 (>= 2.2.4) but it is not going to be installed E: Unable to correct problems, you have held broken packages"

Já tentei versões anteriores, mas nada funciona.

4 respostas

Olá Charles,

Segue os passos para a instalação no Unbuntu.

Baixar link:

 https://www.microsoft.com/net/download/thank-you/dotnet-sdk-2.1.4-linux-x64-binaries
mkdir -p $ HOME / dotnet
~ $ cd Downloads
~ / Downloads $ tar zxf dotnet-sdk-2.1.4-linux-x64.tar.gz -C $ HOME / dotnet

Abra o vim para adicionar a seguinte linha em ~ / .bashrc: (correção)

~ $ sudo vim ~ / .bashrc
i
PATH de exportação = $ PATH: $ HOME / dotnet
: qw
~ $

Verifique a instalação:

~ $ dotnet --version
2.1.4

usei

tar zxf dotnet-sdk-2.1.4-linux-x64.tar.gz -C $ HOME / dotnet

e apareceu: " ~/Downloads$ tar zxf dotnet-sdk-2.1.4-linux-x64.tar.gz -C $ HOME /dotnet tar: HOME: Not found in archive tar: /dotnet: Not found in archive tar: Exiting with failure status due to previous errors "

solução!

Olá,

Você pode pegar erros de comando do tar filtrando suas mensagens para stdout Código:

tar zxf dotnet-sdk-2.1.4-linux-x64.tar.gz -C $ HOME / dotnet > / dev / null

Obrigado! Pesquisei sobre o erro e achei um link no Github informando que ainda não funciona na versão 19.04, mas em breve consertarão este erro. https://github.com/dotnet/core/issues/2526

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software