The error message is not coming from DSS, but from the actual script. It points at the server where the notebook is running missing the unixODBC development headers.
This is installed running the 'sudo apt-get install unixodbc-dev ' package. Yet, you mention you've already followed this step.
Did you update the server after that, i.e. 'sudo apt-get update'?
If that does not work, can you doublechecked the configuration steps in the Microsoft's docs: https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-fo...