Red Wine in a GlassHow to Install Wine on Elementary OS 6CSS HTML Validator Logo
HOME Tutorials & Essays About
Tutorials & Essays About

August 12, 2021

Elementary OS 6 screen shot

How to Install Wine on Elementary OS 6

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

Update the package database.

$ sudo apt update

apt-add-repository (a member of the software-properties-common package) is needed to access the WineHQ repository.

$ sudo apt install software-properties-common

Add the WineHQ Ubuntu repository

Get and install the repository key.

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

$ sudo -H gpg -o /etc/apt/trusted.gpg.d/winehq.key.gpg --dearmor winehq.key

Add the repository.

$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'

Update the package database.

$ sudo apt update

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


Facebook Logo   Twitter Logo  Reddit Logo   Quora Logo

Consider sharing your experience

Did you find this page helpful? Have constructive feedback? Wisdom to share?

Send email to Email Address

Privacy PolicyNew Window Icon

A.Z. (initials or other identifier) (date will be here)

… (your comment appears here) …