Open Terminal.
Ensure you have 32bit arch support installed;
sudo dpkg --add-architecture i386
Add the repository key:
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
Install the Focal repository (Do Not install Jammy):
sudo apt-add-repository 'deb Index of /wine-builds/ubuntu focal main'
Update sources and install:
sudo apt update && sudo apt install --install-recommends winehq-stable
Ensure you have wine 8:
wine --version