How to run Windows apps on your Ubuntu PC

It's possible to run a Windows app on your Ubuntu PC. Wine app for Linux makes this possible by forming a compatible layer between the Windows and Linux interface. Let's check out with an example.

Allow us to say that there are not as many applications for Linux compared to Microsoft Windows. Linux has a vast world of free and open-source applications (FOSS) that should get almost all of your work done, but if you’re in a situation where you need to install and run a Windows program on your Linux system, don’t worry, we’ve got it covered too!

Wine for Linux allows you to run any other Windows application on your Linux desktop. Developers are still working to improve it, and it’s getting better every day. Having said that you may find some apps not working correctly.

Using a Windows app on Ubuntu

In this tutorial, we are going to walk you through the installation of Wine. Moreover, we will show you how to know whether the application can work with Wine or not. This guide can be divided into the following three parts:

  1. Wine Package Installation On Ubuntu.
  2. Search and Install Windows Application Using Wine.
  3. Uninstall Wine Completely From Ubuntu.

The following tutorial was performed on the Ubuntu machine, so before starting this guide, you need to make sure that your system is up to date using the following commands inside a Terminal. Or, if you prefer the GUI way, you can use the Ubuntu Software Center.

sudo apt update
sudo apt upgrade

Wine Package Installation On Ubuntu

Before starting, you need to check if your system is 32-bit or 64-bit. Then choose the suitable Wine version.

Step 1. Enter the following command to find out if your system is 32-bit or 64-bit.

uname -m

If you get output like the below then your system is 64-bit otherwise its 32-bit:

Check Ubuntu Architecture
Check Ubuntu Architecture

Step 2. (Skip this step if your system is 32-bit.) If your Ubuntu is 64-bit, then you need to run the following command to add the Wine i386 architecture before proceeding with the next steps.

sudo dpkg --add-architecture i386

Before Installing the Wine 64-bit Version Add the i386 Architecture
Before Installing the Wine 64-bit Version Add the i386 Architecture

Step 3. Use the following command to add the Wine signing key:

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

Add the Wine Signing Key
Add the Wine Signing Key

Step 4. To add the latest available Wine repository.

sudo apt-add-repository 'deb http://dl.winehq.org/wine-builds/ubuntu/ artful main'

Add the Latest Repository from the WineHQ
Add the Latest Repository from the WineHQ

Step 5. Wine has two available versions to download. The stable version and the development version. We recommend the stable version to make sure your installation is reliable.

Install the stable version:

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

Install The Latest Stable Release of Wine
Install The Latest Stable Release of Wine

To install the development version:

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

Step 6. To ensure that Wine has installed successfully, use the following command to fish out the Wine version.

wine --version

Wine Succesfully Installed
Wine Successfully Installed

Search and Install Windows Application Using Wine

As mentioned earlier, you won’t find all the Windows applications, but Wine developers are making tremendous progress. First, you need to search for the Windows application you need to use. Then download, install, and open it using Wine.

Step 1. Using your favorite internet browser, open the Wine official website to search for Windows applications that are available to be used with Wine.

Launch Wine website

Step 2. From the left panel on the Wine website, select “Browse Apps.”

Select Browse Apps
Select Browse Apps

Step 3. Next, search for the application you want to download.

Start Searching For a Certain Application
Start Searching For a Certain Application

Step 4. In this example, we will search for the Notepad++ application to download. Then click on the application name to get more information.

Search For Application And Get Results
Search For Application And Get Results

Step 5. You should get all the available versions from the Notepad++ application. Choose any one and click to open it.

Select The Version You need to Download
Select The Version You need to Download

Step 6. To download the required version, click on the given URL.

Download Link
Download Link

Step 7. Choose the “.exe” file to download.

Select The Installer exe File
Select The Installer exe File

Step 8. Save your file and click OK to download.

Save Your File
Save Your File

Step 9. The download finishes successfully.

Application Downloaded Successfully
Application Downloaded Successfully

Step 10. Move to the download directory.

Move To The Download Directory
Move To The Download Directory

Step 11. Right-click on the downloaded application and select to “Open With Wine Windows Program Loader” option.

Select Open With Wine
Select Open With Wine

Step 12. Wine should start to perform configuring and should create some directories.

