Install Wine

#!/bin/bash

# add repository
#sudo apt install -y apt-transport-https
sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/

# pre-answer installation questions
#sudo debconf-set-selections <<\EOF
#msttcorefonts msttcorefonts/defoma note
#ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula boolean true
#ttf-mscorefonts-installer msttcorefonts/present-mscorefonts-eula note
#EOF

# install wine
#if [ "$1" == "-s" ]; then
#  # staging release
#  sudo apt-get install -y --install-recommends winehq-staging
#else
#  # stable release
  sudo apt-get install -y --install-recommends winehq-stable
#fi

# install latest winetricks
sudo apt-get install -y winetricks
#sudo winetricks --self-update
>

winetricks

sudo apt-get install -y winetricks
#sudo winetricks --self-update
 
# winetricks BASH completion
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks.bash-completion -O- | sudo tee /etc/bash_completion.d/winetricks
source /etc/bash_completion.d/winetricks

Downgrade to Wine 1.2.x (64 bit)

sudo apt-get remove wine1.4
cd /tmp
wget http://ie.archive.ubuntu.com/ubuntu/pool/universe/w/wine1.2/wine1.2_1.2.3-0ubuntu1_amd64.deb
wget http://ie.archive.ubuntu.com/ubuntu/pool/universe/n/nss-mdns/lib32nss-mdns_0.10-3.1ubuntu1_amd64.deb
sudo dpkg -i wine1.2_1.2.3-0ubuntu1_amd64.deb lib32nss-mdns_0.10-3.1ubuntu1_amd64.deb
wine --version

OPTIONAL: fake ie6 installation

wget kegel.com/wine/winetricks -P /tmp; sh /tmp/winetricks fakeie6

Snap package
https://snapcraft.io/wine-platform-6-stable

Debug

wine --version

Compile wine (deprected)

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get build-dep wine1.3
sudo apt-get --build source wine1.3
./configure
make

Links
http://appdb.winehq.org/ - supported applicatinos
http://www.winehq.org/site/download-deb - Wine for Debian based distributions
http://wiki.winehq.org/AdobePhotoshop
http://wiki.winehq.org/AdobeAcrobatPro