Wine 6.20 Released with Ubuntu 21.10 Support, Here’s how to Install

By releasing Wine 6.20, Wine now provides the packages for Ubuntu 21.10 in its official repository.

Wine is a free open-source software allows to run Windows apps in Linux, macOS and BSD. The latest development release now is Wine 6.20 that features:

  • MSXml, XAudio, DInput and a few other modules converted to PE.
  • A few system libraries are bundled with the source to support PE builds.
  • HID joystick is now the only supported joystick backend in DirectInput.
  • Better support for MSVCRT builds in Winelib.
  • Various bug fixes to win apps including Emergency 3, ZWCAD 2020, Diablo 2, and more.

How to Install Wine 6.20 in Ubuntu:

Press Ctrl+Alt+T key combination on keyboard to open terminal, then run the commands below one by one.

1. Enable 32 bit architecture support.

While modern computers now have 64-bit CPU architecture, Wine is a 32-bit software. So you may first enable the 32 bit architecture support by running command in terminal:

sudo dpkg --add-architecture i386

2. Install the key for Wine repository.

Since apt-key command is deprecated for security reason, here I’m going to tell the new method to install the third-party repository key in Ubuntu. Though apt-key is more effective and still works, you may use it if not care about cyber security!

a.) Firstly, run command in terminal to download the key:

wget -nc https://dl.winehq.org/wine-builds/winehq.key

b.) Next, convert the key into gpg by firstly importing it into a temp keyring, then exporting it to gpg:

gpg --no-default-keyring --keyring ./winehq-keyring.gpg --import winehq.key
gpg --no-default-keyring --keyring ./winehq-keyring.gpg --export --output winehq.gpg

c.) Finally, create the “/usr/local/share/keyrings” directory, and put the key into that location:

sudo mkdir /usr/local/share/keyrings
sudo mv winehq.gpg /usr/local/share/keyrings

3. Add Wine repository to your system:

After installing the key into “/usr/local/share/keyrings”, you may add the Wine repository by creating a config file and writing a line into it. And, it can be done by running the single command in terminal:

sudo sh -c 'echo "deb [signed-by=/usr/local/share/keyrings/winehq.gpg] https://dl.winehq.org/wine-builds/ubuntu/ impish main" >> /etc/apt/sources.list.d/winehq.list'

After that, apt will accept that key signature for all packages in this repository and only this repository.

NOTE: the command above is only for Ubuntu 21.10. For other Ubuntu editions, change impish in command to your system code-name (e.g., focal or bionic). And you can run “lsb_release -c” in terminal to check it out. For Linux Mint, Elementary OS and Zorin OS, do use the based Ubuntu codename.

4. Install Wine package:

Finally refresh system package cache via command:

sudo apt update

And install the Wine 6.20 (development release) by running command:

sudo apt install winehq-devel

After installation, use winecfg command to bring up configuration editor. And, right-click on EXE file and choose “Open with Other Application -> Open With Wine Windows Program Loader” to get start installing a Windows app.

Clean up or Remove Wine:

After installing the repository key, two useless files (“winehq.key” and “winehq-keyring.gpg”) are left in home directory. You may remove them via the file manager.

To remove Wine 6.20, run command in terminal:

sudo apt remove --autoremove winehq-devel

To remove the Wine repository, simply remove the file under “/etc/apt/sources.list.d” via the command below or use “Software & Updates” utility via “Other Software” tab.

sudo rm /etc/apt/sources.list.d/winehq.list

And remove the key if you want via command;

sudo rm /usr/local/share/keyrings/winehq.gpg
Published
Categorized as Howtos Tagged

By Ji m

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to remind me outdated tutorial! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via ubuntuhandbook1@gmail.com Buy me a coffee: https://ko-fi.com/ubuntuhandbook1

2 comments

  1. I followed the tutorial to the letter but I do get the following error:

    The following packages have unmet dependencies.
    winehq-devel : Depends: wine-devel (= 6.20~impish-1)
    E: Unable to correct problems, you have held broken packages.

  2. I followed all the comments, and it not only didn’t work (still can’t run .EXE files I could run on another Ubuntu system), but it messed up the system fonts. Thanks a lot!

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Exit mobile version