Pyodbc install error in Azure Databricks: File not found error

Chung, Joshua 151 Reputation points
2021-06-16T23:25:50.96+00:00

Running the code below in Azure Databricks

%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
apt-get -y install unixodbc-devhttps://packages.microsoft.com
sudo apt-get install python3-pip -y
pip3 install --upgrade pyodbc

At apt-get install msodbcsql17 step, I get the

Err:1 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 msodbcsql17 amd64 17.7.2.1-1
404 Not Found [IP: 13.81.215.193 443]

Since I have not changed the code, I assume the package was somehow removed from the repository, but I'm not sure where else to go find the package.

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
1,947 questions
{count} votes

4 additional answers

Sort by: Most helpful
  1. D. Stefanoski 26 Reputation points
    2021-06-17T09:51:57.947+00:00

    Look here, I just tested the broken url from various locations trough the world, it looks like Europe is being hit and updates are not propagated yet, le't give it some time until they sync properly! God I can't believe I am defending Microsoft :)

    106601-screenshot-2021-06-17-at-114934.png

    2 people found this answer helpful.

  2. PRADEEPCHEEKATLA-MSFT 78,576 Reputation points Microsoft Employee
    2021-06-17T09:36:38.903+00:00

    Hello All,

    (UPDATE2): Looks like there is an outage in specific regions with the http://packages.microsoft.com and it's going to be back online asap.

    In my region, I'm able to reach the packages repository.

    106605-image.png

    ---------------------------------------------

    (UPDATE1): Even I tried reinstalling on a fresh cluster and able to successfully install msodbcsql17 on the cluster.

    106602-image.png

    Proof on completion:

    106574-adb-msodbcsql17.gif

    -----------------------------

    @Chung, Joshua , @Jaoua, Emna , @D. Stefanoski , @Tomáš , @Dagoberto Romer González , @MaaNo , @Francesco Caspani ,

    Welcome the Microsoft Q&A platform.

    This could be an intermittent issue. I would suggest you re-try again and check if that works.

    Now, I'm able to install the Pyodbc in Azure Databricks without any issue.

    Installed on Databricks Runtime version : 8.2 (includes Apache Spark 3.1.1, Scala 2.12)

    106537-image.png

    Hope this helps. Do let us know if you any further queries.

    ------------

    • Please accept an answer if correct. 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.
    1 person found this answer helpful.

  3. Francesco Caspani 1 Reputation point
    2021-06-17T14:20:05.443+00:00

    Now it works for debian 9.

    0 comments No comments

  4. Benjamin david 1 Reputation point
    2021-06-17T15:03:05.88+00:00

    Now it works for ubuntu 16.04.. but it is quite slow while downloading

    ![106702-image.png]1

    0 comments No comments