cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Unable to locate package winehq-stable

writetofaiz
New Contributor II

Hi,

I am running a notebook which has mix of python and scala codes. Below code was working fine until May 27, 2025. However, since yesterday, I’ve been encountering the following error: "E: Unable to locate package winehq-stable".
Could someone please help me resolve this issue? Are there any packages or libraries I need to add or update to get it working again?

%sh
dpkg --print-architecture
sudo dpkg --add-architecture i386
dpkg --print-foreign-architectures

sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources

sudo apt-get clean  && sudo rm -rv /var/lib/apt/lists/* && sudo apt-get update

sudo apt install --install-recommends -y winehq-stable

3 REPLIES 3

Aviral-Bhardwaj
Esteemed Contributor III

This issue likely occurred due to recent library upgrades. Please review the libraries installed on your cluster and check their versions. If you identify any libraries that were recently updated, consider downgrading them to their previous versions to restore compatibility.

AviralBhardwaj

Thanks for your reply.

Below are the three libraries I am using in the job cluster, and I don't think any of these have any relation with winehq. Is there any other library I need to add to run the task?


Libraries used in the job cluster:
1. paramiko==3.3.1

2. com.microsoft.azure:spark-mssql-connector_2.12:1.2.0
3. com.crealytics:spark-excel_2.12:3.2.2_0.18.0

Aviral-Bhardwaj
Esteemed Contributor III

add me https://www.linkedin.com/in/aviralb/ we will do live debugging 

AviralBhardwaj

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now