unable to install Microsoft Sql on ubuntu 22.04

Alireza Shahamiri 76 Reputation points
2022-05-15T06:31:21.87+00:00

Hi, I want to install mssql-server 2019 on my ubuntu 22.04 machine and I got some error, after searching I found out this problem is because mssql does not support this version of ubuntu.
When will mssql support ubuntu 22.04?

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

Accepted answer
  1. Michael Emanuel 81 Reputation points
    2022-06-03T15:56:25.23+00:00

    Thanks! This was very helpful and solved my problem. For anyone looking for explicit commands on an Ubuntu 22.04 installation,
    $ cd /opt/mssql/lib
    $ ls -la
    $ sudo rm libcrypto.so libssl.so
    $ sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 libcrypto.so
    $ sudo ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.1 libssl.1.1

    If you're missing version 1.1 of these files, you can first do
    $ sudo apt install libssl1.1

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. James West 16 Reputation points
    2022-05-25T18:01:20.993+00:00

    You can successfully use mssql-server on ubuntu 22.04, you will need copies of libssl.so.1.1 and libcrypto.so.1.1 from Ubuntu 20.04, you can place these files in the /opt/mssql/lib directory as libssl.so and libcrypto.so

    3 people found this answer helpful.
    0 comments No comments

  2. Seeya Xi-MSFT 16,441 Reputation points
    2022-05-16T02:34:07.333+00:00

    Hi @Alireza Shahamiri ,

    Welcome to Microsoft Q&A!
    Yes. As you said, mssql does not support ubuntu 22.04. So far, you can install SQL Server 2019 on Ubuntu 16.04, 18.04, or 20.04(CU10).
    Please see this document: https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-setup?view=sql-server-ver15#supportedplatforms
    Your question is related to SQL Server future plans. Here is a feedback site where you can post your question: https://feedback.azure.com/d365community/forum/04fe6ee0-3b25-ec11-b6e6-000d3a4f0da0

    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".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.