首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如果不能使用curl,如何安装Server工具?

如果不能使用curl,如何安装Server工具?
EN

Database Administration用户
提问于 2018-09-06 23:34:43
回答 2查看 812关注 0票数 2

试图安装mssql-tools时,我得到

代码语言:javascript
复制
$ 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

所以,我去添加存储库,

代码语言:javascript
复制
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

代码语言:javascript
复制
$ 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。你的工作是什么?

EN

回答 2

Database Administration用户

回答已采纳

发布于 2018-09-25 02:00:55

14.0.3038.14-2+

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。

票数 2
EN

Database Administration用户

发布于 2018-09-06 23:34:43

Wget

或者,你可以用curl代替wget

代码语言:javascript
复制
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来大大简化这一点。

票数 0
EN
页面原文内容由Database Administration提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://dba.stackexchange.com/questions/216959

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档