How To Install WineHQ On Ubuntu 22.04 LTS

Are you interested in running windows applications on Linux operating systems? Try out WineHQ. It’s a Linux developed compatibility layer that allows users to run windows applications with ease. It includes a software library called “winlib” that enables developers to easily execute different windows applications and other operating systems.

This tutorial will teach you how to install WineHQ on Ubuntu 22.04 through different methods.

How To Install WineHQ on Ubuntu 22.04?

You can install WineHQ on Ubuntu 22.04 through following methods:

  • Install WineHQ via official Wine repository
  • Install WineHQ via Ubuntu Repository

Method 1: Install WineHQ via official Wine repository

You can also install the latest WineHQ through Wine repository as well as it includes the latest version of the tool. To complete the installation through Wine repository, use the following steps.

Step 1:  Add a Wine repository key using the following command.

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

Step 2: Now, add the repository by adding the following command. 

$ sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ impish main'

Step 3: After adding the repository, update the package list using the following command.

$ sudo apt update

Once the packages are updated, you are now good to install WineHQ on Ubuntu 22.04. However, there are three versions of WineHQ in the repository:

WineHQ Stable : To install WineHQ stable release, you can use the following command.

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

WineHQ Developer : For the developers, this version of WineHQ would be an ideal pick that can easily be installed using the following command.

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

WineHQ Staging : WineHQ Staging version contains the bug fixes and features that haven’t been included in the development branch yet. To install WineHQ Staging, you can use the following command.

$ sudo apt install --install-recommends winehq-staging

To confirm the version, use the following command.

$ wine --version

Method 2: Install WineHQ via built-in Ubuntu repository

The Ubuntu repository is another method to install WineHQ on Ubuntu 22.04. The installation is successful once you perform the below-mentioned steps:

Step 1: Before installing a new package, it would be ideal to update the apt package system using the following command.

$ sudo apt update

Step 2: After the update, check your Ubuntu architecture through the following command so that it will help you to install WineHQ based on your OS architecture.

$ lscpu

Step 3: Now, add the architecture through the following command incase if you don’t have i386 architecture.

$ sudo dpkg --add-architecture i386

Update the package list again using Step 1.

Step 4: Next, execute the following command to install WineHQ on Ubuntu 22.04.

$ sudo apt install wine64 wine32

Step 5: Check the WineHQ version with the help of the following command.

$ wine --version

Removing WineHQ from Ubuntu Repository

To remove WineHQ installed from the Ubuntu repository, use the following command in the terminal.

$ sudo apt remove --autoremove wine64 wine32

Install Windows Application on Ubuntu 22.04 using WineHQ

Now, the final task is to perform the installation of Windows applications on Ubuntu 22.04 using WineHQ. In that case, you will first download a windows application on Ubuntu in .exe format. In our case, we have downloaded the WinRAR application which is a widely used windows application used to extract archive files.

After completing the download, use the following commands in the terminal to run the application on Ubuntu 22.04.

$ cd ~/Downloads
$ wine <App_name>

When you try to install the application for the first time, you may need to install the “Wine Gecko Installer” package. Click on the “Install” button to install the package.

Once the package installation is completed, the WinRAR installer window will appear on your screen and you can easily install them by clicking on the “Install” button to begin the installation.

This will install WinRAR on Ubuntu 22.04 desktop.

You can install other windows applications as well. For that, first download the .exe file and then use the above wine command to install the application.


WineHQ is a compatibility layer that is designed especially for Linux users allowing them the opportunity to run Windows applications on Linux environments. Several methods are discussed in this article to install WineHQ on Ubuntu 22.04, enabling you to pick the one according to your choice. Further, you can install different versions of WineHQ as well based on your interest. Once you download it, you can then install the application using the “wine” command with the application name.

About the author

Awais Khan

I'm an Engineer and an academic researcher by profession. My interest for Raspberry Pi, embedded systems and blogging has brought me here to share my knowledge with others.