Install Wine on Ubuntu 20.04 LTS – Linux Distributions

Hello friends 👋, if you are also a ubuntu and i linux user and you want to install Wine in your computer or laptop then read this article carefully and do further process 🙏 and after you do this process successfully, then please give your feedback on this article. In the comments section 😊😀😀

The procedure on this page installs the latest version of Wine Stable, Wine Development, or Wine Staging.

What is Wine used for Linux?

Wine is an open-source compatibility layer that allows you to run Windows applications on Unix-like operating systems such as Linux, FreeBSD, and macOS. Wine stands for Wine Is Not an Emulator. It is an interface that translates Windows system calls into equivalent POSIX calls used by Linux and other Unix-based operating systems.

Check installed architectures

Verify 64-bit architecture. The following command should respond with “amd64”.

$ dpkg --print-architecture

See if 32-bit architecture is installed. The following command should respond with “i386”.

$ dpkg --print-foreign-architectures

If “i386” is not displayed, execute the following.

$ sudo dpkg --add-architecture i386

Recheck with.

$ dpkg --print-foreign-architectures

Add the WineHQ Ubuntu repository.

Get and install the repository key.

$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
$ sudo -H gpg -o /etc/apt/trusted.gpg.d/winehq.key.gpg --dearmor winehq.key

Add the repository.

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

Update the package database.

$ sudo apt update

Install Wine

The next command will install Wine Stable. If you prefer Wine Development or Wine Staging, replace winehq-stable with either winehq-devel or with winehq-staging.

$ sudo apt install --install-recommends winehq-stable

Verify the installation succeeded

$ wine --version

Configure Wine

The default Wine configuration prepares Wine as a Windows 7 environment, which is good for some older Windows apps, but many contemporary apps will be better matched to Windows 8.1 or Windows 10. In addition, other configuration options may be significant.

To bring up Wine’s configuration panel, open a Terminal window and execute winecfg. When prompted, set your preferred version of Windows and accept all offers to install Mono and Gecko.

Depending on the version of Wine, Gecko may need to be installed twice (for 32-bit and for 64-bit) or not at all. (Wine 6.0.2 will install Gecko twice. Wine 6.17 and later will not ask to install Gecko, but a Windows app that needs Gecko will, during installation, prompt to be allowed to install it.)

$ wine winecfg

If you are creating custom Wine prefixes, this configuration must be repeated for each prefix.

Two simple tests

Just for fun, or to see Wine in action …

Display a simple clock.

$ wine clock

Run Wine’s builtin web browser.

$ wine iexplore

Try This

sudo apt install wine # version 5.0-3ubuntu1, or
sudo apt install wine-development # version 5.5-3ubuntu1

Thank you so much Guys for Reading 📖 this article hope to see you again.

Leave a Comment

Your email address will not be published.

Scroll to Top