How to install Wine 4.0 on Ubuntu 18.04 & Linux Mint 19

Wine is short for Wine Is Not an Emulator. It's popularly used for running Microsoft Windows applications

Wine 4.0 was launched a few days ago and comes with a bucketful of cool features and improvements to enhance your experience when running Windows application and games on the Linux platform. For those who are not familiar with Wine, Wine is an application in Linux that allows Windows users to seamlessly run their applications and games on Linux.

Wine is short for Wine Is Not an Emulator. It’s popularly used for running Microsoft Windows applications such as Notepad. It’s a compatibility layer that comes in handy when users want to run applications/games/services that are not available in Linux yet. In this article, we are going to install Wine 4.0 on Ubuntu 18.04 and Linux 19.

Older versions of wine were quite unstable and some Windows application could not run smoothly without hiccups. The latest release offers a myriad of improvements and bug fixes.

Some of the improvements made on Wine 4.0 include

  • Vulkan support
  • Direct3D 12 support
  • Game controllers support
  • High-DPI support on Android
  • Support for HID game controllers
  • Bug fixes

For a comprehensive list of new features and improvements, visit Wine’s changelog

Having seen what’s new on the new release of Wine, Let’s now see how we can install it on Ubuntu 18.04 and Mint 19.

Installing Wine 4.0 on Ubuntu 18.04 and Linux Mint 19

Before you proceed to install Wine 4.0, ensure that you have removed any pre-existing Wine repository or PPA from your system.

Step 1) Adding i386 architecture

If you are running a 64-bit system, you need to add the i386 architecture to your Ubuntu system. To achieve this execute the command:

$ sudo dpkg --add-architecture i386

Step 2) Downloading and installing Wine HQ signing Keys & repository Key

Let’s update our system repositories.

$ sudo apt update

Next, we are going to download the repository keys for Wine.

$ wget -qO- | sudo apt-key add -


install wine 4.0 add wine HQ key
install wine 4.0 add wine HQ key

To add the repository run:

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


add wineHQ repositories
Add wineHQ repositories

If by any chance you are running Ubuntu 18.10, then run:

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

Step 3) Installing Wine 4.0

Two options are available when installing wine

  1. wineHQ stable
  2. WineHQ development

WineHQ stable

To set up Wine from WineHQ software packages execute the command

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

Once installed you can verify the version by running

$ wine --version


check wine version
check wine version

WineHQ development

To install Wine from the development platform run the command below

$ sudo apt-get install --install-recommends winehq-devel

Again, you can verify the version of wine by running

$ wine --version


check wine version
check the wine version

Step 4) Launching and testing Wine 4.0

Once successfully installed, it’s time now to roll up our sleeves and test our new application.

Run the command below to open up the GUI application:

$ winecfg

This will begin creating a configuration file in your home directory.

wine configuration setup
wine configuration setup

Thereafter, Wine’s configuration panel below will be launched as shown.

wine GUI
wine GUI

To verify the version of wine, click on the ‘About’ tab located at the far right corner.

verify wine version
verify wine version

Step 5) Installing a Windows Application with wine

We are going to demonstrate how you can install your favorite Windows application using Wine.

In this example, I have downloaded Notepad ++ Windows set up.

To install it, simply right click on the installer and select ‘Open with Wine Windows Program Loader’.

run windows application with wine
run windows application with wine

Thereafter, the installation process will commence.

installation of windows app with wine
installation of windows app with wine

Follow the wizard all the way through to the end.

Notepad++ setup in Linux
Notepad++ setup in Linux

Finally, we have our Notepad all set up and ready to use!

notepad set up with wine 4.0
notepad set up with wine 4.0


If you have come this far, congratulations! You have successfully installed Wine 4.0 and deployed a windows application. Remember that while most Windows application will work, some won’t be stable because wine is still in development and developers are working around some bugs affecting operations of some applications.

Feel free to share this article on your social platforms and leave a comment.

James Kiarie
Hey! This is James, a tech enthusiast, and a certified Linux professional. I derive immense gratification in learning more about FOSS technologies more keeping tabs on the latest tools and features in several Linux distributions. Away from Linux, I love swimming, hiking and playing video games.



Please enter your comment!
Please enter your name here




The 10 Best Linux Server Distros For Home And Businesses

By the year 2020, it is estimated that there are close to 600 Linux distributions in the market. It includes both servers and Desktop versions; therefore, if you are looking for lightweight Linux distribution for your old PC or a reliable desktop version for employees in your organization, you may be overwhelmed with the number of choices for finding one for your use.

How to list the installed Packages on Ubuntu

It is only natural to start installing more and more software on your Ubuntu PC once you start using it. Similarly, it is also natural to lose track of the different packages that you have installed on your system. Eventually, you may be overwhelmed with the number of packages in your system and with the ones you hardly used.

How to configure the Ubuntu Firewall (UFW)

A properly configured firewall is a crucial part of establishing preliminary system security. Keeping this in mind, here we will go over how to configure the firewall on your Ubuntu PC.

How to install and use Zoom on Ubuntu

If you work from home or hold meetings with other people remotely, then you have probably heard of Zoom. It is one of the popular video conferencing software app available today.

How to Restart Networking on Ubuntu

Sometimes resetting your Ubuntu network is required to apply some network configurations like changing your IP from Automatic DHCP to static one. Restarting the network is not a big deal, but should be done carefully.

How to install Chrome and Chromium Browser on Pop!_OS

By default, Pop!_OS comes with Mozilla Firefox Browser installed to help you browse the internet. It is a reliable web browser covering almost all the features and functionalities you need. However, working with Firefox is noticeably different compared to Google Chrome, especially from the speed point of view. Google Chrome is a tad quicker than Firefox.


Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

6 best task managers for Linux

One of the essential tools in any Linux distribution is a Task Manager. It is a system monitor application that gives you a report of all programs running on your computer and the status of your RAM and CPU usage.

5 Best ways to encrypt files in Linux

Privacy is something that almost all of us have concerns about. Many people switch over to Linux because of its better privacy features. In this time, where many people believe (quite rightly so) that privacy doesn't exist anymore, Linux provides a ray of hope. Distributions like Tails OS are specifically designed for that purpose.

How to dual-boot Ubuntu and Fedora on your PC

Every Linux distribution has its capabilities and preferences as per the user requirements. That brings forth the need to run different distros on one laptop. For example, a CyberSecurity enthusiast might prefer to use Ubuntu for development and Kali Linux for penetration testing.

The 6 Best Download Managers for Fedora

It is a well-known fact that using download managers can help improve download speeds as compared to web browsers. Apart from the inbuilt download manager wget on Fedora, just as on any distribution that is based on GNU/Linux package, there are more options to explore.