How to Install Wine 4.0 on Debian 9.8

Last Updated:

Welcome to our guide on how to install Wine 4.0 on Debian 9.8. Wine (Wine Is Not an Emulator) is a free and opensource software that allows Microsoft Windows applications and computer games to run on POSIX-compliant Operating Systems, such as Linux, MacOS and  BSD. Wine 4.0 is the latest and stable release version as of this writing. This release comes with a lot of improvements with the main highlights being;

  • Support for Game controllers
  • Support for Direct3D 12
  • Vulkan support
  • Support for High-DPI on Android

You can learn more about the major improvements in Wine 4.0 on the release notes.

How to Install Wine 4.0 on Debian 9.8

Well, it is pretty simple to install wine package on Debian 9.8 since the package is available on the default repositories. However, if you are looking at installing the latest and stable release, Wine 4.0, you need to install Wine PPA repository for Debian 9. First things first;

Enable support for 32-bit packages if you are running a 64 bit system.

sudo dpkg --add-architecture i386

Download and install the Wine PPA repository signing key

wget -nc
sudo apt-key add winehq.key

Install Wine PPA repository

echo "deb stretch main" | sudo tee -a /etc/apt/sources.list

Once the PPA repository is installed, update your system packages.

sudo apt install apt-transport-https
sudo apt update

Next, install Wine 4.0 on Debian 9.8 by executing the command below;

sudo apt-get install --install-recommends winehq-stable

Once the installation completes, you can verify the Wine version by executing the command below;

wine --version

There you go. This guide has taken you through all the steps required to install Wine 4.0 on Debian 9.8. You can now run Windows-based applications on your Debian 9.8 system. Enjoy.

Install Wine 4 on CentOS 8 by following the link below;

How to Install Wine 4 on CentOS 8

Other Tutorials

Install and Setup DVWA on Debian 10

Install Monitorix on Debian 10

Install Redmine with MariaDB on Debian 10 Buster


We're passionate about sharing our knowledge and experiences with you through our blog. If you appreciate our efforts, consider buying us a virtual coffee. Your support keeps us motivated and enables us to continually improve, ensuring that we can provide you with the best content possible. Thank you for being a coffee-fueled champion of our work!

Photo of author
I am the Co-founder of, Linux and the whole FOSS enthusiast, Linux System Admin and a Blue Teamer who loves to share technological tips and hacks with others as a way of sharing knowledge as: "In vain have you acquired knowledge if you have not imparted it to others".

8 thoughts on “How to Install Wine 4.0 on Debian 9.8”

  1. After much difficulty getting wine installation from other sources, everything failed to open. Atlast your version of commands worked well and I have wine 4.0.1 version installed. Thank you very much. .

  2. Muchas gracias por su aporte!! Me sirvió de mucho, fue una buena ayuda… — Thank you very much for your input!! It helped me a lot, it was a good help …

  3. many many thanks to you, bro. Your guide is not the best. It is the VERY best. Till now the one that goes. Thanks a lot for your great work.
    Muito obrigado amigo. O unico manual q para mim fincionou para instalar o wine. Perfecto


Leave a Comment