Saturday, January 11, 2025
Google search engine
HomeGuest BlogsHow To Install Wine 8 on Ubuntu 22.04|20.04|18.04

How To Install Wine 8 on Ubuntu 22.04|20.04|18.04

.tdi_3.td-a-rec{text-align:center}.tdi_3 .td-element-style{z-index:-1}.tdi_3.td-a-rec-img{text-align:left}.tdi_3.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_3.td-a-rec-img{text-align:center}}

What are the steps to install Wine 8 on Ubuntu 22.04|20.04|18.04?. For those new to Wine, it is an open source software created to enable Linux users run Microsoft Windows applications. Wine 8 is the latest stable release of Wine available for installation and it contains a large number of improvements which includes but not limited to:

  • PE modules: PE conversion is finally complete and all modules can be built in PE format.
  • WoW64: WoW64 thunks are implemented for essentially all Unix libraries, enabling a 32-bit PE module to call a 64-bit Unix library.
  • Graphics: The “Light” theme is enabled in the default configuration, for a more modern look. Other themes can still be configured through WineCfg.
  • Direct3D: Many optimizations related to streaming map acceleration are implemented, in common code as well as in the GL renderer. Depending on the application, this may result in major performance improvements.
  • Direct3D helper libraries: A new HLSL compiler, HLSL disassembler, and HLSL preprocessor implemented.
  • Text and fonts improvements
  • Among many other new features and improvements

Also check out: Install Windows Apps and games on Ubuntu using Bottles

Install Wine 8 on Ubuntu 22.04|20.04|18.04

The installation of Wine on Ubuntu is a straightforward process as all packages are provides in Wine repository.

.tdi_2.td-a-rec{text-align:center}.tdi_2 .td-element-style{z-index:-1}.tdi_2.td-a-rec-img{text-align:left}.tdi_2.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_2.td-a-rec-img{text-align:center}}

Step 1: Enable 32 bit architecture

But before installation we need to enable enable 32 bit architecture if running on a 64-bit system. This is achieved by running the command below.

sudo dpkg --add-architecture i386

Step 2: Download and add the repository key

Install wget if not present in your system.

sudo apt update
sudo apt -y install software-properties-common wget

Then download and add repository key:

sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

You should receive “OK” in the output.

Step 3: Add the Wine repository

After importing the key, proceed to add repository.

### Ubuntu 22.04 ###
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
sudo mv winehq-jammy.sources /etc/apt/sources.list.d/

### Ubuntu 20.04 ###
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
sudo mv winehq-focal.sources /etc/apt/sources.list.d/

### Ubuntu 18.04 ###
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/winehq-bionic.sources
sudo mv winehq-bionic.sources /etc/apt/sources.list.d/

Command execution output:

$ sudo apt update
Hit:1 https://mirror.hetzner.com/ubuntu/packages jammy InRelease
Hit:2 https://mirror.hetzner.com/ubuntu/packages jammy-updates InRelease
Hit:3 https://mirror.hetzner.com/ubuntu/packages jammy-backports InRelease
Hit:4 https://mirror.hetzner.com/ubuntu/security jammy-security InRelease
Get:5 https://dl.winehq.org/wine-builds/ubuntu jammy InRelease [8,041 B]
Get:6 https://dl.winehq.org/wine-builds/ubuntu jammy/main i386 Packages [85.1 kB]
Get:7 https://dl.winehq.org/wine-builds/ubuntu jammy/main all Packages [928 B]
Get:8 https://dl.winehq.org/wine-builds/ubuntu jammy/main amd64 Packages [85.4 kB]
Fetched 179 kB in 1s (167 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done

Step 4: Install Wine on Ubuntu

With the repository ready we can install Wine on our Ubuntu Linux machine.

sudo apt install --install-recommends winehq-stable

Be informed that a good number of packages will be installed. This may take sometime if you have weak internet connection:

......
The following packages will be upgraded:
  libasound2 libasound2-data libcurl3-gnutls libdrm-common libdrm2 libgcrypt20 libglib2.0-0 libglib2.0-bin libgnutls30 libicu66 libnss-systemd libpam-systemd libssh-4 libssl1.1 libsystemd0
  libudev1 systemd systemd-sysv systemd-timesyncd udev
20 upgraded, 281 newly installed, 0 to remove and 90 not upgraded.
Need to get 340 MB of archives.
After this operation, 2486 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

After the package has been installed, Check your version once the Wine installation is complete:

$ wine --version
wine-8.0

Step 5: Using Wine on Ubuntu

For command line guys the wine tool can be invoked directly on the terminal.

$ wine

Accessing help page:

$ wine --help

Install test application like Notepad++

VER=$(curl -s https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/releases/latest | grep tag_name | cut -d '"' -f 4 | sed 's/v//g')
wget https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v${VER}/npp.${VER}.Installer.exe

Use wine to install your downloaded .exe application.

wine npp.${VER}.Installer.exe

Agree to install Mono and Gecko packges.

install wine mono ubuntu
install wine gecko ubuntu

Then begin your application installation using Wine.

install wine ubuntu linux 03

The application can be launched like any other Linux application after installation.

install wine ubuntu linux 03 1

Running Notepad++ application.

install wine ubuntu linux 05

This confirms Wine has been installed successfully on Ubuntu 20.04.

More on Ubuntu:

.tdi_4.td-a-rec{text-align:center}.tdi_4 .td-element-style{z-index:-1}.tdi_4.td-a-rec-img{text-align:left}.tdi_4.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_4.td-a-rec-img{text-align:center}}

RELATED ARTICLES

Most Popular

Recent Comments