Installing mssql in Ubuntu 22.04

Swain, Rajesh Kumar 40 Reputation points
2023-03-27T16:06:08.3233333+00:00

Hi all,

Is mssql server installation is supported in Ubuntu 22.04 officially as of today.

If yes would someone please provide the steps?. I followed other threads but could not succeed till now.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,140 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Swain, Rajesh Kumar 40 Reputation points
    2023-03-28T04:07:23.2433333+00:00

    HI,

    Thanks for the responses. There are few problems while following the link.

    1. The link says to installation steps for 20.04 and not for 22.04.
    2. Considering the steps will work in 22.04 i followed and got the errors when i executed sudo apt-get update and sudo apt-get install -y mssql-server

    error is as below:

    The following packages have unmet dependencies:

    mssql-server : Depends: libldap-2.4-2 but it is not installable

    E: Unable to correct problems, you have held broken packages.

    This tried before also and stuck with this error.

    3 people found this answer helpful.

  2. Bjoern Peters 8,886 Reputation points
    2023-03-27T16:18:13.99+00:00

    Hi,

    Welcome to Q&A Forum; this is a great place to get support, answers, and tips.

    Thank you for posting your question; I'll be more than glad to help you out.

    This isn't an official statement!

    I would suggest that installing the latest version of SQL Server on the latest Ubuntu system won't break any requirements; maybe just the documentation is missing this newest Ubuntu version (docs teams maybe has a backlog).

    Installation procedure... as with the older version... follow the normal Ubuntu description:

    https://learn.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-ver16

    I hope my answer is helpful to you,

    Your

    Bjoern Peters

    If the reply was helpful, please upvote and/or accept it as an answer, as this helps others in the community with similar questions. Thanks!


  3. Sander van de Velde | MVP 33,556 Reputation points MVP
    2023-03-27T21:53:46.3433333+00:00

    Hello @Swain, Rajesh Kumar,

    Have you considered installing Microsoft SQL Server as a Docker container?

    The footprint of this container is just as much as the settings set in the Docker runtime.

    Deployment can also be established as part of the Azure IoT Edge offering.

    In your case, Azure IoT is used solely to distribute docker containers (including this SQL Server container) at scale.

    As an alternative to the SQL Server container, Microsoft also offers SQL Edge, a SQL Server optimized for TimeSeries data.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.


  4. Seeya Xi-MSFT 16,476 Reputation points
    2023-03-28T02:25:44.09+00:00

    Hi @Swain, Rajesh Kumar,

    In addition to the official link posted by Bjoern Peters. You can also refer to this blog post.

    https://citizix.com/how-to-install-and-set-up-ms-sql-server-2019-on-ubuntu-2204/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-install-and-set-up-ms-sql-server-2019-on-ubuntu-2204

    Best regards,

    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.