Red Wine in a GlassHow to Install Wine on Elementary OSCSS HTML Validator Logo
HOME Tutorials & Essays About
Tutorials & Essays About
Elementary OS 5 screen shot

How to Install Wine on Elementary OS 5

Check installed architectures

Verify 64-bit architecture. The following command should respond with "amd64".

$ dpkg --print-architecture

See if 32-bit architecture is already installed. The following command should respond with "i386"

$ dpkg --print-foreign-architectures

If "i386" is not displayed, execute the following.

$ sudo dpkg --add-architecture i386

Recheck with

$ dpkg --print-foreign-architectures

Install apt-add-repository

apt-add-repository is needed to access the WineHQ repository.

$ sudo apt install software-properties-common

Update the package database.

$ sudo apt update

Add the WineHQ Ubuntu repository

Get and install the repository key.

$ wget -nc
$ sudo apt-key add winehq.key

Now, add the repository.

$ sudo apt-add-repository 'deb bionic main'

Update the package database.

$ sudo apt update

Install libfaudio0

Beginning with Wine 5.0, both Wine Stable and Wine Development require amd64 and i386 versions of libfaudio0, but libfaudio0 is not available from the repository. Therefore, libfaudio0 must be downloaded and installed manually. See libfaudio0 special handlingNew Window Icon.

The next two commands download the libfaudio0 .deb packages into the local active directory.

$ wget -nc

$ wget -nc

And these two commands do the installations.

$ sudo apt install ./libfaudio0_19.07-0~bionic_amd64.deb
$ sudo apt install ./libfaudio0_19.07-0~bionic_i386.deb

When the installations are complete, consider moving the two libfaudio0 .deb files to a permanent location, or just delete them.

Install Wine

The next command will install Wine Stable. If you prefer Wine Development or Wine Staging, replace winehq-stable with either winehq-devel or with winehq-staging.

$ sudo apt install --install-recommends winehq-stable

Verify the installation succeeded

$ wine --version