How to Install Wine on Ubuntu 20.04 LTS

Install Wine on Ubuntu 20.04

In this article, we will have explained the necessary steps to install and configure Wine on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Wine is an open-source compatibility layer that allows you to run Windows applications on Unix-like operating systems such as Linux, FreeBSD, and macOS. Wine stands for Wine Is Not an Emulator. And it’s not, it is an interface that translates Windows system calls into equivalent POSIX calls used by Linux and other Unix-based operating systems.

Install Wine on Ubuntu 20.04

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade

Step 2. Check installed architectures.

First of all, The systems running with the 64-bit architecture needs to enable 32-bit architecture:

sudo dpkg --add-architecture i386

Next, download and add the repository key to your Ubuntu system:

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

Then, use the following commands to enable the Wine apt repository:

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

Step 3. Install Wine on Ubuntu system.

Install Wine by typing the following command:

sudo apt update 
sudo apt install --install-recommends winehq-stable

Once installation successfully completed. Use the following command to check the version of wine installed on your system:

$ wine --version
wine-5.0.3

Step 4. How to Use Wine.

To use wine we need to login to the GUI desktop of your Ubuntu system. After that Download a windows .exe file like PuTTY on your system and open it with Wine:

wine putty.exe

That’s all you need to do to install Wine on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. If you have questions or suggestions, feel free to leave a comment below.