How to Installing Wine 5.0 on Ubuntu 20.04
At the time of writing this article, the latest major release of the Wine is version 5.0.
In this section, we will provide a step by step instructions about how to install Wine version 5.0 on Ubuntu 18.04.
If you are running 64-bit Ubuntu system enable the 32-bit architecture and update the packages list:
sudo dpkg --add-architecture i386sudo apt update
Import the WineHQ repository’s GPG key using the following
wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
Add the WineHQ repository to your system:
sudo apt install software-properties-commonsudo apt-add-repository 'deb http:
//dl.winehq.org/wine-builds/ubuntu/ bionic main'
Wine 5.0 depends on the FAudio package, which is not included in the default Ubuntu 18.04. We’ll install FAudio from the OBS repository. Enter the command below to import the GPG key and enable the OBS repository:
wget -qO- https://download.opensuse.org/repositories/Emulators:/Wine:
/Debian/xUbuntu_18.04/Release.key | sudo apt-key add -sudo sh -c
'echo "deb https://download.opensuse.org/repositories/Emulators:
/Wine:/Debian/xUbuntu_18.04/ ./" > /etc/apt/sources.list.d/
obs.list'sudo apt update
Install Wine 5.0 package by typing:
sudo apt-get install --install-recommends winehq-stable
This will install a bunch of packages. Once completed, verify the Wine installation by typing:
The output should look something like this:
At this point, Wine 5.0 has been installed and ready to be used.
To configure Wine run the
command in your terminal which will install Mono and Gecko and set up
the Wine environment:
A dialog will appear asking whether you want to install the wine-mono package:
Click on the “Install” button, and the installation will start. Once done, a new dialog will appear prompting you to install Gecko. Again click on the “Install” button.
When the installation is completed, the Wine configuration dialog will be shown. Here you can configure various Wine settings. The default settings should be fine in most cases. Once finished, close the dialog box.
Installing Notepad++ on Ubuntu
Now that Wine is installed and configured, we will explain how to install Windows applications on your Ubuntu.
In this tutorial, we will install Notepad++, which is is one of the most popular text editors among Windows users. Launch your browser and download the Notepad++ installation file from the Notepad++ download page .
Once the download is complete, start the installation by
right-clicking on the
.exe file and
selecting “Open With Wine Windows Program Loader”.
The installation wizard will start, select the language and install Notepad++ in the same way as you would install any application on your Windows computer.
are installed in the
To start the Notepad++ editor navigate to the
~/.wine/drive_c/Program Files (x86)/Notepad++
And double click on the
SNAP Install Wine
Install using the command line
sudo snap install wine-platform-runtime