Red Wine in a GlassHow to Install Wine on Debian 8CSS HTML Validator Logo
HOME Tutorials & Essays About
Tutorials & Essays About
Debian 8 screen shot

How to Install Wine on Debian 8

This page is no longer maintained.

As of early May 2020, Debian 8 is within a couple weeks of end-of-life, when it will receive no updates. At this time, the procedures on this page install Wine Stable 4.0.1 and Wine Development 4.12.1, well behind the current Wine 5.xx. Consequently, this page is no longer maintained, and upgrading to a current version of Debian is recommended.

Disable CDROM repositories?

If you burned an .iso file to an optical installation disk, you can insert the disk into your optical drive and skip to the next section, titled Enable sudo?.

If you have no optical installation disk, because you installed from a USB drive, or, if you do not want to use your optical disk, you may need to disable CDROM repositories. The following steps check your configuration and make the appropriate adjustment, if necessary.

Enable sudo?

Open a terminal window and issue the following command.

$ sudo echo 'Hello'

If, after accepting your password, "Hello" is displayed, sudo is installed and you are authorized to use sudo, so you can skip to the next section, titled Install apt-transport-https. Otherwise, continue with the following.

Login as superuser.

$ su -l

If your attempt to use sudo failed with a "sudo not found" message, use the next two commands to install sudo, but skip them if sudo is already installed.

# apt-get update
# apt-get install sudo

With sudo installed, the following enables you to use sudo. Just replace your-user-name by your own user name.

# adduser your-user-name sudo

Log out of the root account and close the Terminal window.

# exit
$ exit

Close any open apps.

In order to activate sudo for your user name, Restart your Computer.

When logged in again, continue from here to verify sudo is installed and properly configured.

-------- Waiting for computer to restart --------

To verify you can now use sudo, open a Terminal session and issue the following command.

$ sudo echo 'Hello'

The test is successful if, after requesting and receiving your password, "Hello" is displayed.

Install apt-transport-https

Update the package database and install apt-transport-https.

$ sudo apt-get update
$ sudo apt-get install apt-transport-https

Check installed architectures

Verify 64-bit architecture. The following command should respond with "amd64".

$ dpkg --print-architecture

See if 32-bit architecture is already installed. The following command should respond with "i386"

$ dpkg --print-foreign-architectures

If it does not display "i386", execute the following.

$ sudo dpkg --add-architecture i386

Re-check with

$ dpkg --print-foreign-architectures

Add the WineHQ Debian repository

Get and install the repository key.

$ wget -nc
$ sudo apt-key add winehq.key

Use the next three Terminal commands to add the Wine HQ repository for Debian 8 Jessie to the operating system's list of repositories.

$ echo 'deb jessie main' > /tmp/winehq.list

$ sudo cp /tmp/winehq.list /etc/apt/sources.list.d/

$ rm /tmp/winehq.list

Execute the next command to update the package database, but …

… if you are using a Debian installation disk as a local repository, first load your disk into the optical drive.

$ sudo apt update

Install Wine

The next command will install Wine Stable. If you prefer Wine Development or Wine Staging, replace winehq-stable with either winehq-devel or with winehq-staging.

As of early May 2020, installing winehq-stable yields Wine 4.0.1, and installing winehq-devel yields Wine 4.12.1.

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

Verify the installation succeeded.

$ wine --version