用于Linux的MS SQL服务器的安装问题
我遇到了在Ubuntu服务器(16.04,x86-64)上安装mssql server(版本14.0.600)的问题。 安装将停止,并显示以下错误:
The following packages have unmet dependencies: mssql-server : Depends: openssl (<= 1.1.0).
但是, apt-cache policy openssl
报告为:
Installed: 1.1.0f-2~ubuntu16.04.1+deb.sury.org+1 / Candidate: 1.1.0f-2~ubuntu16.04.1+deb.sury.org+4
sudo apt-get install -f最初是: 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded
。 apt-get upgrade(apache,openssl,grub)之后: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded
。
可悲的是,与以前一样的依赖性错误。
openssl 1.1.0f> 1.1.0? 有没有办法摆脱这个问题,没有用openssl 1.0.2g重新安装Ubuntu?
根据网上的几个post,试图降级openssl似乎不是一个安全的程序。
编辑: apt-get purge --auto-remove openssl
返回0 upgraded, 0 newly installed, 139 to remove and 0 not upgraded.
这不是我现在想要/敢于做的事情。
更新openssl后我遇到同样的问题,试试这个
- 安装aptitute
sudo apt install aptitude
-
sudo aptitude install mssql-server
将安装以下新软件包:…以下软件包具有未满足的依赖项:mssql-server:取决于:openssl(<= 1.1.0)但1.1.0f-2~ubuntu16.04.1 + deb.sury.org + 1已安装。 以下操作将解决这些依赖关系:
将以下包保留在当前版本中:
1) mssql-server [Not Installed]
接受此解决方案? [Y / n / q /?] n
- 输入n并按Enter键
以下操作将解决这些依赖关系:
降级以下包裹:
1) openssl [1.1.0f-2~ubuntu16.04.1+deb.sury.org+1 (now) -> 1.0.2g-1ubuntu4.6 (xenial-security)]
接受此解决方案? [Y / n / q /?] Y以下包将是DOWNGRADED:openssl
- 输入Y并按Enter键,将安装mssql-server
-
sudo /opt/mssql/bin/mssql-conf setup
重新配置您的安装
Ubuntu 18.04的明显解决方案:
apt-get install -y libjemalloc1 libsss-nss-idmap0 libc++1 gawk curl curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - add-apt-repository "$(curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)" add-apt-repository "$(curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list)" wget http://archive.ubuntu.com/ubuntu/pool/main/c/ca-certificates/ca-certificates_20160104ubuntu1_all.deb dpkg -i ca-certificates_20160104ubuntu1_all.deb wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.0.2g-1ubuntu4_amd64.deb dpkg -i openssl_1.0.2g-1ubuntu4_amd64.deb apt install -y libcurl3 apt-get update apt-get install -y mssql-server
有必要检查SQL随后是否正常运行而没有问题。