For your Information Wine 4 is already here. In this tutorial, I will show you how you can the new wine 4 Ubuntu 18.04/Linux mint 19.
If you are new this software, Wine (“Wine Is Not an Emulator”)is a brilliant open source software that makes it possible for you to run Window applications on POSIX-compliant operating systems, such as Linux, macOS, & BSD.
How to Install Wine 4.0 on Ubuntu 18.04 & 16.04 LTS
Installing Wine 4 on both Ubuntu 18.4 and Linux Mint 19/16.04 LTS takes similar process due to reasons that Linux Mint 19 is based on Ubuntu 18.04, In this Installation guide, we will use the WineHQ packages, so you will need to uninstall the previous wine versions installed in another repository, for example, wine-monos wine tricks etc.
Step 1: Enable 32-bit architecture support
The first thing you need to do is Enable 32-bit architecture support if your system is a 64 bit
sudo dpkg --add-architecture i386
Once that is done Proceed to
Step 2: Download and add the repository key:
Install wget (Web get is a command-line program that helps to retrieve data over web servers)if you do not already have this in your system by running sudo yum install wget zip unzip file.
sudo apt-get -y install wget
Then download and add repository key:
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
You should receive “OK” in the output.
run sudo yum whatprovides /usr/bin/wget to verify the utility
Step 3: Add Wine apt repository
Once you have imported the key, the next thing is to add the repository. You can use any of the command lines below to add the wine apt repository depending on the version and system you run.
### Ubuntu 19.04 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
Update apt index
sudo apt-get update
Step 4: Install Wine 4 on Ubuntu 18.04 / Linux Mint 19/16.04 LTS
Run the program command line below to install wine 4 package from the apt repository.
sudo apt-get update sudo apt install --install-recommends winehq-stable
After the package has been installed, Check your version once the Wine installation is complete:
$ wine --version wine-4.0.1
if you are faced with unmet dependency error while installing, use the below command line to install winehq using aptitude.
sudo apt-get install aptitude sudo aptitude install winehq-stable
Right click on the app and click on Open With Wine Windows Program as illustrated below.