In this article, we will have explained the necessary steps to install WineHQ on Ubuntu 22.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with
sudo privileges. All the commands in this tutorial should be run as a non-root user.
Wine (originally an acronym for “Wine Is Not an Emulator”) is an execution layer that allows applications developed for Windows to run on Linux, macOS, & BSD. Instead of simulating internal Windows logic like a virtual machine or emulator, Wine translates Windows API calls into POSIX calls on the fly, eliminating the performance and memory penalties of other methods and allowing you to cleanly integrate Windows applications into your desktop.
- Operating System with Ubuntu 22.04
- Server IPv4 Address with Superuser Privileges (Root Access)
- Gnome Terminal for Linux Desktop
- PuTTy SSH client for Windows or macOS
- Powershell for Windows 10/11
- Familiar with APT Commands
Install WineHQ on Ubuntu 22.04 LTS
Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.
sudo apt update sudo apt upgrade sudo apt install software-properties-common apt-transport-https wget
Step 2. Enable the i386 Architecture.
In case you have a 64-bit system, you need to execute this command to add the is386 architecture to run Wine:
sudo dpkg --add-architecture i386
Step 3. Install WineHQ on Ubuntu.
Wine installation is quite easy and straightforward since the WineHQ package is accessible in the repositories of the majority of Linux distributions. Now execute the following command on the command line:
sudo apt install --install-recommends wine64 wine32
Run the command below to check the installed Wine version:
Step 4. Using Wine on Linux.
As you may know, the administrative drive in Windows is designated as C. We can also follow the same convention and name a drive in Wine as C. In this drive, we will install the desired Windows application we want to use. Also, the Wine has its own name in the directory. To give it another name, we need to change the Wine prefix. Use this command to change the prefix:
It is also easy to use WIne. Just pass an EXE file as a parameter to run your Windows application as shown below:
That’s all you need to do to install WineHQ on Ubuntu 22.04 LTS Jammy Jellyfish. I hope you find this quick tip helpful. For further reading on the installation of the WineHQ, please refer to their official knowledge base. I hope this article was helpful to you. If you find it useful, don’t forget to share it with your friend and family. Also, if you have any questions, please feel free to ask in the comments section. We are always there to assist you.