How to Install Wine on Ubuntu 18.04 | 20.04

How to Install Wine on Ubuntu 18.04 20.04

In this article, we are going to shows that how to Install Wine on Ubuntu 18.04 | 20.04.

Wine is a an open source software that is developed to allows Linux users to run Windows applications in Linux environment.

If you need an application that is only available on Microsoft Windows then you can use Wine to install that application in Linux environment.

Wine 6 is the latest and stable release of Wine that is available for installation and it contains a large number of improvements that are includes in latest release. These improvements are listed below:

  • Vulkan backend for WineD3D
  • Core modules in PE format.
  • DirectShow and Media Foundation support
  • Text console redesign
  • USB kernel driver
  • Mouse position history
  • Plug & Play device notifications
  • WebSocket API
  • Initial support for Apple Silicon

Install Wine on Ubuntu 18.04 | 20.04

The installation of Wine on Ubuntu 18.04 | 20.04 is a simple process because all required packages are includes in Wine repository.

Simply follow below steps to install Wine on your Ubuntu system:

Install Wine 5.0 on Ubuntu 18.04 | 20.04

Step 1 : Check System Architecture

 Wine is available for 32-bit and 64-bit architecture. So you can check your system architecture by running command below:

$lscpu

Step 2 : Enable 32 bit architecture

Run the below commands to enable the 32-bit architecture:

sudo apt update
sudo dpkg --add-architecture i386

Step 3 : Install Wine

Now you can install the Wine by running command below:

sudo apt install wine64 wine32

Step 4 : Check and Verify Wine Installation

To verify its version, run the command below:

wine --version
Output
wine-5.0 (Ubuntu 5.0-3ubuntu1)

Install Wine 6 on Ubuntu 18.04 | 20.04

The installation of Wine 6 on Ubuntu 18.04 | 20.04 is a simple process because all required packages are includes in Wine repository.

Simply follow below steps to install Wine on your Ubuntu system:

Step 1 : Prepare to Enable 32 bit architecture

Run the below commands to enable the 32-bit architecture:

sudo apt update
sudo dpkg --add-architecture i386

Step 2 : Download and add Wine Repository

Install wget if it is not available in your Ubuntu system.

sudo apt update
sudo apt -y install software-properties-common wget

You can skip above step if wget is already available in your system.

Run the below commands to download and add repository key:

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

After download and add repository key, Run the below command to add the Wine repository:

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'

Step 3 : Install Wine 6

Run the below commands to install Wine 6 on Ubuntu 18.04 | 20.04:

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

After Run the above command, Wine is installed and ready to use.

To check the version of Wine, Run the below command:

$ wine --version
Output
wine-6.0

How to use Wine 6 on Ubuntu 18.04 | 20.04

To launch Wine tool, Run the below command:

$ wine

To open page of Wine tool, run the below command:

$ wine --help

In this article we are going to use Notepad++ Windows application to test Wine tool.

Run the below command to install Notepad++ via command line:

wget https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v7.8.8/npp.7.8.8.Installer.exe

Now use Wine to install it using below command:

wine npp.7.8.8.Installer.exe

When you run above command, it will prompted to install required packages and launch Wine install command and start installing the application.

After some moment, the application(Notepad++) will installed and ready to use.


That’s all.

If you face any error and issue in above steps , please use comment box below to report.

If our tutorials helped you, please consider buying us a coffee. We appreciate your support!

Thank you for your support.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top