Как установить mssql-cli в UBUNTU 18 LTS?

Я использую apt install mssql-cli в новой UBUNTU 18 LTS, и, даже, после того, как используется этот ответ (mssql-server установленный с успехами) и этот другой один (выполнил все команды), существуют "невстреченные зависимости",

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.

примечание:

Подобная проблема, когда 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.

дампы

/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
4
задан 27 May 2018 в 22:16

2 ответа

mssql-server-2017 еще не поддерживается на 18,04. Необходимо ожидать Microsoft, чтобы поддерживать его и затем изменить способный исходный файл соответственно. Инструкция, которую необходимо найти здесь, после того как это готово:

https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu? view=sql-server-linux-2017#install

В настоящее время это только покрывает установку для 16,04, и соответствующий репозиторий APT для 18,04 еще не существует.

Поскольку альтернатива ожиданию Вас может установить Ubuntu 16.04 и использовать инструкции Microsofts, связанные выше для установки mssql-сервера. 16.04 все еще поддерживаемая и широко используемая версия Ubuntu.

4
ответ дан 1 December 2019 в 09:30

Похож мы пропускаем libicu60 альтернативную зависимость. PR здесь: https://github.com/dbcli/mssql-cli/pull/205.

Эта фиксация была объединена и выпущена.

Повторно выполненный

apt install mssql-cli

это должно разрешить дополнительную альтернативную зависимость для libicu60.

1
ответ дан 1 December 2019 в 09:30

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

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