How to Install the Latest Version of Wine on Ubuntu

  • Tweet
  • Post
  • Share Send
  • 0 The new version of Wine

8.0 features better than ever support for running Windows applications on Linux distributions like Ubuntu.

You can install Wine on Ubuntu from the Ubuntu Software application (or using apt on the command line), but the version of Wine available on Ubuntu

is (almost always) an older version than the one currently available

.

If you want to install the latest stable version of Wine on Ubuntu 22.04 LTS or 22.10, follow the steps below, which I have adapted from the instructions available on the WineHQ wiki.

Note that to simplify this process, I recommend using the command line. It’s technically possible to add the official Wine repository via a GUI, but the exact steps differ depending on which version of Ubuntu you use. The CLI steps below work on ALL Ubuntu versions, and also work on Ubuntu flavors and Ubuntu-based distributions like Linux Mint.

Install the Latest

Version of Wine on Ubuntu Step 1: Enable 32-bit support

First things first, you need to explicitly enable

32-bit support. I

know for a fact that you’re using a 64-bit version of Ubuntu by default: no, I’m not psychic, it’s just that Ubuntu discontinued 32-bit builds in 2017.

Despite

that, Ubuntu repositories contain many of the relevant libraries and dependencies needed to support the 32-bit architecture.

To open a new Terminal window and run

: sudo dpkg -add-architecture i386

Step 2: Add the Wine Repo keys

To install newer versions of Wine from Wine’s Ubuntu repository, you’ll need to make sure your system can securely communicate with it, which means importing security keys.

First, Create a new keychain

: sudo mkdir -pm755 /etc/apt/keyrings Second,

import the keys

from the Wine repository: sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

Step 3: Add the official wine repository

Next, check your Ubuntu version from the Settings panel > About. You will need to know which version you are running to run the correct command given below.

If you are using Ubuntu

22.04 LTS ‘Jammy Jellyfish’ (or a Linux distribution based on it, such as Linux Mint 21.x)

run this command: sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources

If you use Ubuntu 22.10 ‘Kinetic Kudu’ (or a flavor, spin, derivative, etc.) run this command instead:

sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/kinetic/winehq-kinetic.sources

DO NOT run both commands; just run the command that matches your version of Ubuntu.

Step 4: Install

Wine

Once done, you are ready to do the main task: install Wine on Ubuntu:

sudo apt update && sudo apt install -install-recommends winehq-stable

When you run this command (and enter a user password to authenticate the installation) you will be presented with a long list of packages that apt will download, install and update. In some cases, you may also notice that some packages will be deleted.

You should pay ATTENTION to the list of deletions; critical packages like ubuntu-desktop and xorg can sometimes be listed, so don’t sit idly by to continue. If you propose to delete anything that makes your system inoperable, press n and back.

Trying to install Wine on Ubuntu and getting an error? You are not alone. It is common to have problems when trying to install Wine from the official repository on Ubuntu systems with PPA or proposed updates enabled. The specific conflicts preventing Wine from installing will vary, so try to figure out which package(s) is to blame, delete them, and try again. If you can’t figure things out, try the Linux section of the Wine HQ forum.

On an Ubuntu vanilla system, installing Wine from the official repository will “only” work.” Give everything listed the opportunity to download, unpack, install and configure yourself.

Once everything is installed you can close the Terminal window

.

You won’t find a “Wine” launcher in the Apps grid after installing Wine, but you’ll be able to right-click on the Windows installers/runtimes and open them with Wine. You may also want to run winecfg from the command line to access the GUI Wine configuration window.

  • Tweet
  • Post
  • Share
  • Send

Home / How-To/How to Install Wine on Ubuntu