Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save efraimsutopo/f0bb25f84b8930a67f041a910d6e30e7 to your computer and use it in GitHub Desktop.
Save efraimsutopo/f0bb25f84b8930a67f041a910d6e30e7 to your computer and use it in GitHub Desktop.
Failed to install wine-staging on Ubuntu 18.04 (missing libfaudio)
  1. Purge all from APT!
sudo apt-get purge *wine*
  1. Check that there's no snaps installed too (for some reason i had this - not sure if it would impact so i assumed best to remove)
sudo snap remove wine
sudo snap update wine-platform-*
  1. Remove the PPA official repos (they changed how they packaged this). We need to dig inside /etc/apt
grep -Ril "wine" /etc/apt

If you get any matches comment them out or delete the keys, we will fully re-add later.

  1. Enable 32-bit & add new repo (check here for other ubuntu versions)
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt update
sudo apt upgrade
sudo apt --fix-broken install
sudo apt autoremove --purge
sudo apt upgrade
  1. Let's get the libfaudio & libasound2 which are the broken repos:
wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key
sudo apt-key add Release.key
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./'
sudo apt update
sudo apt install libfaudio0 libasound2-plugins:i386 -y
  1. Now we can install wine 5.0 as normal!
sudo apt install --install-recommends winehq-stable -y

source: https://askubuntu.com/questions/1164191/wine-staging-fails-to-install-on-18-04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment