HiveBrain v1.2.0
Get Started
← Back to all entries
patternsqlModerate

Install SQL Server on Debian

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
sqldebianinstallserver

Problem

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?

https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-setup

Solution

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



  • add deb http://ftp.debian.org/debian jessie-backports main to /etc/apt/sources.list



  • 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.

Context

StackExchange Database Administrators Q#198170, answer score: 11

Revisions (0)

No revisions yet.