How to Install Wine 6.0 on Debian 10

For those not acquainted with Wine, this is a software utility that allows users to run Windows programs in .exe format. Wine 6.0 was released on January 14, 2021, and it packs numerous improvements, tweaks, libraries, and tens of bug fixes. In this guide, we will focus on how you can install Wine 6.0 on Debian 10, Buster.

Some of the key areas that have received a major facelift include:

  1. Newer core modules in PE format
  2. Text console upgrade
  3. Vulkan backend for WineD3D
  4. DirectShow and Media Foundation support.
  5. Desktop integration
  6. Cryptography
  7. Internet and networking
  8. Graphics, fonts & text
  9. Video & audio
  10. Desktop integration
  11. Development tools

Step 1: Enable 32 bit architecture

You need to enable 32-bit architecture on 64-bit systems in order to be able to run 32-bit Windows applications.

Run the following command to enable 32 bit architecture:

$ sudo dpkg --add-architecture i386
Enable 32-bit architecture
Enable 32-bit architecture

This command returns no output.

Step 2: Import Wine GPG key

First run the apt update to update package list:

$ sudo apt update

Now run one liner to download and import public GPG key to verify the signature of a release file:

$ wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
Import wine GPG hey
Import wine GPG hey

Step 3: Add wine repository

With Wine GPG key added, we are going to proceed and enable the Wine repository as follows:

$ sudo apt-add-repository https://dl.winehq.org/wine-builds/debian/
Add wine repository
Add wine repository

Step 4: Install Wine 6.0 on Debian 10

Having added the Wine repository, we will go a step further and add the OBS repository. As before, we will first add the GPG key as follows:

$ wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/Release.key | sudo apt-key add -
Import GPG key for wine-OBS
Import GPG key for wine-OBS

Next, we are going to add the Wine-OBS repository as follows:


$ echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list
Add wine-OBS repository
Add wine-OBS repository

Finally, to install Wine on Debian 10, use the APT package manager in the command shown:

$ sudo apt update
$ sudo apt install --install-recommends winehq-stable

This command will download an array of packages, libraries, dependencies, and drivers. For my case, the total download memory size was over 1G.

Install wine on Debian 10
Install wine on Debian 10

After installation, verify the version of wine installed on your machine.

$ wine --version
Check wine version
Check wine version

The output confirms that we have installed Wine 6.0

Step 4: Using Wine on Debian 10

You can now run Windows applications using Wine. for example, to run Notepad, download the Notepad .exe file as follows using the wget command.

$ wget https://notepad-plus-plus.org/repository/7.x/7.7/npp.7.7.Installer.exe

Next, run the application using wine as shown.

$ wine ./npp.7.7.Installer.exe

You will be prompted to install Wine Mono installer. Click 'Install' .

 Wine 6.0 on Debian 10
Install Wine Mono Installer

Next, you will be required to install Wine Gecko installer. Likewise, hit the 'Install' button.

 Wine 6.0 on Debian 10
Install Wine Gecko installer

Notepad setup will pop open as you can see below. Follow through and complete the installation of Notepad similar to any other Windows application.

 Wine 6.0 on Debian 10 install notepad
Launch Notepad with wine

Conclusion

By following the steps described in this guide, you will be able to successfully install wine 6.0 on debian 10.

2 Comments... add one

  1. I have a problem on step 3. When i executed the code the following appeared:
    "sudo: apt-add-repository: command not found"
    I tried several times but received the same message. Can you suggest how I can overcome this problem please?
    Many Thanks in advance.

    Reply
    • Hi KK,

      Looks like add-apt-repository package not installed. Try running the following commands.

      $ sudo apt-get install software-properties-common
      $ sudo apt-get update

      Reply

Leave a Comment