#Install trough Ubuntu libraries
sudo apt install wine64
dpkg --print-architecture
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt install wine64
wine --version
sudo apt-get install libgnutls30:i386 libldap-2.4-2:i386 libgpg-error0:i386 libxml2:i386 libasound2-plugins:i386 libsdl2-2.0-0:i386 libfreetype6:i386 libdbus-1-3:i386 libsqlite3-0:i386
### 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
sudo apt update
sudo apt install wine64
$ sudo dpkg --add-architecture i386
$ wget -qO- https://dl.winehq.org/wine-builds/Release.key | sudo apt-key add -
$ sudo apt install wine32