Did you know that Wine 5 has been released?. This guide will take you through the steps to install Wine 5 on Ubuntu 18.04 / Linux Mint 19. For those new to Wine, it is an open source software that allows you to run Windows applications on Linux. Read more on Wine 5 release and new features.
For Ubuntu 16.04 / 18.10 / Linux Mint 18, check How to Install Wine 5 on Ubuntu 16.04 / 18.10 / Linux Mint 18
Debian 10/9/8: How To Install Wine 5 on Debian 10/9
Install Wine 5 on Ubuntu 18.04 / Linux Mint 19
Since Linux Mint 19 is based on Ubuntu 18.04, the installation of Wine 5 on both of these distributions is a similar process. Our installation uses WineHQ packages. You’ll need to remove the previous version of Wine that might have been installed from another repository, e.g
Step 1: Enable 32 bit architecture
If you’re running a 64-bit system, enable support for 32-bit applications.
sudo dpkg --add-architecture i386
Then proceed to step 2
Step 2: Download and add the repository key:
Install wget if not present in your system.
sudo apt-get update sudo apt-get -y install software-properties-common 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.
Step 3: Add the Wine repository
After importing the key, proceed to add repository.
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
Also add SDL2 library repository:
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
Update apt index:
sudo apt-get update
Using Wine OBS repository
If you want to use Wine OBS repository instead, add it like below.
wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key | sudo apt-key add - echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list sudo apt update
Step 4: Install Wine 5 on Ubuntu 18.04 / Linux Mint 19
The final step is the actual installation of Wine 5 on Ubuntu 18.04 / Linux Mint 19.
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-5.0
Step 5: Using Wine on Debian
For basic usage of wine, check help page.
$ wine --help
Example below is used to run Notepad++ editor on Linux.
$ cd ~/Downloads $ wget https://notepad-plus-plus.org/repository/7.x/7.7/npp.7.7.Installer.exe $ wine ./npp.7.7.Installer.exe
Follow installation prompts like for any other Windows application.
Enjoy running Windows Applications on Wine 5.