### Wine Ubuntu
#If your system is 64 bit, enable 32 bit architecture (if you haven't already):
sudo dpkg --add-architecture i386
#Download and add the repository key:
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo mv winehq.key /usr/share/keyrings/winehq-archive.key
# Ubuntu 22.04
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
sudo mv winehq-jammy.sources /etc/apt/sources.list.d/
#----------------------------------------------------
# Ubuntu 21.10
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/impish/winehq-impish.sources
sudo mv winehq-impish.sources /etc/apt/sources.list.d/
#----------------------------------------------------
# Ubuntu 20.04 | Linux Mint 20.x
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
sudo mv winehq-focal.sources /etc/apt/sources.list.d/
#----------------------------------------------------
# Ubuntu 18.04 | Linux Mint 19.x
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/winehq-bionic.sources
sudo mv winehq-bionic.sources /etc/apt/sources.list.d/
# Update packages:
sudo apt update
# Then install one of the following packages:
# Stable branch
sudo apt install --install-recommends winehq-stable
#--------------------------------------------------
# Development branch
sudo apt install --install-recommends winehq-devel
#--------------------------------------------------
# Staging branch
sudo apt install --install-recommends winehq-staging