If you're like me and use Wine for some programs/games, you may wish to install the latest builds to take advantage of the latest fixes and features, as the Ubuntu packages do not update that often for stability reasons.
Adding the Repository
The Wine team announced they'll use their own in-house repository for providing packages for Ubuntu.
The Software Boutique adds and installs packages from this repository. To do it by hand:
wget https://dl.winehq.org/wine-builds/Release.key sudo apt-key add Release.key sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/' rm Release.key
Install the relevant package
The following packages install system-wide:
winehq-devel-- latest development release. (e.g. 2.7.0)
winehq-stable-- latest stable release. (e.g. 2.0.1)
winehq-staging-- based on the staging branch, it's advised to only use this if there is a fix here you need for your application.
Pick the one you desire to use, such as:
sudo apt install winehq-devel
wine from the Ubuntu repository is left installed, it will be removed as it conflicts.
Unlike Ubuntu's own package of Wine, the official packages do not integrate Wine into the Applications menu. You'll need to run Wine through the terminal, or add shortcuts yourself.
Here's some commands you may use:
winecfg wine explorer wine taskmgr wine 'C:\path\to\file' wine ~/Desktop/setup.exe
Missing Gecko and Mono packages
You may receive a message when the wine prefix is updated about a missing Gecko package and another for Mono. To suppress the messages, install a system-wide package.
Gecko is what allows applications to embed HTML pages.
sudo apt install wine-gecko2.21
Mono is an open source .NET implementation.
sudo apt install wine-mono0.0.8
Note that these versions may change in future, press Tab after the
wine- part to auto-complete the version available or use Synaptic to pick the latest package number you can find.