How to Install Wine 6.0 on Ubuntu 20.04

One of the concerns that users transitioning to Linux have is whether they can run their favorite applications on Linux. These could range from Windows games and simple application software. Thankfully, Wine allows users to run and execute Windows programs on Linux/Unix systems. Wine (Wine Is Not an Emulator) is an open-source compatibility layer that lets you execute Windows applications on a Linux/Unix environment. Wine functions as an interpreter that creates an execution layer for programs that can be run in Linux. It also provides a library "Winelib", with which developers can compile Windows applications to help port them into native Unix executables.

The latest version of Wine is Wine 6.0 which was released on January 14, 2021. It provides a plethora of enhancements that border on main areas such as:

  1. DirectShow and Media Foundation support.
  2. Text console redesign.
  3. Core modules in PE format.
  4. Vulkan backend for WineD3D.

In this guide, we give you sights on how to install Wine 6.0 on Ubuntu 20.04. We already have a guide on how to install Wine on Debian 10.

Step 1: Update the system

First and foremost, ensure that the package lists are updated by running the command:

$ sudo apt update

Step 2: Download and add Wine repository key

After updating the system, the next course of action is to download the repository key and add it to gpg keyring file. Use sudo apt-key list to list your trusted keys.

The following command add wine repository key:

$ wget -qO | sudo apt-key add -

Step 3: Add the Wine repository

Once the repository key is added, proceed and enable the Wine repository on your Ubuntu system as follows:

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

Step 4: Install Wine on Ubuntu 20.04

Now that the repository is ready, proceed to install Wine 6 on your Ubuntu 20.04 system.

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

Quite a number of packages will be downloaded.

After the installation is successfully completed, check the wine version with the command. Wine version 6.0 is installed on your machine.

$ wine --version

Step 5: Install .Exe programs using Wine

Wine can be launched directly from the terminal as follows:

$ wine

To get help while using the wine software:

$ wine --help

Let's now install a windows application, in this case Notepad++ which is a code editor. Download the .exe file from Github repository as follows.

$ wget

Then run the application using wine to install your downloaded .exe application.

$ wine npp.7.8.8.Installer.exe

Wine creates a configuration file and places it in the home directory. ~/.wine.

For .NET applications to work, you need to install Wine Mono installer.

Wine 6.0 on Ubuntu 20.04

The download takes about 3 minutes or so to complete.


Additionally, install the Wine Gecko package.

Wine 6.0 on Ubuntu 20.04

Eventually, Notepad ++ installer will pop up as shown. Just click 'Next' and accept the defaults.

You can launch notepad from the terminal with the command:

$ wine notepad


Wine comes in handy when you want to run Windows-only applications that you want to execute in a Linux environment. Hopefully, you can now install Wine on Ubuntu 20.04 and run windows applications.

Leave a Comment