This article covers how to install Wine on Ubuntu 20.04. We used the WineHQ repositories and downloaded them directly for their installation.
Users can use it now for running all Windows-based applications.
To Install Wine from a Standard Ubuntu Repository (recommended):
We recommend that you install Wine on your system through the standard Ubuntu repository, as this way you can have a more stable version on your system.
1. Run the following command in the Terminal as a root user in order to install Wine on a 64-bit version of Ubuntu:
$ sudo apt install wine64
2. Please enter y when you are prompted with a y/n option for installation.
After that, the Wine application will be installed and ready for use.
3. For a 32-bit Ubuntu system, you can use the following command:
$ sudo apt install wine32
4. You can verify the version of Wine through the following command:
$ wine --version
To Install Wine without Internet:
To install Wine on an Ubuntu machine without internet access, you must have access to a second Ubuntu machine (or VM) with an internet connection to download the Wine .deb package and its dependencies.
On the machine with internet, add the WineHQ repository and run apt update.
Next, cache just the packages necessary for installing wine, without extracting them:
sudo apt-get clean
sudo apt-get --download-only install winehq-devel
sudo apt-get --download-only dist-upgrade
Copy all of the .deb files in /var/cache/apt/archives to a USB stick:
cp -R /var/cache/apt/archives/ /media/usb-drive/deb-pkgs/
Finally, on the machine without internet, install all of the packages from the flash drive:
sudo dpkg -i *.deb