Website Vidya
Linux & ServersStep-by-Step Guide

How to Install and Use Wine on Ubuntu 24.04: Complete Guide

Learn how to install and use wine on ubuntu 24.04 with official WineHQ repositories, 32-bit multiarch, winecfg, Winetricks, and Windows apps.

RR
Rajesh RayLead Systems Educator
Published:
5 min read
PDF Cheat Sheet
How to Install and Use Wine on Ubuntu 24.04: Complete Guide
AI Executive SummaryWebsiteVidya AI

5 min read

Learn how to install and use wine on ubuntu 24.04 with official WineHQ repositories, 32-bit multiarch, winecfg, Winetricks, and Windows apps.

Key Highlights
  • Prerequisites and Supported Releases
  • Step 1: Enabling 32-Bit Multiarch Architecture
  • Step 2: Adding the Official WineHQ APT Repository
Grounded in full engineering runbookWebsiteVidya AI Engine

Linux desktop adoption continues to surge, yet millions of users and organizations still depend on specialized Windows applications, proprietary productivity tools, or legacy software suites that do not offer native Linux binaries.

Wine—a recursive acronym for 'Wine Is Not an Emulator'—is an open-source compatibility layer that translates Windows API calls (such as DirectX, GDI, and Win32) into native POSIX system calls and graphics commands in real time.

Because Wine translates instructions directly rather than emulating virtual hardware like a hypervisor, Windows applications run at near-native CPU execution speeds on Ubuntu without the resource overhead of a virtual machine.

In this guide, we walk through how to install and use wine on ubuntu 24.04 LTS using the official WineHQ repositories, configure 32-bit multiarch libraries, install Winetricks, and launch Windows executables.

Advertisement

Prerequisites and Supported Releases

This guide is thoroughly verified on Ubuntu 24.04 LTS (Noble Numbat) & Ubuntu 22.04 LTS. The instructions apply cleanly to cloud instances (AWS EC2, Google Compute Engine, DigitalOcean, Hetzner), bare-metal servers, and local virtual machines.

Before proceeding, ensure you have the following requirements satisfied:

  • A computer or workstation running Ubuntu 24.04 LTS or Ubuntu 22.04 LTS with a graphical desktop.
  • A non-root user account with sudo administrative privileges.
  • Access to a command-line terminal shell.
  • A 64-bit x86_64 CPU architecture.

Step 1: Enabling 32-Bit Multiarch Architecture

Most Windows applications—including thousands of legacy business utilities, installers, and classic games—are built for 32-bit x86 architecture.

Advertisement

By default, 64-bit Ubuntu only enables the amd64 architecture.

Enable 32-bit i386 multiarch support so your system can download and link 32-bit shared libraries alongside 64-bit binaries:

# Enable 32-bit architecture support in dpkg:
sudo dpkg --add-architecture i386

# Refresh your repository package index to register the change:
sudo apt update

# Verify that i386 is listed in foreign architectures:
dpkg --print-foreign-architectures
# Output confirms: i386

Step 2: Adding the Official WineHQ APT Repository

While Ubuntu provides a native wine package, the upstream WineHQ repository provides significantly newer stable releases featuring updated DirectX-to-Vulkan (VKD3D) translations and bug fixes.

First, download and dearmor the official WineHQ public GPG key into /etc/apt/keyrings/:

Advertisement

Next, add the official WineHQ repository source definition for Ubuntu 24.04 (noble):

# Create keyrings directory:
sudo install -m 0755 -d /etc/apt/keyrings

# Download and dearmor WineHQ public key:
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

# Add the official WineHQ sources file for Ubuntu 24.04:
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources

# Refresh package cache:
sudo apt update

Step 3: Installing WineHQ Stable on Ubuntu 24.04

WineHQ offers three distinct release channels: Stable (tested, reliable build), Staging (cutting-edge patches and game fixes), and Development (active testing).

For general desktop use and enterprise application compatibility, installing the winehq-stable branch is strongly recommended:

Execute the installation command with administrative privileges:

# Install WineHQ Stable packages:
sudo apt install -y --install-recommends winehq-stable

# Verify installed Wine version:
wine --version
# Expected output confirms: wine-9.0 (or newer stable release)

Step 4: Initializing the Wine Environment (winecfg)

Before running any Windows programs, initialize your default Wine prefix located at ~/.wine.

Launch the Wine configuration utility by running winecfg in your terminal:

When launched for the first time, Wine prompts you to install the Wine Mono package (an open-source .NET framework implementation) and the Gecko package (HTML rendering engine).

Click Install on both prompts to ensure full application support, select your target Windows version (Windows 10 or 11), and click Apply.

# Initialize Wine configuration and directory structure:
winecfg

