DebianDebian Based

How To Install Wine on Debian 12

Install Wine on Debian 12

In this tutorial, we will show you how to install Wine on Debian 12. Wine is an impressive compatibility layer that enables Linux users to run Windows applications without the need for a Windows operating system. It acts as a translation layer, providing the necessary Windows API calls to emulate a Windows environment within Linux. This remarkable functionality empowers Debian 12 Bookworm users to tap into a vast array of Windows software, expanding their options and productivity.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the Wine on a Debian 12 (Bookworm).


  • A server running one of the following operating systems: Debian 12 (Bookworm).
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • An active internet connection. You’ll need an internet connection to download the necessary packages and dependencies for Wine.
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install Wine on Debian 12 Bookworm

Step 1. Before we install any software, it’s important to make sure your system is up to date by running the following apt commands in the terminal:

sudo apt update
sudo apt install apt-transport-https lsb-release ca-certificates

This command will refresh the repository, allowing you to install the latest versions of software packages.

Step 2. Enable 32-bit Architecture:

Wine requires the 32-bit architecture to run Windows applications on a 64-bit Debian system. Enable the 32-bit architecture by executing the following command:

sudo dpkg --add-architecture i386
sudo apt update

Step 3. Installing Wine on Debian 12.

Now that your system is prepared, let’s proceed with the Wine installation. To install Wine on Debian 12 Bookworm, we need to add the Wine repository. Execute the following command to add the repository key:

wget -O- | sudo gpg --dearmor -o /usr/share/keyrings/winehq-archive-keyring.gpg

Next, add the repository itself by executing the following command:

echo "deb [signed-by=/usr/share/keyrings/winehq-archive-keyring.gpg] bookworm main" | sudo tee /etc/apt/sources.list.d/winehq.list

Now that the repository is added, update the package lists and install Wine by executing this command:

sudo apt install --install-recommends winehq-stable

During the installation process, you may be prompted to confirm additional packages. Review the prompts carefully and press ‘Y‘ when required.

To ensure that Wine is correctly installed, follow these steps to verify the installation:

wine --version

Step 4. Troubleshooting Common Issues.

While Wine strives to provide excellent compatibility, occasional issues may arise. Here are some troubleshooting tips for common problems:

  1. Missing DLL Files: If a Windows application fails to run due to missing DLL files, you can search for the missing file online, download it, and place it in the same directory as the application. Then, try running the application again.

  2. Compatibility Issues: Not all Windows applications work flawlessly with Wine. Refer to the Wine Application Database ( to check the compatibility status of specific applications and find workarounds or additional instructions.

  3. Application Freezing or Crashing: If an application freezes or crashes frequently, try adjusting Wine settings. Open a terminal and execute the following command:


This command opens the Wine Configuration window, where you can experiment with different settings to improve application stability.

Congratulations! You have successfully installed Wine. Thanks for using this tutorial for installing the latest version of Wine on Debian 12 Bookworm. For additional help or useful information, we recommend you check the official Wine website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!


r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button