How to install Wine on ubuntu 20.04
There are two methods available For Installing Wine in Ubuntu. In this tutorial, we will see both of the methods.
### Ubuntu 19.04
In This Tutorial We Will Learn:
-how to install wine on Ubuntu 20.04 -how to install wine on Ubuntu 18.04 -how to install wine on Ubuntu 16.04Method 1:
The Wine tool is available in the Ubuntu 20.04 repository, and the recommended method to install a stable version is through the Ubuntu repository.
sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
### Ubuntu 20.04
sudo add-apt-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ focal main’
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ disco main'
### 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 16.04
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable
wine --version
Method 2:
To install Wine via Wine build repository, you have to remove all other wine packages such as the wine-mono or the winetricks; otherwise, it will cause dependency conflicts.
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key; sudo apt-key add winehq.key
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt update && sudo apt install --install-recommends winehq-stable
Conclusion:
I have shown you how to install all the different versions of the WineHQ utility tool in Ubuntu. Wine is one of the handiest tools, it runs most of the windows executable programs on Linux.