apt install sql-server code example
Example 1: apt install sql server
sudo apt-get update
sudo apt-get install -y mssql-server
Example 2: apt install sql server
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2019.list)"