# How to install Wine on Ubuntu 20.04?

{% embed url="<https://youtu.be/o50PhGWJfSE>" %}

### **Overview**

Wine is a compatibility layer that allows users to run Windows applications on Unix-like operating systems, such as Linux, macOS, and FreeBSD. Wine is not an emulator, but rather a translation layer that maps Windows system calls to their equivalent calls in the Unix-like operating system. Wine allows users to run a wide range of Windows applications, including games and productivity software, on their preferred operating system without the need to install a separate copy of Windows.

In this tutorial, we'll show you how to install Wine on Ubuntu 20.04.

### **Prerequisites**

There are certain prerequisites that need to be met before you begin.&#x20;

* A system running Ubuntu 20.04
* A user account with sudo privileges
* Stable internet connection

### **Get Started**

**Step 1**: Update the package lists and upgrade any outdated packages.

```
sudo apt update && sudo apt upgrade
```

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1307_image-2023-4-21_16-5-35.png)

**Step 2**: Enable the 32-bit architecture on your Ubuntu system.

```
sudo dpkg --add-architecture i386
```

**Step 3**: Add the WineHQ repository key to your system. Run the following command to add the key:

```
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
```

<figure><img src="https://customer.acecloudhosting.com/index.php?rp=/images/kb/1308_image-2023-4-21_16-11-58.png" alt=""><figcaption></figcaption></figure>

**Step 4**: Add the WineHQ repository.

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

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1309_image-2023-4-21_16-13-29.png)

**Step 5**: Update your package list again.

```
sudo apt update
```

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1310_image-2023-4-21_16-15-4.png)

**Step 6**: Install the stable version of Wine along with its recommended dependencies.

```
sudo apt install --install-recommends winehq-stable
```

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1311_image-2023-4-21_16-27-17.png)

**Step 7**: After installing Wine, you can verify the installation by running the following command:

```
wine --version
```

<figure><img src="https://customer.acecloudhosting.com/index.php?rp=/images/kb/1312_image-2023-4-21_16-29-46.png" alt=""><figcaption></figcaption></figure>

This should display the version of Wine that you just installed.

### **Conclusion**

In this tutorial, we showed you how to install Wine on Ubuntu 20.04. With Wine, you can run many Windows applications on Linux, making it a useful tool for many users. If you encounter any issues during the installation process, please refer to the Wine documentation or seek help from the Wine community.