# Wine creates the virtual Windows C: drive at ~/.wine/drive_c
# Verify virtual directory hierarchy:
ls -la ~/.wine/drive_c
# Output confirms: 'Program Files', 'Program Files (x86)', 'users', 'windows'

Step 5: Installing Winetricks for Fonts and DirectX Runtimes

Many Windows applications fail or display unreadable interfaces because they expect proprietary Microsoft fonts (such as Arial and Times New Roman) or specific Visual C++ runtime redistributables.

winetricks is a helper script that automates downloading and installing these missing components.

Install Winetricks via APT and install core Microsoft Core Fonts:

# Install Winetricks utility:
sudo apt install -y winetricks

# Install standard Microsoft TrueType Core Fonts:
winetricks corefonts

# Optionally install common Visual C++ runtimes:
winetricks vcrun2015 vcrun2019

Step 6: Running and Managing Windows Executables

To execute a Windows program (.exe) or installer, invoke wine followed by the file path in your terminal.

For Microsoft Installer packages (.msi), use wine msiexec /i package.msi:

Here are practical examples running standalone executables and launching the Wine uninstaller:

# Run a standard Windows installer or program:
wine ~/Downloads/setup.exe

# Run a Microsoft Installer package (.msi):
wine msiexec /i ~/Downloads/installer.msi

# Open the Wine graphical Uninstaller / Add-Remove Programs panel:
wine uninstaller

# Open the Wine virtual Registry Editor:
wine regedit

Troubleshooting and Common Errors

When configuring Ubuntu servers, unexpected permission errors, network timeouts, or lock contention can occur. Review these common issues and verified resolutions:

wine: command not found

Cause: WineHQ packages were not installed or the repository was not added correctly.

Resolution: Ensure 32-bit multiarch is enabled (sudo dpkg --add-architecture i386) and install winehq-stable.

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

Application crashes with 'Direct3D feature level not supported' or black screen

Cause: The proprietary GPU graphics driver is missing 32-bit Vulkan or OpenGL libraries.

Resolution: Install 32-bit graphics drivers (e.g., libvulkan1:i386 and libgl1-mesa-dri:i386).

sudo apt install -y libvulkan1:i386 libgl1-mesa-dri:i386

Wine dialog boxes show broken squares or missing font glyphs

Cause: Microsoft core fonts are missing from the Wine prefix.

Resolution: Run winetricks corefonts to download standard Microsoft fonts.

winetricks corefonts

Security Best Practices and Hardening

Wine executes Windows executables with your full user permissions; malicious Windows malware and ransomware can infect files in your Ubuntu home directory through Wine's mapped drives (Z:\).

Isolate untrusted Windows applications in dedicated custom Wine prefixes (WINEPREFIX=~/.wine_sandbox wine app.exe) rather than using the default prefix.

Disable the default Z:\ drive mapping pointing to / in winecfg under the Drives tab if running questionable software.

Deepen your Linux system administration skills with our related production-tested guides:

Authoritative References and Official Documentation

Frequently Asked Questions

Quick answers to common questions and configurations

4 FAQs
No. Emulators simulate physical hardware (CPU, BIOS, storage controllers) and execute an entire guest operating system. Wine is a compatibility layer that translates Windows API calls directly into Linux kernel system calls in real time, consuming far less RAM and CPU.
By default, Wine stores all virtual C: drive files, registry entries, and installed applications inside a hidden folder in your home directory at ~/.wine/drive_c/.
Run WINEARCH=win32 WINEPREFIX=~/.wine32 winecfg. This creates a dedicated 32-bit Windows prefix optimized for older Windows XP and Windows 7 applications.
Close all active Windows applications and delete the prefix directory with rm -rf ~/.wine. Running winecfg will automatically generate a fresh, clean prefix.
RR
Written byVerified Author

Rajesh Ray

I’m Rajesh Rai, a full-stack developer, Linux administrator, and technology enthusiast passionate about making complex technology easier to understand and use.

SPAM-FREE MODERATED DISCOURSE

Join the Conversation & Perspective

Have thoughts, counterpoints, or reflections on this story? Engage directly with fellow readers and editorial contributors.

AT
MP
JV
+2

No comments on this guide yet. Be the first to share your thoughts or ask a question!

Recommended Reading10 Guides

Related Technical Guides

Tested runbooks, server administration walkthroughs, and troubleshooting guides

Featured Infrastructure PartnerUp to 75% OFF + 3 Months Free

Supercharge Your Linux & Cloud Workloads with Hostinger

Deploy high-speed NVMe KVM VPS, Docker containers, and LiteSpeed-accelerated WordPress servers in under 60 seconds with full root access, dedicated IPv4, and 24/7 technical support.

Pure NVMe SSD StorageFull Root Access & SSHFree Domain & Unlimited SSL99.9% Uptime SLA
Plans from$2.99/mo
Claim Hostinger DealAffiliate link • Special discount applied at checkout