How to install Wine Staging, Development or Stable on Ubuntu, Linux Mint or Debian 10 (to avoid dependency issues)

wine Is a Windows compatibility layer that lets you run Microsoft Windows applications and games on Linux, macOS, and Android (experimental). When running Windows applications under Wine, no code emulation or virtualization occurs, so the name is (Wine is not an emulator).
You can use Wine as a stand-alone application to launch Microsoft Windows applications and games directly, or you can use it through third-party tools such as Lutris on Linux. Valve’s Steam compatibility layer (which can play Windows games on Linux) Proton and Proton (a commercial Microsoft Windows compatibility layer for macOS and Linux) also use Wine. maintain see Ubuntu (And Ubuntu-based Linux distributions, such as Linux Mint or Pop! _OS) and Debian 10 users I tried to install Wine and encountered dependency issues, so I wanted to write an article about properly installing the Wine Staging and Development versions (and Stable, even though these versions have no dependency issues).

Many Ubuntu or Debian users have gone Wine headquarters Install the page, add the official Wine repository, and then continue trying to install the Wine Development or Staging version, which will result in missing dependencies:

$ sudo apt install wine-staging
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.

The following information may help to resolve the situation:

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

The error message is not completely useful, so users don’t even know what the missing dependencies are. However, if we continue to investigate this, we will end up with:

$ sudo apt install wine-staging-amd64 wine-staging-i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine-staging-amd64 : Depends: libfaudio0 (>= 19.06.07) but it is not installable
..........................

and so libfaudio0 There is a lack of wine grading and development dependencies. This dependency was added in Wine 4.5, released in March 2019. All Wine releases thereafter require this dependency, but temporarily do not support Wine stability (version 4.0.2).
This dependency cannot be used directly in the official WineHQ Ubuntu and Debian 10 repositories, as it is not part of the Wine project. The link (and the link to the forum post) is mentioned at the top of the WineHQ Ubuntu and Debian installation pages, users need to download and install this package separately, but many users ignore this section / do not read it. On the other hand, those upgrading from an older Wine version / those who have added the WineHQ repository will never enter the official WineHQ installation page, so they will not notice this very important detail.
There is also a problem with the official WineHQ Ubuntu and Debian installation pages suggesting downloads libfaudio0 And installing it without using a repository, this is problematic:

  • Since the forum link points to a list of Ubuntu / Debian repositories, users may be confused as to what they need to download (for example, they may not know that they need to use both amd64 and i386 versions);
  • If you just download and install libfaudio0 Without adding its repository, you may need to update this package later to upgrade Wine (for example, I already have libfaudio0 15. *. * Or similar installation, but the latest Wine Staging requires libfaudio0 Version is higher than 19.06.07), and the upgrade will fail because this package is not in the official WineHQ repository.

The purpose of this article is to provide installation instructions for Ubuntu 19.10, 19.04, 18.04, or 16.04, Linux Mint 19. *, and 18. * for simple, straightforward Wine Staging and Development (though there are no issues and are stable), Debian 10 Not only can you install Wine immediately, but you can also use it for future Wine upgrades. For this we will use Wine OBS Database The WineHQ installation page recommends downloading the file libfaudio0. This OBS repository also includes the latest versions of Wine Stable, Development and Staging, so in fact, you just need to use this repository to get everything you need without adding this repository and WineHQ repository.
This may sound a little confusing, but I promise ?️ The installation instructions below are simple.
It is worth noting that the missing person libfaudio0 Dependencies have been added in Debian bullseye / sid and the upcoming Ubuntu 19.10 release, so this is only a problem with older versions. You might like: How to Play Windows Games with Lutris on Linux (Quick Start Guide)

How to install Wine Staging, Development or Stable on Ubuntu (and Linux Mint) or Debian 10

Add to Wine OBS Database Works on Ubuntu (and Linux Mint, etc.) and Debian, including libfaudio0 (versus https://dl.winehq.org WineHQ repository without this dependency):

  • Ubuntu 19.04 (and other Linux distributions based on this Ubuntu version, such as Pop! _OS 19.04, etc.):
wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_19.04/Release.key | sudo apt-key add -    

echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_19.04 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list

sudo apt update
  • Ubuntu 18.04 or Linux Mint 19. * (And other Linux distributions based on this Ubuntu version, such as Pop! _OS 18.04, etc.):
wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key | sudo apt-key add -    

echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list

sudo apt update
  • Ubuntu 16.04 or Linux Mint 18. *:
wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_16.04/Release.key | sudo apt-key add -    

echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_16.04 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list

sudo apt update
  • Debian 10 (Buster):
wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/Release.key | sudo apt-key add -    

echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list

sudo apt update

These commands download and add the repository key, then add the Wine OBS repository to /etc/apt/sources.list.d/wine-obs.listAnd update the software resources. Edit: For Ubuntu 19.10 (and other Linux distributions based on this Ubuntu version, such as Pop! _OS 19.10, etc.), please do not add the OBS Wine repository, but add the main Wine repository. That’s because libfaudio can still be found in the official Ubuntu 19.10 repository, and using the Wine OBS repository can actually cause dependency issues with this Ubuntu version:

wget -nc https://dl.winehq.org/wine-builds/winehq.key

sudo apt-key add winehq.key

echo "deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main" | sudo tee /etc/apt/sources.list.d/wine.list

sudo apt update

Now you can install Wine Staging, Development or Stable on Ubuntu (and Linux Mint, Pop! _OS, etc.) or Debian using the following command.

  • Wine staging:
sudo apt install --install-recommends winehq-staging
  • Wine development:
sudo apt install --install-recommends winehq-devel
  • Wine Stable (updated to the latest Wine 5.0 stable):
sudo apt install --install-recommends winehq-stable

Source

Sidebar