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:
- Wine Package Installation On Ubuntu.
- Search and Install Windows Application Using Wine.
- 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:
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
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 -
Step 4. To add the latest available Wine repository.
sudo apt-add-repository 'deb http://dl.winehq.org/wine-builds/ubuntu/ artful main'
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
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
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.
Step 2. From the left panel on the Wine website, select “Browse Apps.”
Step 3. Next, search for the application you want to download.
Step 4. In this example, we will search for the Notepad++ application to download. Then click on the application name to get more information.
Step 5. You should get all the available versions from the Notepad++ application. Choose any one and click to open it.
Step 6. To download the required version, click on the given URL.
Step 7. Choose the “.exe” file to download.
Step 8. Save your file and click OK to download.
Step 9. The download finishes successfully.
Step 10. Move to the download directory.
Step 11. Right-click on the downloaded application and select to “Open With Wine Windows Program Loader” option.
Step 12. Wine should start to perform configuring and should create some directories.
Step 13. Typically, Wine may need to install some more packages to run the downloaded application. Click to install .Net.
.Net download and installation in progress.
Wine requires to install Gecko, click the “Install” button.
Gecko download and installation in progress.
Step 14. Now Notepad++ application installer will open, select your preferred language and click OK.
Step 15. Click Next to continue the installation.
Step 16. Read the license agreement and click, I Agree.
Step 17. Installation location, as you can see, the installation will be the same as Windows.
Step 18. Custom your installation if you need it.
Step 19. Now Notepad++ will extract its required files.
Step 20. Notepad++ has installed successfully on Ubuntu using Wine.
Step 21. That’s it! You should be able to launch the Notepad++ application.
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
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
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.
6 comments
Works perfectly. Many thanks
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.
ummm. I get to step 4 and then it fails.
This is 2020 not 1965 why do we a have to type so much text to install things.
AHHHH NOOO HELP PLZZZZ
zed@zed-HP-EliteBook-8470p:~$ sudo apt-add-repository ‘deb http://dl.winehq.org/wine-builds/ubuntu/ artful main’
Hit:1 http://za.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://ppa.launchpad.net/cybermax-dexter/sdl2-backport/ubuntu bionic InRelease
Hit:3 http://dl.winehq.org/wine-builds/ubuntu artful InRelease
Hit:4 http://za.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:5 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:6 http://za.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:7 https://dl.winehq.org/wine-builds/ubuntu groovy InRelease
Hit:8 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Hit:9 https://dl.winehq.org/wine-builds/ubuntu hirsute InRelease
Hit:10 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
Hit:11 https://dl.winehq.org/wine-builds/ubuntu eoan InRelease
Reading package lists… Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/za.archive.ubuntu.com_ubuntu_dists_bionic_main_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
excellent! is very important gecko!
After several years experimenting with Wine (and only getting it to work in a few instances), and reading some of the comments here, I can only conclude that using Wine is is too hard for the average user so using Windows apps on Ubuntu with Wine is currently a no go 🙁