I cannot install WINE

elementary OS Asked by Joshua Ham on August 28, 2021

Whenever I try sudo apt-get install wine-stable
I get

The following packages have unmet dependencies:
wine-stable : Depends: wine-stable-i386 (= 5.0.1~focal)
Depends: wine-stable-amd64 (= 5.0.1~focal) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I am new to linux and cannot at all figure this out. I tired
sudo apt-get install wine-stable-amd64
sudo apt-get install wine-stable-i386
but both lead to more errors.

One Answer

So I asume you followed the instructions on But since elementary OS is based on Ubuntu 18.04, you should have used the ppa for Ubuntu bionic, not focal.

To try and fix the issue:

  1. please remove the focal ppa:
    sudo add-apt-repository --remove 'deb focal main'
    sudo apt update

  2. follow the istructions from to install wine.


Since the instructions in the link at step 2 might be unavailable in the future, I'll paste them below (only of distributions based on Ubuntu 18.04):

Enable the 32-bit architecture and update the packages list:

sudo dpkg --add-architecture i386  
sudo apt update 

Import the WineHQ repository’s GPG key using the following wget command:

wget -qO- | sudo apt-key add -  

Add the WineHQ repository to your system:

sudo apt install software-properties-common  
sudo apt-add-repository 'deb bionic main'  

Install FAudio from the OBS repository:

wget -qO- | sudo apt-key add -  
sudo sh -c 'echo "deb ./" > /etc/apt/sources.list.d/obs.list'  
sudo apt update 

Install Wine 5.0 package by typing:

sudo apt-get install --install-recommends winehq-stable  

Verify the Wine installation:

wine --version  

The output should look something like this:


Correct answer by Vlad on August 28, 2021

Add your own answers!

Related Questions

How can I get flash video to work?

4  Asked on January 1, 2022 by channelz28


How to install Wine 5 on elementary OS 5.1 Hera?

1  Asked on January 1, 2022 by arium76


Bluetooth headphones don’t work at all :(

3  Asked on December 25, 2021 by codedgar


Wifi driver Lenovo T420s – Where to find find driver?

1  Asked on December 18, 2021 by a-kiddoo


kern.log and syslog grow 40+ GB in few minutes

4  Asked on December 18, 2021 by surendrajat


How to add and sync Gsuite calender in calender?

1  Asked on December 11, 2021 by sulthan


Elementary OS 5.1 Hera Screen Tearing

1  Asked on December 9, 2021 by wilman-darnasutisna


Unknown Display after installing nvidia driver

1  Asked on December 4, 2021 by jacob-k


xsetwacom on elementary OS Hera?

1  Asked on December 4, 2021 by peter-uithoven


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP