How to Install Wine on Ubuntu 18.04 Bionic Beaver

Install Wine on Ubuntu 18.04

In this article, we will have explained the necessary steps to install and configure Wine on Ubuntu 18.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 is an open-source compatibility layer that allows you to run Windows applications on Unix-like operating systems such as Linux, FreeBSD, and macOS. Wine stands for Wine Is Not an Emulator. And it’s not, it is an interface that translates Windows system calls into equivalent POSIX calls used by Linux and other Unix-based operating systems.

Install Wine on Ubuntu

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

Step 2. Install Wine.

Installing Wine 3.0 on Ubuntu

Next, install Wine by typing the following command:

sudo apt install wine64

Check your version once the Wine installation is complete:

$ wine --version
wine-3.0 (Ubuntu 3.0-1ubuntu1)

Installing Wine 4.0 on Ubuntu

First, import the GPG key of the WineHQ repository to your system:

wget -qO- | sudo apt-key add -

Add the WineHQ repository by running the following commands:

sudo apt install software-properties-common
sudo apt-add-repository 'deb bionic main'

Install Wine 4.0 package by typing:

sudo apt-get install --install-recommends winehq-stable

Wine installation successfully completed. Use the following command to check the version of wine installed on your system:

$ wine --version

Step 4. How to Use Wine.

To use wine we need to login to the GUI desktop of your Ubuntu system. After that Download a windows .exe file like PuTTY on your system and open it with Wine:

wine putty.exe

That’s all you need to do to install Wine on Ubuntu 18.04. I hope you find this quick tip helpful. If you have questions or suggestions, feel free to leave a comment below.