Objective

The objective is to install Wine on Ubuntu 18.04 Bionic Beaver Linux

Operating System and Software Versions

  • Operating System: - Ubuntu 18.04 Bionic Beaver
  • Software: - Wine 3.0, Wine 3.2 or higher

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Difficulty

EASY

Conventions

  • # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ - requires given linux commands to be executed as a regular non-privileged user

Instructions

The recommended approach to install Wine on Ubuntu 18.04 is to perform the installation from an Ubuntu repository as it will provide you with a stable wine version.

In case the Wine version available from Ubuntu repository does not fit your purpose, you may install Wine directly from WineHQ repositories which will yield latest stable or development Wine version possible.

Install Wine from Ubuntu repository

To install Wine from a standard Ubuntu repository open up terminal and enter:
FOR 64bit:
$ sudo apt install wine64
FOR 32bit:
$ sudo apt install wine32
Check your version once the Wine installation is complete:
$ wine --version
wine-3.0

Install Wine from WineHQ repository

The following procedure can be used to install Wine directly using WinHQ packages. To start add i386 architecture if you are running your Ubuntu 18.04 system on 64-bit hardware:
$ sudo dpkg --add-architecture i386 
Next add WineHQ signing key and repository:
$ wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
$ sudo apt-add-repository 'deb http://dl.winehq.org/wine-builds/ubuntu/ bionic main'
Next, you can make a choice to select between Wine stable or development version.


WineHQ Stable

To install stable WineHQ packages enter:
sudo apt-get install --install-recommends winehq-stable
Check version after Wine installation:
$ wine --version
wine-3.0.3

WineHQ Development

To install stable WineHQ packages enter:
sudo apt-get install --install-recommends winehq-devel
Check version after Wine installation:
$ wine --version
wine-3.18
ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed on LinuxCareers.com.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.