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.

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.
- Prerequisites and Supported Releases
- Step 1: Enabling 32-Bit Multiarch Architecture
- Step 2: Adding the Official WineHQ APT Repository
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.
Complete step-by-step administrator and desktop guide on how to install, configure, and use Wine (Wine Is Not an Emulator) on Ubuntu 24.04 LTS (Noble Numbat). Explains enabling 32-bit i386 multiarch architecture, configuring the official WineHQ APT repository with modern signed-by keyrings, installing WineHQ Stable, initializing the ~/.wine prefix with winecfg, installing Mono and Gecko runtimes, utilizing Winetricks for fonts and DirectX components, and executing Windows .exe and .msi applications.
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
sudoadministrative 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.
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/:
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.
Related Ubuntu Tutorials and Documentation
Deepen your Linux system administration skills with our related production-tested guides:
- How to Install VirtualBox on Ubuntu 24.04 LTS: Step-by-Step — Explore running full Windows guest operating systems in a virtual machine.
- How to Add APT Repository in Ubuntu 24.04 and 22.04 — Master modern signed-by keyrings and repository sources on Ubuntu.
- Initial Server Setup on Ubuntu 24.04 LTS — Foundational baseline setup for Ubuntu workstations and servers.
Authoritative References and Official Documentation

The Linux Command Line, 2nd Edition: A Complete Introduction
Frequently Asked Questions
Quick answers to common questions and configurations
~/.wine/drive_c/.WINEARCH=win32 WINEPREFIX=~/.wine32 winecfg. This creates a dedicated 32-bit Windows prefix optimized for older Windows XP and Windows 7 applications.rm -rf ~/.wine. Running winecfg will automatically generate a fresh, clean prefix.Editorial Disclosure: Website Vidya is supported by our readers. When you purchase hosting, tools, or software through our verified partner links, we may earn an affiliate commission at no extra cost to you. We only recommend solutions we trust and rigorously verify.
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.
Most Read Guides
TrendingUbuntu Server Not Booting? 10 Simple Steps to Fix It Fast
How to Create a 3D Button in HTML and CSS: Easy Steps
How to Install Python and Pip on Ubuntu 24.04 LTS
How to Install Nginx on Ubuntu 24.04
How to Install Python on Ubuntu 24.04 LTS
Related Technical Guides
Tested runbooks, server administration walkthroughs, and troubleshooting guides


Join the Conversation & Perspective
Have thoughts, counterpoints, or reflections on this story? Engage directly with fellow readers and editorial contributors.
No comments on this guide yet. Be the first to share your thoughts or ask a question!