Wine 8.0 RC2 Released! How to install in Ubuntu 22.04 | 20.04

Last updated: December 24, 2022 — 1 Comment

For those who would like to run Windows apps on Linux, the new major Wine 8.0 now is in RC release stage.

As usual, there will be 6 RC releases until final stable version. The latest so far is rc2 that features 50 bug-fixes for applications, including ICU64 for VICE, UT99, Warframe, MyPhoneExplorer, Silent Hill 2, Resident Evil 7, Serious Sam 2, and more. See the announcement for details.

How to Install Wine 8.0 rc2 in Ubuntu 22.04 | 20.04 | 18.04 | 22.10

Winehq website has official setup guide for installing the software in Ubuntu & other Linux. However, it still use the ASCII-armored key which is deprecated.

1. Install Wine key

The repository now has updated with new method to install the key to follow Debian policy, as apt-key is deprecated. However, it’s still ASCII-armored key so far.

Press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command to create ‘/etc/apt/keyrings’ directory in case it’s not exist, for storing the keys:

sudo mkdir -p /etc/apt/keyrings

Then, run the single command to download the key, dearmor, and move to “/etc/apt/keyrings” directory:

sudo wget -O - | gpg --dearmor | sudo tee /etc/apt/keyrings/winehq-archive.key

Type user password and hit Enter if the command stuck with blinking cursor. And, it will output un-readable text as the picture shows:

2. Add Wine repository:

Next run the commands below one by one to download the repository setup file and install to “/etc/apt/sources.list.d” directory.

  • Download and install the source file:
    sudo wget -NP /etc/apt/sources.list.d/$(lsb_release -sc)/winehq-$(lsb_release -sc).sources

IMPORTANT: “$(lsb_release -sc)” in command returns system’s code-name. For Linux Mint and other Ubuntu based system, you HAVE to replace it with kinetic (22.10), jammy (22.04), focal (20.04) or bionic (18.04) depends on which Ubuntu edition your system is based on.

3. Update cache

Before installing any package from that repository, you need to refresh system cache by running command in terminal:

sudo apt update

4. Install Wine Development:

Finally, run the apt install command to install the new development release:

sudo apt install winehq-devel

After installation, use winecfg to generate and open the configuration page, and finally right-click on your EXE file and start it via Wine program loader option. See if you app works with wine.

How to Remove Wine:

1. To remove the Wine package, simply open terminal and run commands:

sudo apt remove --autoremove wine winehq-devel

There will be local configuration files and app data left under .wine and .local/share/applications. They are hidden folders, press Ctrl+H in file manager to toggle display and remove them as you want.

2. To remove the Wine repository, open terminal (Ctrl+Alt+T) and run command:

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

And remove the repository key via command:

sudo rm /etc/apt/keyrings/winehq-archive.key

Finally apply changes by running sudo apt update to refresh system package cache.


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 let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee:

One response to Wine 8.0 RC2 Released! How to install in Ubuntu 22.04 | 20.04

  1. Not to knock wine alone, but I have had much better luck with Play on Linux for running Window programs, and I am not a gamer.
    Maybe Ji could explain the benefits and short comings of both?

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>