How to install Wine on Neon 18.04 Bionic (KDE Neon)

This simple guide will help you to install wine32 on bionic release of KDE neon. The steps shown in this guide worked on to systems both running

Code: Select all
No LSB modules are available.
Distributor ID:   neon
Description:   KDE neon User Edition 5.13
Release:   18.04
Codename:   bionic

If you’re having issues installing wine on Neon 18.04 it has to do with i386 versión of wine. First of all you have to allow i386 architecture

Code: Select all
sudo dpkg --add-architecture i386

Don’t try to install wine still. First add wine repositories

Code: Select all
 
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ artful main'
sudo apt update

If you try to install at this point you’ll still have dependencies issues, you have to downgrade libblkid1 to versión 2.31.1-0.4ubuntu3.1

Code: Select all
sudo apt install libblkid1=2.31.1-0.4ubuntu3.1

after that install i386 versión of the package

Code: Select all
sudo apt install libblkid1:i386

I marked the package to not be upgraded using the following command

Code: Select all
sudo apt-mark hold libblkid1

Now, you can install wine.

Code: Select all
sudo apt install wine-stable wine32

After the installation if you try to run wine, you’ll get the error “Command wine not found”. It’s because wine binaries are located in /opt/wine-stable/bin/ but are being looked for in /usr/bin you can check that wine is actually installed by typing

Code: Select all
sudo find / -type f -name wine

To solve this you can create simlinks to to the binaries within /usr/bin for both wine and wine64

Code: Select all
sudo ln -s /opt/wine-stable/bin/wine /usr/bin/wine
sudo ln -s /opt/wine-stable/bin/wine64 /usr/bin/wine64