The Wine development has reached the 2.22 release. Here’s how to install it in Ubuntu via its official repository.
Wine 2.21 features:
- Source selection dialog for scanners.
- Improvements in ARM64 support.
- Float audio formats with more than 2 channels in XAudio.
- Fixes for DLL injection support.
- Input methods improvements.
- A total of 14 bug fixes.
How to Install Wine 2.22 in Ubuntu / Linux Mint:
For Ubuntu 14.04, Ubuntu 16.04, Ubuntu 17.04, Ubuntu 17.10, Linux Mint 17.x and 18.x, open terminal via Ctrl+Alt+T and run following commands one by one:
1. Add the official wine repository via command:
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
For Linux Mint 18.x, use following command instead to add the repository:
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
For Linux Mint 17.x, replace xenial
in the code with trusty
.
2. Install the GPG key to be able to receive software updates:
wget -nc https://dl.winehq.org/wine-builds/winehq.key && sudo apt-key add winehq.key
3. Finally update and install the latest Wine development release:
sudo apt-get update sudo apt-get install --install-recommends winehq-devel
Uninstall:
To remove wine dev release, simply run command in terminal:
sudo apt-get remove --autoremove winehq-devel
And you can remove the repository via Software & Updates utility under Other Software tab.
Hi Ji,
Thank you for sharing this. I tried the above on my newly installed Ubuntu 17.10 but I did not manage to install Wine. It gives me this error below. Do you have advice please how to solve?
sudo apt-get install –install-recommends winehq-devel
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
chromium-codecs-ffmpeg-extra fonts-wine libwine:i386 libwine
libwine-development libwine-development:i386 ocl-icd-libopencl1:i386
wine32:i386 wine32-development:i386 wine64 wine64-development
Use ‘sudo apt autoremove’ to remove them.
The following additional packages will be installed:
libsane1:i386 wine-devel wine-devel-amd64 wine-devel-i386:i386
Suggested packages:
hplip:i386
Recommended packages:
libcapi20-3 libcapi20-3:i386
The following packages will be REMOVED
winehq-stable
The following NEW packages will be installed
libsane1:i386 wine-devel wine-devel-amd64 wine-devel-i386:i386 winehq-devel
0 to upgrade, 5 to newly install, 1 to remove and 0 not to upgrade.
Need to get 42,1 MB/44,3 MB of archives.
After this operation, 396 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://dl.winehq.org/wine-builds/ubuntu artful/main amd64 wine-devel-amd64 amd64 3.0~rc1~artful [20,7 MB]
Get:2 https://dl.winehq.org/wine-builds/ubuntu artful/main i386 wine-devel-i386 i386 3.0~rc1~artful [20,2 MB]
Get:3 https://dl.winehq.org/wine-builds/ubuntu artful/main amd64 wine-devel amd64 3.0~rc1~artful [1117 kB]
Get:4 https://dl.winehq.org/wine-builds/ubuntu artful/main amd64 winehq-devel amd64 3.0~rc1~artful [3164 B]
Fetched 42,1 MB in 12s (3394 kB/s)
Selecting previously unselected package wine-devel-amd64.
(Reading database … 174561 files and directories currently installed.)
Preparing to unpack …/wine-devel-amd64_3.0~rc1~artful_amd64.deb …
Unpacking wine-devel-amd64 (3.0~rc1~artful) …
Selecting previously unselected package wine-devel-i386:i386.
Preparing to unpack …/wine-devel-i386_3.0~rc1~artful_i386.deb …
Unpacking wine-devel-i386:i386 (3.0~rc1~artful) …
Selecting previously unselected package wine-devel.
Preparing to unpack …/wine-devel_3.0~rc1~artful_amd64.deb …
Unpacking wine-devel (3.0~rc1~artful) …
dpkg: winehq-stable: dependency problems, but removing anyway as you requested:
playonlinux depends on wine | wine-development; however:
Package wine is not installed.
Package winehq-stable which provides wine is to be removed.
Package wine-development is not installed.
(Reading database … 178383 files and directories currently installed.)
Removing winehq-stable (2.0.3~artful) …
Selecting previously unselected package winehq-devel.
(Reading database … 178322 files and directories currently installed.)
Preparing to unpack …/winehq-devel_3.0~rc1~artful_amd64.deb …
Unpacking winehq-devel (3.0~rc1~artful) …
Preparing to unpack …/libsane1_1.0.27-1~experimental2ubuntu2.1_i386.deb …
Unpacking libsane1:i386 (1.0.27-1~experimental2ubuntu2.1) …
dpkg: error processing archive /var/cache/apt/archives/libsane1_1.0.27-1~experimental2ubuntu2.1_i386.deb (–unpack):
trying to overwrite shared ‘/lib/udev/hwdb.d/20-sane.hwdb’, which is different from other instances of package libsane1:i386
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libsane1_1.0.27-1~experimental2ubuntu2.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)