试图安装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构建的,而Linux上的/bin/curl需要libcurl4。你的工作是什么?
发布于 2018-09-25 02:00:55
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 idmap0、gawk、sed、libldap-2.4-2、libsasl2 2-2、libsasl2 2-模块-gssapi-map0。
对14.0.3037.1-2
依赖: libunwind8、libnuma1、libc6、adduser、libjemalloc1、libc++1、gdb、debconf、libcurl3 3、主机名、libssl1.0.0、openssl、python (>= 2.7.0)、libgssapi-krb5-2、libsss idmap0、gawk、sed、libldap-2.4-2、libsasl2 2-2、libsasl2 2-2、libsasl2 2-模块-gssapi-mit。
发布于 2018-09-06 23:34:43
或者,你可以用curl代替wget,
wget https://packages.microsoft.com/config/ubuntu/16.04/prod.list -O - | sudo tee /etc/apt/sources.list.d/msprod.list别忘了sudo apt-get update
如果它们是为发行版打包的,而不是在一个名为xenial的目录中为所有发行版抛出包,那么您可以使用apt-add-ppa来大大简化这一点。
https://dba.stackexchange.com/questions/216959
复制相似问题