Wine is an open-source “Windows compatibility layer” that can run Windows programs directly on your Linux desktop.
In this tutorial we will show you how to install the Wine 4 on Ubuntu 18.04 LTS. The same instructions can applied on Ubuntu 16.04 LTS or any other Debian based distribution.
Before continuing with this tutorial, make sure you are logged in as a user with
Installing Wine 4 on Ubuntu
To install Wine 4 on your Ubuntu system, follow these steps:
01- If you’re running a 64-bit system, enable support for 32-bit applications.
$ sudo dpkg --add-architecture i386
02- Let’s download and add the Wine repository key:
$ wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
03- Add the Wine repository like below for Ubuntu 18.04 :
$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
– For Ubuntu 16.04, use the following command:
$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
04- Finally, install the Wine 4 using the following command.
$ sudo apt-get update $ sudo apt install --install-recommends winehq-stable
05- After the package has been installed, Check your version once the Wine installation is complete:
$ wine --version wine-4.0
In this tutorial we’ve shown you how to install Wine 4 on your Ubuntu 18.04 desktop machine. You might want to check the following guides: