Sunday, November 22, 2026
TR
LinuxOpen Source

Installing Wine 5.0 on Ubuntu 20.04

Installing Wine 5.0 on Ubuntu 20.04
Contents
  1. Step 1 – Prerequisites
  2. Step 2 – Install Wine on Ubuntu 20.04
  3. Step 3 – Test the Wine Version
  4. Step 4 – Using Wine (Optional)

Wine (Wine Is Not an Emulator) is an open-source application that allows software developed for Microsoft Windows to run on Unix-like operating systems. With the help of Wine, you can run Windows software on a Linux system. Wine 5.0 is the latest version available for installation on Ubuntu systems.

This tutorial will help you install Wine on Ubuntu 20.04 LTS systems.

Step 1 – Prerequisites

First, systems running on a 64-bit architecture need to have the 32-bit architecture enabled.

sudo dpkg --add-architecture i386 

Then, download the repository key and add it to your system.

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

After that, use the following command to enable the Wine apt repository on your system.

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

Step 2 – Install Wine on Ubuntu 20.04

Your system is ready for the Wine installation. Use the following commands to install the Wine packages from the apt repository. The --install-recommendsoption will install all the packages recommended by the winehq stable releases on your Ubuntu 20.04 system.

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

If you encounter an unmet dependencies error during installation, use the following commands to install Wine on Ubuntu using aptitude.

sudo apt install aptitude 
sudo aptitude install winehq-stable 

This will install Wine with all the required packages on your Ubuntu 20.04 system.

Step 3 – Test the Wine Version

The Wine installation on your Ubuntu system has completed successfully. Use the following command to check the Wine version installed on your system.

wine --version
wine-5.0.1

Step 4 – Using Wine (Optional)

To use Wine, we need to log in to the GUI desktop of your Ubuntu system. After that, download a Windows .exe file such as PuTTY

wine putty.exe

Kerim Koç

Systems and infrastructure engineer. I write about Linux, open source, high availability and security.