When you are unable to install msodbcsql17 on Ubuntu, 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 (>= 18.104.22.168) 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.
That’s it for fixing unable to install msodbcsql17 on Ubuntu. I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.