Wine-staging fails to install on 18.04
I followed the instructions found here to download the missing libfaudio:i386
.
Ubuntu 18.04:
wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key sudo apt-key add Release.key
Add the repository:
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./'
Then update:
sudo apt update
I had similar problem, I went down a few different rabbit-holes so thought it might help others if I detail my solution. I am not particularly au fait with the apt packaging process or wine so I will list out everything that I went through from upgrading from wine3.0 to wine5.0 on ubuntu 18.04.4 LTS.
- Purge all from APT!
sudo apt-get purge *wine*
- 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-*
- 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.
- 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
- 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
- Now we can install wine 5.0 as normal!
sudo apt install --install-recommends winehq-stable -y
As pointed out by @chilly-chease, libfaudio0:i386
package is missing in ubuntu 18.04 repositories.
The most simple way to fix it would be:
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt install --install-recommends winehq-staging