install wine code example

Example 1: install wine ubuntu

#Install trough Ubuntu libraries
sudo apt install wine64

Example 2: wine install ubuntu

# Add wine key
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key

# Add repository

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'

# Update packages

sudo apt update

# Install wine

sudo apt install --install-recommends winehq-stable

Example 3: ubuntu install wine terminal

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

Example 4: how to install wine in ubuntu

$ sudo dpkg --add-architecture i386

Example 5: how to install wine in ubuntu

$ wget -qO- https://dl.winehq.org/wine-builds/Release.key | sudo apt-key add -

Example 6: how to install wine in ubuntu

$ sudo apt install wine32