Como instalar o mssql-cli no UBUNTU 18 LTS?

3

Estou usando apt install mssql-cli em um novo UBUNTU 18 LTS e, mesmo depois de usar esta resposta ( mssql-server instalado com sucessos) e este outro (executado todos os comandos), existem "dependências não atendidas",

apt install mssql-cli :

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:
 mssql-cli : Depends: libicu52 but it is not installable or
                      libicu55 but it is not installable or
                      libicu57 but it is not installable
E: Unable to correct problems, you have held broken packages.

nota

Um problema semelhante quando apt install powershell :

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:
 powershell : Depends: libcurl3 but it is not going to be installed
              Depends: libicu55 but it is not installable
E: Unable to correct problems, you have held broken packages.

despeja

/etc/apt/sources.list.d/microsoft.list :

 deb [arch=amd64] https://packages.microsoft.com/ubuntu/17.10/prod artful main

/etc/apt/sources.list :

deb http://mirrors.digitalocean.com/ubuntu/ bionic main restricted
deb-src http://mirrors.digitalocean.com/ubuntu/ bionic main restricted

deb http://mirrors.digitalocean.com/ubuntu/ bionic-updates main restricted
deb-src http://mirrors.digitalocean.com/ubuntu/ bionic-updates main restricted

deb http://mirrors.digitalocean.com/ubuntu/ bionic universe
deb-src http://mirrors.digitalocean.com/ubuntu/ bionic universe
deb http://mirrors.digitalocean.com/ubuntu/ bionic-updates universe
deb-src http://mirrors.digitalocean.com/ubuntu/ bionic-updates universe

deb http://mirrors.digitalocean.com/ubuntu/ bionic multiverse

deb http://mirrors.digitalocean.com/ubuntu/ bionic universe
deb-src http://mirrors.digitalocean.com/ubuntu/ bionic universe
deb http://mirrors.digitalocean.com/ubuntu/ bionic-updates universe
deb-src http://mirrors.digitalocean.com/ubuntu/ bionic-updates universe

deb http://mirrors.digitalocean.com/ubuntu/ bionic multiverse
deb-src http://mirrors.digitalocean.com/ubuntu/ bionic multiverse
deb http://mirrors.digitalocean.com/ubuntu/ bionic-updates multiverse
deb-src http://mirrors.digitalocean.com/ubuntu/ bionic-updates multiverse
    
por Peter Krauss 25.05.2018 / 02:00

2 respostas

3

mssql-server-2017 ainda não é suportado em 18.04. Você deve aguardar a Microsoft para suportá-lo e, em seguida, altere seu arquivo de origem apt adequadamente. A instrução que você deve encontrar aqui, quando estiver pronto:

link

Atualmente isso cobre apenas a instalação para 16.04, e um repositório APT correspondente para 18.04 ainda não existe.

Como uma alternativa à espera, você pode instalar o Ubuntu 16.04 e usar as instruções do Microsofts vinculadas acima para instalar o mssql-server. O 16.04 ainda é uma versão do Ubuntu suportada e amplamente utilizada.

    
por Sebastian Stark 29.05.2018 / 22:56
1

Parece que estamos perdendo a dependência alternativa libicu60. PR está aqui: link .

Esta correção foi mesclada e lançada.

Por favor, execute novamente

apt install mssql-cli

deve resolver a dependência alternativa adicional para libicu60.

    
por MrMeemus 30.05.2018 / 23:18