Hello @Abhishek Gaikwad ,
Thanks for the question and using MS Q&A platform.
As per the repro, by using the same code - I'm able to install the msodbcsql7 without any issues on Azure Databricks Runtime 9.0:
Based on the Databricks Runtime, this could be a problem when you use sudo in this fashion, it won't work right. I would request you to try this command and see if it works.
%sh
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
apt-get update
ACCEPT_EULA=Y apt-get install msodbcsql17
For more details, refer to this question which addressing similar issue.
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on
or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators