Error installing MsSQL on Linux: Unable to install msodbcsql17 on Ubuntu

When you are faced with the following error below, the root cause is because the msodbcsql17 package has a different version of MsSql-tools, both should have the same version. On how to install Microsoft SQL Server 2019 and MsSQL Command line tools on Ubuntu Linux. See this guide on how to download and install Microsoft SQL Server 2019 Express edition and Microsoft SQL Server Management Studio on Windows 10 and Windows Server.

The following packages have unmet dependencies:
mssql-tools : Depends: msodbcsql17 (>= but it is not going to be installed

Solution: Update msodbcsql17 package running the following command

sudo apt-get install msodbcsql17

Now as you can see the issue will be resolved and the installation is completed as shown below.

I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Notify of

Inline Feedbacks
View all comments
Paco Valverde
Paco Valverde
1 month ago

Hello Christian, if I want to install the exact version on Ubuntu, how can I install that particular version? Kind regards

Would love your thoughts, please comment.x