Wine is an open-source compatibility layer which used to run the Windows applications on Linux systems. At the starting level, Wine was supporting only few windows applications but now it is supporting thousands of applications. In this article we will show you how to install wine on Ubuntu 20.04 system.
You can get the list of tested and confirmed applications at the Wine AppDB database. All the applications may not work as normal applications in windows. If the Wine is not fulfilling your requirement you can also use the virtualization tool like VirtualBox or VMware
. The virtualization require more system resources and a Windows installation file.
Install Wine 5.0 on Ubuntu
In the default Ubuntu repository, the Wine package is included and you can easily install with apt package manager. But the version of package will be older than the latest version of Wine. Make sure your are logged in as root or user with sudo privileges.
Step 1 – Check System Architecture
There are two versions of Wine available for 32-bit and 64-bit architecture. So you can check your system architecture by typing:
lscpu
In output, CPU op-mode(s) entry tells you about the architecture of your Ubuntu system.
Step 2 – Enable Multi Architecture
Most of the Windows applications are built for 32-bit architecture. So will enable multi architecture to allow installation of both 64 and 32-bit packages on the machine:
sudo dpkg --add-architecture i386
sudo apt update
Step 3 – Install Wine
After the enabling multiarch, now you can install the Wine using the following command:
sudo apt install wine64 wine32
Step 4 – Verify Installation
Once the installation is complete, verify it’s version by typing:
wine --version
It will show you something like below:
wine-5.0 (Ubuntu 5.0-3ubuntu1)
Install Wine 6.0 on Ubuntu
Perform the following steps to install Wine 6 on Ubuntu 20.04 system.
Step 1 – Enable Multi Architecture
If you are running a 64-bit Ubuntu system, enable the 32-bit architecture and update the packages list:
sudo dpkg --add-architecture i386
sudo apt update
Step 2 – Import GPG Keys
Import the WineHQ repository’s GPG key using below command:
wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
Step 3 – Add WineHQ repository
To add the WineHQ repository to your system:
sudo apt install software-properties-common
sudo apt-add-repository "deb http://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -cs) main"
Step 4 – Install Wine
sudo apt install --install-recommends winehq-stable
This will install packages and take some time to complete.
Step 5 – Verify Version
Check the version of installed wine by typing:
wine --version
wine-6.0
That’s it. The wine has been installed on your system and ready to use.
Conclusion
In this article, we shown you how to install Wine on Ubuntu 20.04 system.
If you hit a problem or have feedback, leave a comment below.