Installation Steps official
Https://docs.microsoft.com/zh-cn/sql/linux/sql-server-linux-setup-ubuntu
The following commands are executed:
1, Enter superuser mode.sudo su2, Import the public repository GPG keys:curl https://PACKAGES.MICROSOFT.COM/KEYS/MICROSOFT.ASC | Apt-key Add-3, Register the Microsoft SQL Server Ubuntu repository:curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server.list >/etc/apt/sources.list.d/mssql-server.list 4, Exit superuser mode.exit5, Run the following commands toInstallSQL Server:sudoapt-Get updatesudoApt-getInstall-Y mssql-Server6After the package installation finishes, run the configuration script and follow the prompts.sudo/opt/mssql/bin/sqlservr-Setup7, Once the configuration is Done, verify the service is RUNNING:SYSTEMCTL status MSSQL-server
The installation process is relatively smooth
Preliminary discussion on installing SQL Server 2016 under Ubuntu