How to Install Wine 5 on Linux Ubuntu 18.04

There is an easier way to run EXE programs (Windows) on Linux without the help of a VirtualBox emulator, namely using Wine. The program can run most programs on the computer smoothly, but not all of them are perfect, sometimes there are problems that suddenly occur unexpectedly.

Although it’s not 100% perfect, it’s solid enough to run Windows programs without the need for an emulator. On the WineHQ website also provides any Windows programs that support and not based on user trials. So you can check there first before trying to install it on the computer.

Installing Wine on Ubuntu 18.04 is actually very easy and fast, but the repository only provides 1.x version, which is an older version. And for now, I recommend installing version 5.x, because it is new version when this article was written.

Tutorial on Installing Wine 5 on Ubuntu 18.04

This method can also be applied to Linux Mint 19. If you have previously installed an older version of Wine, it’s a good idea to uninstall it first so that there are no conflicts in the installation that might occur later.

Please read and follow the procedure for installing Wine 5 from here.

1. Enable 32-bit Architecture

If your computer system is running on 64-bit, please apply the code below to the terminal so that later 32-bit programs can also be opened properly.

sudo dpkg --add-architecture i386

2. Import Repository Key

Before adding it, it’s a good idea to also make sure some packages are needed. Please use the following command:

sudo apt-get update
sudo apt-get -y install software-properties-common wget

After that to install the Repository Key please use this command:

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

If successful, a notification will appear “OK” on the terminal.

3. Adding Wine Repository

After import keyNow, you can add the repository so that Wine can start installing. Here’s the command:

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport

4. Install Wine 5 on Ubuntu 18.04

Finally got to the installation stage. Here is the command:

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

Wait for the process to finish. This may take a little while as it requires to download other required packages. Also make sure the internet connection is smooth so the process is fast.

5. Check Wine Version

If the installation process is complete, you can now check the current Wine version with the command below:

wine --version

Of course now the version is 5.x and ready to be used to run various Windows programs.

Also read: Tutorial on Installing RDP on an Ubuntu VPS

Check the Compatibility of Windows Programs that Can Run on Wine

Some people may hesitate to try a program that has a large size, because they are afraid that it will not work fully and it will be a waste of time to download it. For that, please first check the compatibility of the Windows program through the WineHQ website.

Please go to page AppDB on the WineHQ website to find the program you want to install. There are more than 20 thousand registered program name. If the program you want to use is popular enough, of course there will be reviews from users.

On the program page there will be several sections, such as Test Result which displays information on test results along with the specifications of the computer used. And there is also a part Known Bugs which displays all errors that have occurred while running it.

Do you have any other questions regarding the procedure for installing Wine 5 on Ubuntu 18.04 above? Or maybe you want to add something else, please say it in the comments column below.

Hopefully useful and good luck