How to Install Wine 2.9 in Ubuntu:
The official Wine repository has built the packages for Ubuntu 14.04, Ubuntu 16.04, Ubuntu 16.10, Ubuntu 17.04. Follow the steps one by one to add the repository and install Wine 2.9:
1. Open terminal via Ctrl+Alt+T, and run command to install the key:
wget https://dl.winehq.org/wine-builds/Release.key && sudo apt-key add Release.key
2. Then add the Wine repository via command:
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
3. If your system is 64 bit, make sure 32 bit architecture is enabled via command:
sudo dpkg --add-architecture i386
4. Finally install wine-devel either via your system package manager or by running command:
sudo apt-get update && sudo apt-get install --install-recommends wine-devel
Uninstall:
To remove wine 2.9, either use your system package manager or run command:
sudo apt-get remove wine-devel && sudo apt-get autoremove