1. Enable 32 bit architecture
For modern 64-bit systems, you may first make sure the ability to install 32-bit app packages has been enabled.
To do so, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command:
sudo dpkg --add-architecture i386
2. Install the key:
To make your system trust the package from Wine repository, you have to download & install the key.
It’s can be done simply by running the command below in terminal:
wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
apt-key command is deprecated, it’s still working and the most efficient so far.
3. Add Wine Repository:
Now in terminal window, run command to add the Wine repository:
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
4. Install Wine 7.0:
Finally, refresh system package cache by running command:
sudo apt update
And, install Wine 7.0 via:
sudo apt install --install-recommends winehq-stable