If you are running a 64-bit Ubuntu system, enable the 32-bit architecture and update the packages list:
sudo dpkg --add-architecture i386
sudo apt update
Import the WineHQ repository’s GPG key:
wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
Add the WineHQ repository to your system:
sudo apt install software-properties-common sudo apt-add-repository "deb http://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -cs) main"
Install Wine by typing:
sudo apt install --install-recommends winehq-stable
This will install a bunch of packages. Once completed, verify the Wine installation by typin:
wine --version