Installing Wine on Kali Linux: Complete Setup Tutorial
Installing Wine on Kali Linux: Complete Setup Tutorial
Video Tutorial
Introduction
Wine allows you to run Windows applications on Linux. While Debian and Ubuntu provide their own Wine packages, they are often outdated. For the latest version, it is recommended to use the official WineHQ repository.
Always use the official instructions: WineHQ Debian/Ubuntu Guide
Below is a step-by-step backup of the installation process for Kali Linux (Debian Testing - trixie):
Step 1: Enable 32-bit Architecture (if on 64-bit)
1
sudo dpkg --add-architecture i386
Step 2: Find Your Distribution Codename
Check your codename (for Kali Linux, it is usually trixie
):
1
cat /etc/os-release
Look for UBUNTU_CODENAME
or VERSION_CODENAME
. Use the value after VERSION_CODENAME
(e.g., trixie
).
Step 3: Add the WineHQ Repository Key
1
2
sudo mkdir -pm755 /etc/apt/keyrings
wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -
Step 4: Add the WineHQ Repository
1
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/trixie/winehq-trixie.sources
Note: Kali Linux uses
trixie
(Debian Testing) as its codename.
Step 5: Update Package Information
1
sudo apt update
Step 6: Install Wine
Choose one of the following branches:
- Stable branch:
1
sudo apt install --install-recommends winehq-stable
- Development branch:
1
sudo apt install --install-recommends winehq-devel
- Staging branch:
1
sudo apt install --install-recommends winehq-staging
Additional Notes
- The WineHQ repository only offers packages for AMD64 and i386. For ARM, use Debian/Ubuntu packages.
- If you encounter issues, refer to the official WineHQ documentation.
This post is licensed under CC BY 4.0 by the author.