On this article we will discuss about Wine 6.0 (the latest stable version) installation and configuring it on Ubuntu 20.04 LTS operating system.
Wine is a free and open-source lightweight compatibility layer that aims to allow application software and computer games developed for Microsoft Windows to run on Unix-like operating systems. Wine its self is recursive ackronym for Wine Is Not an Emulator. Wine also provides a software library, against which developers can compile Windows applications to help port them to Unix-like systems. On this article we will learn how to install Wine 6.0 on Linux Ubuntu 20.04 LTS operating system. Wine 6.0 is the last stable version which was released on January 14, 2021.
Wine Installation On Ubuntu 20.04 LTS
Wine installation on Ubuntu 20.04 LST will consist of several stages. Before doing the installation process we have to meet some of the requirements, especially those related to compatibility with the machine hardware we have, whether 32 bit or 64 bit architecture.
- Check Architecture
- Install Wine 6.0
- Configuring Wine 6.0
1. Checking Architecture
Wine is running on the 32-bit architecture, so we have to verify whether the architecture we are currently used does supports the 386 architecture or not. Due to the most of the Windows applications are 32-bit. Run this command for verification. If it doesn’t support it must be added with the following command line:
- Checking 64 architecture, by submitting command line :
- Checking 32 architecture, by submitting command line :
If the i386 is not showing, then we have to add to the system by submitting command line :
sudo dpkg --add-architecture i386
2. Install Wine 6.0
The installation process will be starting with the addition of the wine repository, here are the steps:
- Get and install repository by submitting command line :
sudo wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
- Add Wine repository to the system, by submitting command line :
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
ramansah@otodb02:/$ sudo wget -nc https://dl.winehq.org/wine-builds/winehq.key --2021-02-22 20:25:29-- https://dl.winehq.org/wine-builds/winehq.key Resolving dl.winehq.org (dl.winehq.org)… 188.8.131.52 Connecting to dl.winehq.org (dl.winehq.org)|184.108.40.206|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 3220 (3.1K) [application/pgp-keys] Saving to: ‘winehq.key’ winehq.key 100%[===============================================>] 3.14K --.-KB/s in 0s 2021-02-22 20:25:29 (13.0 MB/s) - ‘winehq.key’ saved [3220/3220] ramansah@otodb02:/$ sudo apt-key add winehq.key OK ramansah@otodb02:/$ sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' Get:1 https://dl.winehq.org/wine-builds/ubuntu focal InRelease [6,257 B] Get:2 https://dl.winehq.org/wine-builds/ubuntu focal/main amd64 Packages [164 kB] Get:3 https://dl.winehq.org/wine-builds/ubuntu focal/main i386 Packages [166 kB] Get:6 https://dlm.mariadb.com/repo/maxscale/latest/ubuntu focal InRelease [3,514 B]
3. Update package system, by submitting command line :
sudo apt update
ramansah@otodb02:/$ sudo apt update Hit:1 https://dl.winehq.org/wine-builds/ubuntu focal InRelease Hit:2 http://us.archive.ubuntu.com/ubuntu focal InRelease Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB] Get:5 https://dlm.mariadb.com/repo/maxscale/latest/ubuntu focal InRelease [3,514 B] Hit:6 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease Get:7 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [191 kB]
- Wine installation, for stable version we will submit the command line :
sudo apt-get install --install-recommends winehq-stable
There are another installation package for Wine, namely :
- Development branch, by submitting command line :
sudo apt install --install-recommends winehq-devel
- Staging branch, by submitting command line :
sudo apt install --install-recommends winehq-staging
ramansah@otodb02:/$ sudo apt-get install --install-recommends winehq-stable Reading package lists… Done Building dependency tree Reading state information… Done The following packages were automatically installed and are no longer required: dbconfig-common dbconfig-mysql gsfonts imagemagick-6-common libfftw3-double3 libjs-chart.js libjs-jquery-ui libjs-raphael liblqr-1-0 libmagickcore-6.q16-6 ruby-actioncable ruby-actionmailer ruby-actionpack ruby-actionpack-action-caching ruby-actionpack-xml-parser ruby-actionview ruby-activejob ruby-activemodel ruby-activerecord ruby-activestorage ruby-activesupport ruby-addressable ruby-arel ruby-atomic ruby-builder ruby-bundler ruby-coderay ruby-concurrent ruby-crass ruby-css-parser ruby-erubi ruby-eventmachine ruby-globalid ruby-hike ruby-htmlentities ruby-i18n ruby-jquery-rails ruby-loofah ruby-mail ruby-marcel ruby-method-source ruby-mime-types ruby-mime-types-data ruby-mimemagic ruby-mini-mime ruby-molinillo ruby-multi-json ruby-mysql2 ruby-net-http-persistent ruby-net-ldap ruby-nio4r ruby-nokogiri ruby-oj ruby-pkg-config ruby-public-suffix ruby-rack-test ruby-rails ruby-rails-deprecated-sanitizer ruby-rails-dom-testing ruby-rails-html-sanitizer ruby-rails-observers ruby-railties ruby-rbpdf ruby-rbpdf-font ruby-redcarpet ruby-request-store ruby-rmagick ruby-roadie ruby-roadie-rails ruby-rouge ruby-sprockets ruby-sprockets-rails ruby-thor ruby-thread-safe ruby-tilt ruby-tzinfo ruby-websocket-driver ruby-websocket-extensions Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: wine-stable wine-stable-amd64 wine-stable-i386:i386 The following NEW packages will be installed: wine-stable wine-stable-amd64 wine-stable-i386:i386 winehq-stable 0 upgraded, 4 newly installed, 0 to remove and 314 not upgraded. Need to get 0 B/159 MB of archives. After this operation, 1,093 MB of additional disk space will be used. Do you want to continue? [Y/n] Y
- Verify the installation by querying Wine version, by submitting command line :
ramansah@otodb02:/$ wine --version wine-6.0
3. Configuring Wine 6.0
The Wine configuration is done by installing Mono and Gecko and sets the Wine environment. For this purponse we will use the winecfg command line.
ramansah@otodb02:~$ winecfg wine: created the configuration directory '/home/ramansah/.wine' 0040:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 002c:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0040:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 002c:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0048:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0048:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0050:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1. 0050:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
In the middle of the Wine 6.0 configuration process, we will get a mono and Gecko installation notification dialog box, as follows:
If the installation was completed done, the Wine configuration dialog will be shown. The default settings should be already OK. Once finished, close the dialog box.
Winetricks is a helper script to download and install various redistributable runtime libraries needed to run some programs in Wine. These may include replacements for components of Wine using closed source libraries. Here’s the installation process for Winetricks.
ramansah@otodb02:~$ winetricks Executing mkdir -p /home/ramansah You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug. Using winetricks 20200412 - sha256sum: 7651c93e39fcb080483c38836513bf912273a87ea97d137f6b958ed3d9628c3d with wine-6.0 and WINEARCH=win64 winetricks GUI enabled, using zenity 3.32.0
If we are confused about how to use Winetricks, then we can find a way to use it with the
winetrick --help command.
ramansah@otodb02:~$ winetricks --help Usage: /usr/bin/winetricks [options] [command|verb|path-to-verb] … Executes given verbs. Each verb installs an application or changes a setting. Options: --country=CC Set country code to CC and don't detect your IP address -f, --force Don't check whether packages were already installed --gui Show gui diagnostics even when driven by commandline --isolate Install each app or game in its own bottle (WINEPREFIX) --self-update Update this application to the latest version (non-Debian) --update-rollback Rollback the last self update -k, --keep_isos Cache isos (allows later installation without disc) --no-clean Don't delete temp directories (useful during debugging) -q, --unattended Don't ask any questions, just install automatically -r, --ddrescue Retry hard when caching scratched discs -t --torify Run downloads under torify, if available --verify Run (automated) GUI tests for verbs, if available -v, --verbose Echo all commands as they are executed -h, --help Display this message and exit -V, --version Display version and exit Commands: list list categories list-all list all categories and their verbs apps list list verbs in category 'applications' benchmarks list list verbs in category 'benchmarks' dlls list list verbs in category 'dlls' games list list verbs in category 'games' settings list list verbs in category 'settings' list-cached list cached-and-ready-to-install verbs list-download list verbs which download automatically list-manual-download list verbs which download with some help from the user list-installed list already-installed verbs arch=32|64 create wineprefix with 32 or 64 bit, this option must be given before prefix=foobar and will not work in case of the default wineprefix. prefix=foobar select WINEPREFIX=/home/ramansah/.local/share/wineprefixes/foobar annihilate Delete ALL DATA AND APPLICATIONS INSIDE THIS WINEPREFIX
If the Wine installation has been completed successfully, then we can try using an application running on the Windows OS on the Linux operating system. However, not all applications that run on Windows can run on Wine.
So far, the Win3 version 6.0 installation was done and succeeded. For Wine resources can be found on the Wine official website. Have a nice day…