I want to install SQL Server on Linux. From MS site I read that Red Hat, SUSE, and Ubuntu are supported but I want to use it under Debian. Since Ubuntu is based on Debian, is there a chance to succeed with installation?
This worked for me on Debian 8 (Jessie) when I installed the pre-2017 vNext for dbfiddle:
apt-get install curl apt-transport-https sudo
deb http://ftp.debian.org/debian jessie-backports mainto
apt-get update && apt-get install -t jessie-backports openssl ca-certificates
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server.list | tee /etc/apt/sources.list.d/mssql-server.list
apt-get update && apt-get install mssql-server
sudo /opt/mssql/bin/mssql-conf setup
However I tried and failed to get the RTM Linux version of 2017 installed on Debian Stretch, ultimately using Ubuntu.
Yes, there is a chance the installation will succeed, or that you can work around any issues. It wouldn't be a supported configuration, but it might work.
You also can try the docker image.
$ curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - $ curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server.list | sudo tee /etc/apt/sources.list.d/mssql-server.list
Update apt package database and install mssql-server package:
$ sudo apt-get update $ sudo apt-get install mssql-server
After package installation, you need to run:
$ /opt/mssql/bin/sqlservr-setup script: $ sudo /opt/mssql/bin/sqlservr-setup