How to install Wine on Ubuntu 20.04

Wine is open source software that enables Linux, Mac, FreeBSD, and Solaris users to run Windows applications without a copy of Microsoft Windows. With Wine software, you can install and play Windows high end games such as GTA, Need for Speed.

You can't run all Windows softwares and games with Wine. Also the software may not work properly in Wine. You can find your favourite games and applications at Wine Application Database that contains all details of compitible softwares.

In this article, we will go through installing Wine on Ubuntu 20.04.

First check your system architecture with below command.

dpkg --print-architecture

If it's 64 bit, then enable 32 bit architecture.

sudo dpkg --add-architecture i386 

and check with the command:

dpkg --print-foreign-architectures

Now add WineHQ repository key:

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

Add the repository in your system:

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

Update repository packages:

sudo apt update

Then install WineHQ stable release:

sudo apt install --install-recommends winehq-stable

This will take few minutes time and install Wine latest stable release, you can check version after installation completed.

wine --version

In the next article, we will discuss on how to install and run Windows softwares in Ubuntu using WineHQ.