CSS HTML Validator – Install on Linux

Ubuntu 16.04

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 GuideNew Window Icon



WineHQ news, including Wine versionsNew Window Icon

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

Ubuntu packages and installation instructionsNew 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: Add repository and install Wine

Begin by opening a Terminal window and checking your installed architectures. The following command should respond with amd64.

$ dpkg --print-architecture

Next, the following command should respond with i386.

$ dpkg --print-foreign-architectures

If the previous command did not show i386, do the following.

$ sudo dpkg --add-architecture i386

Subsequently, recheck with.

$ dpkg --print-foreign-architectures

Assuming you received the desired i386 response, continue on. Otherwise, you will need to resolve the architecture issue.

With the next two commands, you get and install the repository key.

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

Now, add the repository and update packages.

$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
$ 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 commands (apt update and apt install).

Verify the installation succeeded.

$ wine --version

Remote file


was not found.

Remote file


was not found.