Wine Configuration Message
Wine Configuration Message

Step 13. Typically, Wine may need to install some more packages to run the downloaded application. Click to install .Net.

Select The Install Button
Select The Install Button

.Net download and installation in progress.

Select The Install Button To Install Gecko Package
Download Inprogress

Wine requires to install Gecko, click the “Install” button.

Select The Install Button To Install Gecko Package
Select The Install Button To Install Gecko Package

Gecko download and installation in progress.

Download Required Gecko Package
Download Required Gecko Package

Step 14. Now Notepad++ application installer will open, select your preferred language and click OK.

Press Ok Button To Install Notepad++
Click OK Button To Install Notepad++

Step 15. Click Next to continue the installation.

Press Next To Continue
Click Next To Continue

Step 16. Read the license agreement and click, I Agree.

Agree On License Terms and Conditions
Agree On License Terms and Conditions

Step 17. Installation location, as you can see, the installation will be the same as Windows.

Select Installation Location
Select Installation Location

Step 18. Custom your installation if you need it.

Custom Your Installation
Custom Your Installation

Step 19. Now Notepad++ will extract its required files.

Installation Is Inprogress
Installation Is Inprogress

Step 20. Notepad++ has installed successfully on Ubuntu using Wine.

Installation Completed Successfully
Installation Completed Successfully

Step 21. That’s it! You should be able to launch the Notepad++ application.

Welcome To Notepad++ On Ubuntu Using Wine
Welcome To Notepad++ On Ubuntu Using Wine

Uninstall Wine Completely From Ubuntu

Just in case if you do not want to use the Wine application anymore, you can altogether remove it from Ubuntu, please follow the below steps carefully.

Step 1. Purge Wine Stable version.

sudo apt-get purge winehq-stable

Uninstall Wine From Ubuntu
Uninstall Wine From Ubuntu

Step 2. Remove all the Wine related directories from your machine. Be careful while using the rm command because any single error in the command you may end up messing your system.

rm ~/.config/wine/ -rf
rm -rf $HOME/.wine
rm -f $HOME/.config/menus/applications-merged/wine*
rm -rf $HOME/.local/share/applications/wine
rm -f $HOME/.local/share/desktop-directories/wine*
rm -f $HOME/.local/share/icons/????_*.xpm

Completly Remove Wine Directories
Completely Remove Wine Directories

Now you should have uninstalled Wine entirely from your machine.

Conclusion

That’s all about how to install the Wine application, install Windows app, and use it on your Ubuntu PC.

Hend Adel
Hi! I'm Hend Adel, a freelancer technical geek with successful experience in Database, Linux and many other IT fields. I help to build solutions to suit business needs and creating streamlined processes. I love Linux and I'm here to share my skills via FOSS Linux! Thanks for reading my article.

2 COMMENTS

  1. As with most things Ubuntu, it quicly becomes obsolete and doesn’t work anymore:

    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    winehq-stable : Depends: wine-stable (= 5.0.2~bionic)…

    E: Unable to correct problems, you have held broken packages.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,281FansLike
386FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

MUST READ

Buyers who wish to go for a machine that is based on Linux often show interest in Chromebooks due to the form factor and extended battery life capabilities. Although ChromeOS power these machines, users can still miss out on a more genuine Linux experience. For those who happen to agree, the new Lemur Pro by System76 might get some heads turning.
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.

15 Tar command in Linux uses with examples

Tar is a famous utility that is basically used for collecting multiple files in a single archive. This file is often called a 'tarball'. Today, we are going to tell you about the different things you can do with tarballs using the tar command, with practical examples.

3 Best Ways to Uninstall Software on Ubuntu

Uninstallation of programs can be done by graphical way using the Ubuntu Software Center, and the Synaptic Package manager. Command-line way of doing it is also possible using apt-get and aptitude commands. We shall discuss each one of them in detail.

Linux Vs. Windows: 10 Key Differences to Know

Merely going by statistics, it is most likely that you are a Windows user.  After all, around  87.70% of all PCs around the world run on Windows with Linux, only accounting for 2.32%.

Test drive a Linux distro online before you hate it

Enter DistroTest.net, a website that allows Linux users to test various distros online, without downloading the ISO or installing the distro. With DistroTest.net, you can check a distro with no muss, no fuss.