UbuntuUbuntu Based

How To Install WineHQ on Ubuntu 22.04 LTS

Install WineHQ on Ubuntu 22.04

In this tutorial, we will show you how to install WineHQ on Ubuntu 22.04 LTS. For those of you who didn’t know, Wine (“Wine Is Not an Emulator”) is free and open-source software that provides the ability to run Windows software on non-Windows systems. 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.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the WineHQ on Ubuntu 22.04 (Jammy Jellyfish). You can follow the same instructions for Ubuntu 18.04, 16.04, and any other Debian-based distribution like Linux Mint.


  • A server running one of the following operating systems: Ubuntu 22.04, 20.04, 18.04, and any other Debian-based distribution like Linux Mint.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install WineHQ on Ubuntu 22.04 LTS Jammy Jellyfish

Step 1. First, make sure that all your system packages are up-to-date by running the following apt commands in the terminal.

sudo apt update
sudo apt upgrade

Step 2. Enable 32-bit Architecture.

If your system is 64-bit, first enable the 32-bit architecture support using the below command:

sudo dpkg --add-architecture i386

Step 3. Installing WineHQ on Ubuntu 22.04.

By default, WineHQ is not available on Ubuntu 22.04 base repository. Now run the following command below to add the WineHQ repository to your system:

echo deb [signed-by=/usr/share/keyrings/winehq.gpg] http://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -cs) main | sudo tee /etc/apt/sources.list.d/winehq.list

Next, import the GPG key:

wget -O- https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor | sudo tee /usr/share/keyrings/winehq.gpg

After the repository is enabled, now install the latest version of WineHQ using the below command:

sudo apt update
sudo apt install winehq-stable --install-recommends

Confirm the installation and check the installed build version of WineHQ:

wine --version

Once WineHQ is successfully installed, run the command “winecfg” from your Ubuntu terminal, which will install the required environments for Wine to operate:


Step 3.  How to Use Wine to Run Windows Apps.

To start the Wine program, you must give the full path to the .exe program. For example, we will start the Notepad++ program through wine:

wget https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.4.2/npp.8.4.2.Installer.exe

Use wine to install your downloaded .exe application:

wine npp.8.4.2.Installer.exe

Or you may right-click on an .exe file to run via “Wine Windows Program Loader” option:

Install WineHQ on Ubuntu 22.04 LTS Jammy Jellyfish

Congratulations! You have successfully installed WineHQ. Thanks for using this tutorial for installing the WineHQ on Ubuntu 22.04 LTS Jammy Jellyfish system. For additional help or useful information, we recommend you check the official WineHQ website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!
Back to top button