CSS HTML Validator – Install on Linux

Debian 10 Buster

Header Image

About Wine

If you are not familiar with Wine (or maybe even if you are), you may find the article Understanding Wine helpful.

A more complete reference is the WineHQ Wine User's Guide.New Window Icon



WineHQ news, including Wine versionsNew Window Icon

Binary packages available from WineHQ, with links to the binariesNew Window Icon

Debian packages and installation instructionsNew Window Icon

Debian Wiki's page for WineNew Window Icon


All Terminal commands in this document have been validated by copy/paste from this document into a Terminal window and executed. Consider arranging your browser window and your Terminal window side by side in order to copy/paste the Terminal commands.

Start here: Prepare Debian to Install Wine

The default graphical installation of Debian 10 requires three adjustments prior to installing Wine. Though sudo is installed, the current user is not included by default in the sudoers file. The mandatory, for installing Wine, apt-transport-https is not installed, and Debian 10 will attempt to install it from a CD or DVD, unless that is disabled. So, begin by adding yourself to the sudoers file, re-boot your computer, disable local repositories on optical disks, install apt-transport-https, and then proceed to install Wine and CSS HTML Validator.

Open a Terminal window and — assuming you are not included in the sudoers file — log in as root and add yourself to sudoers.

$ su -l
# adduser your-user-name sudo

Restart your computer, in order to activate sudo for your user name. When logged in again, continue from here to verify sudo works.

-------- Waiting for computer to re-boot --------

To verify sudo works, open a terminal session and issue the following command.

$ sudo echo 'Hello'

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

In preparation for installing apt-transport-https, block optical disk repositories, which will force Debian to download missing packages.

First, in case something goes wrong, backup sources.list.

$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.BAK

Using nano (or any other command-line text editor) open sources.list for editing.

$ sudo nano /etc/apt/sources.list

Insert a # as the first character in the entry for cdrom. This makes the entry for cdrom a comment that will be ignored. After the # is inserted, the line will look like this.

# deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 DVD Binary-1 20190706-10:24]/ buster contrib main

When the # is in place, save the file (Ctrl-o), confirm the filename is to remain unchanged, and close nano (Ctrl-x).

Do the following. Ignore any complaints issued by apt-get update.

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

Add repository and install Wine

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

Get and install the repository key.

$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
$ sudo apt-key add winehq.key

To add the Wine HQ repository for Debian 10 Buster to the operating system's list of repositories, create file winehq.list and install it into folder /etc/apt/sources.list.d

$ echo 'deb https://dl.winehq.org/wine-builds/debian/ buster main' > /tmp/winehq.list
$ sudo cp /tmp/winehq.list /etc/apt/sources.list.d/
$ rm /tmp/winehq.list

Update packages

$ sudo apt update

Install Wine-Stable.

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

If apt complains about missing dependencies, install them, then repeat the last two steps (sudo apt update and sudo apt install).

Verify the installation succeeded.

$ wine --version

Remote file


was not found.

Remote file


was not found.