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 (>= 220.127.116.11) 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.