Sql-Server

如果不能使用 curl,如何安裝 SQL-Server Tools?

  • September 25, 2018

嘗試安裝mssql-tools,我得到

$ sudo apt-get install mssql-tools 
Reading package lists... Done
Building dependency tree... 50%
Building dependency tree       
Reading state information... Done
Package mssql-tools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mssql-tools' has no installation candidate

所以,我去添加儲存庫,

curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list

Command 'curl' not found, but can be installed with:

apt install curl

但現在我收到一個錯誤curl,試圖安裝curl

$ sudo apt-get install curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
 libc++1 libc++abi1 libsss-nss-idmap0
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
 libcurl4
The following packages will be REMOVED:
 libcurl3 mssql-server
The following NEW packages will be installed:
 curl libcurl4
0 upgraded, 2 newly installed, 2 to remove and 0 not upgraded.
Need to get 373 kB of archives.
After this operation, 929 MB disk space will be freed.
Do you want to continue? [Y/n] n 
Abort.

所以本質上,你需要 curl 安裝mssql-tools,安裝 curl 解除安裝mssql-server,因為 sql-server 是用 libcurl3 建構的,並且/bin/curl在 Linux 上需要libcurl4. 你做什麼工作?

14.0.3038.14-2+

新版本的 SQL Server (14.0.3038.14-2+) 不再與libcurl3.

取決於:libunwind8、libnuma1、libc6、adduser、libjemalloc1、libc++1、gdb、debconf、主機名、libssl1.0.0、openssl、python (>= 2.7.0)、libgssapi-krb5-2、libsss-nss-idmap0、 gawk、sed、libldap-2.4-2、libsasl2-2、libsasl2-modules-gssapi-mit

與 14.0.3037.1-2 相比

取決於:libunwind8、libnuma1、libc6、adduser、libjemalloc1、libc++1、gdb、debconf、libcurl3、主機名、libssl1.0.0、openssl、python (>= 2.7.0)、libgssapi-krb5-2、libsss-nss- idmap0、gawk、sed、libldap-2.4-2、libsasl2-2、libsasl2-modules-gssapi-mit

引用自:https://dba.stackexchange.com/questions/216959