Step 1 – Setup PPA
First of all, If you are running with 64-bit system enable 32-bit architecture. Also,
install the key which was used to sign packages of wine.
sudo dpkg --add-architecture i386wget -qO -
https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
Use one of the following commands to enable Wine apt repository in your system
based on your operating system and version.
### Ubuntu 18.04 sudo apt-add-repository 'deb
https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
### Ubuntu 16.04 sudo apt-add-repository 'deb
https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
### Ubuntu 14.04 sudo apt-add-repository 'deb
https://dl.winehq.org/wine-builds/ubuntu/ trusty main'
Step 2 – Install Wine on Ubuntu
Use below commands to install Wine packages from the apt repository. The –
install-recommends option will install all the recommended packages by winehq
stable versions on your Ubuntu system.
sudo apt-get updatesudo apt-get install --install-recommends winehq-stable
If you face unmet dependencies error during installation, use the following
commands to install winehq using aptitude.
sudo apt-get install aptitudesudo aptitude install winehq-stable
Step 3 – Check Wine Version
Wine installation successfully completed. Use the following command to check
the version of wine installed on your system.
wine --version
wine-3.0
How to Use Wine (Optional)?
To use wine we need to login to the GUI desktop of your Ubuntu system. After
that Download a windows .exe file like PuTTY on your system and open it with
Wine as below screenshot or use following command.
wine putty.exe
You can also launch by right click on the application and click Open With Wine
Windows Program as shown in below screenshot.
sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key
add -
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/
bionic main'
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable