WINE is a windows compatibility layer for Linux. WINE is used to run Windows applications on Linux.  In this article, I am going to show you how to install and configure WINE on Ubuntu 18.04 LTS. So, let’s get started.

Enable 32-bit Support:

In order to run Wine, you need to enable 32-bit support on Ubuntu 18.04 LTS.

To enable 32-bit support on Ubuntu 18.04 LTS, run the following command:

$ sudo dpkg –add-architecture i386

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Adding Required Packages Repositories for Wine:

The latest version of Wine (Wine 5) is not available in the official package repository of Ubuntu 18.04 LTS. But you can easily add the official package repository of Wine on Ubuntu 18.04 LTS and install Wine 5 from there.

First, download the GPG key of the official Wine package repository with the following command:

$ wget -nc https://dl.winehq.org/wine-builds/winehq.key

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

The GPG key should be downloaded.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Now, add the Wine GPG key to Ubuntu 18.04 LTS with the following command:

$ sudo apt-key add winehq.key

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Now, add the official Wine package repository with the following command:

$ sudo apt-add-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main’

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

The official Wine package repository should be added.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Wine depends on some libraries that are not available in the official package repository of Ubuntu 18.04 LTS. So, we will have to download and install it from the OpenSUSE’s Wine repository.

Now, download the OpenSUSE Wine repository’s GPG key with the following command:

$ wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/


xUbuntu_18.04/Release.key

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

The GPG key should be downloaded.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Now, add the GPG key to Ubuntu 18.04 LTS with the following command:

$ sudo apt-key add Release.key

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Now, add the OpenSUSE Wine repository to Ubuntu 18.04 LTS with the following command:

$ echo “deb http://download.opensuse.org/repositories/Emulators:/Wine:


/Debian/xUbuntu_18.04 ./”
| sudo tee /etc/apt/sources.list.d/wine-obs.list

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Now, update the APT package repository cache with the following command:

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

The APT package repository cache should be updated.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Installing Wine 5 on Ubuntu 18.04 LTS:

Now, you’re ready to install Wine 5 on your Ubuntu 18.04 LTS machine.

To install Wine 5, run the following command:

$ sudo apt install –install-recommends winehq-stable

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

To confirm the installation, press Y and then press .

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

APT should start downloading all the required packages from the internet.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Once all the packages are downloaded, APT should start installing them.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

At this point, Wine 5 should be installed.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Configuring Wine 5:

Now that Wine 5 is installed, you can configure it.

To configure Wine 5, run the winecfg command as follows:

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Wine will do some initial configuration. It may take a while.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Wine will ask you to install the wine-mono package. Click on Install.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

wine-mono package is being installed.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

After wine-mono is installed, you will be asked to install Gecko. Click on Install.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Gecko package is being installed.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

After Gecko is installed, you will be asked to install Gecko. Click on Install.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Gecko package is being installed.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Once everything is installed, you should see the Wine configuration window.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Click on the About tab. You should be running Wine 5.0.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

From the Applications tab, you can select your Windows version.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

From the Libraries tab, you can manage Windows libraries used by the installed Windows applications.

You can add override for libraries using the dropdown menu. Select your desired library and click on Add to add it as an override library.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

You can also select an override library and click on Edit… to change override settings for the library.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Select your desired override setting and click on OK.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

You can also remove override libraries. Just select the one you want to remove and click on Remove.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Finally, click on Apply for the changes to take effect.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

From the Graphics tab, you can configure graphics settings for the Windows apps.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

From the Desktop Integration tab, you can install themes, change themes, change theme settings, font size, colors etc. for the Windows apps.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

From the Audio tab, you can configure audio for the Windows apps.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

From the Drives tab, you can map a Linux path to certain Windows drive letter and access them from your Windows apps.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Installing Windows Apps Using Wine:

Once Wine 5 is installed and configured, you can easily install Windows apps on your Ubuntu 18.04 LTS machine.

In the ~/Downloads directory, I have Notepad windows installer file npp.7.8.4.Installer.exe as you can see in the screenshot below.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Now, run npp.7.8.4.Installer.exe installer with Wine 5, run the following command:

$ wine npp.7.8.4.Installer.exe

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

As you can see, the Notepad installer is running. Now, you can install Notepad as usual.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Notepad setup window.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Notepad is being installed.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Notepad is installed.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Notepad is running on Ubuntu 18.04 LTS using Wine 5.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Once Notepad is installed, you should be able to access it from the Application Menu of Ubuntu 18.04 LTS as you can see in the screenshot below.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Notepad started from the Application Menu of Ubuntu 18.04 LTS. It’s fully functional.

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Not all Windows application will function properly under Wine. Some applications work without any problem, some work with limited features, some work after a few tweaks, some doesn’t work at all.

Before you try to install any Windows software using Wine on Ubuntu 18.04 LTS, check whether Wine can run it in the official application database website of Wine.

So, that’s how you install and configure Wine 5 on Ubuntu 18.04 LTS. Thanks for reading this article.

About the author

Install and Configure WINE on Ubuntu 18.04 LTS ubuntu Windows Compatibility

Shahriar Shovon

Freelancer & Linux System Administrator. Also loves Web API development with Node.js and JavaScript. I was born in Bangladesh. I am currently studying Electronics and Communication Engineering at Khulna University of Engineering & Technology (KUET), one of the demanding public engineering universities of Bangladesh.