Wine 8.0 Stable Released! How to Install in Ubuntu 22.04 | 20.04

Last updated: September 3, 2023 — 6 Comments

Wine, the compatibility layer for running MS Windows apps in Linux and macOS, announced new stable 8.0 release after 1 year of development.

Wine 8.0 has finally completed PE conversion. All modules can be built in PE format. Meaning various features to be supported, such as copy protection, 32-bit applications on 64-bit hosts, Windows debuggers, x86 applications on ARM, etc.

Wow64 (Microsoft’s subsystem for running 32 bit applications on 64-bit Windows) is implemented for essentially all Unix libraries. Once the legacy calls removed, it will be possible to run 32-bit Windows applications on Linux without any 32-bit Wine libraries.

Other changes in Wine 8.0 include:

  • Print Processor architecture implemented.
  • Enable light theme for configuration by default.
  • Convert the graphics drivers to run on the Unix side of the syscall boundary.
  • Effects are supported in Direct2D.
  • Direct3D improved with more graphics cards support.
  • Greatly improved the controller hotplug support.
  • Support Sony DualShock and DualSense controllers when the hidraw backend is used.
  • Introduce Windows.Gaming.Input API with hotplug notifications, force feedback effects and haptics, as well as trigger rumble support.
  • Mono engine updated to 7.4.0

How to Install Wine 8.0 in Ubuntu and Linux Mint

Winehq website now has a good tutorial teaching about how to install Wine packages in Ubuntu based systems. And, here is a re-write with more descriptions.

1. First, press Ctrl+Alt+T on keyboard to open a terminal window. When it opens, run command:

sudo dpkg --add-architecture i386

This command makes it possible to install 32-bit packages in 64-bit Ubuntu, since Wine at the moment still requires a lot of 32-bit libraries.

2. Then, run command in terminal to create “keyrings” folder under ‘/etc/apt’ directory for storing the keys. With -p flag, it ignores error if that folder already exist.

sudo mkdir -p /etc/apt/keyrings

3. Next, use wget command line downloader to download the GPG key for winehq repository, and store in the folder you created in last step.

sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

4. Now, run command to download the config file for Winehq apt repository and store in ‘/etc/apt/sources.list.d/’.

sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/$(lsb_release -sc)/winehq-$(lsb_release -sc).sources

IMPORTANT: This command is for Ubuntu 23.04, 22.04, 20.04, 18.04 only! For Linux Mint, Zorin OS, etc, you have to replace the “$(lsb_release -sc)” in command with the codename of Ubuntu version your system is based on:

  • For Ubuntu 23.04 based system, use lunar.
  • For Ubuntu 22.04 based system (e.g., Linux Mint 21), use jammy instead.
  • For Ubuntu 20.04 based (e.g., Zorin OS 16.x), use focal.
  • For Ubuntu 18.04 based system, use bionic

5. After setting up the Wine’s official apt repository, run the command below to fetch package index:

sudo apt update

In the output, there should be a output line indicates Get x https://dl.winehq.org/wine-builds/ubuntu xxxxx InRelease.

6. Finally, install Wine stable 8.0, as well as dependency libraries via command:

sudo apt install --install-recommends winehq-stable

7. After successfully installed Wine packages, run command to generate the config files and open the configuration dialog.

winecfg

There you can verify Wine version and change the settings of this layer.

8 Finally, right-click on your EXE file in file manager and select “Open With Wine Windows Program Loader” (or select it from open with other applications dialog). See if Wine supports your Windows app.

How to Remove Wine 8.0

To remove the software package as well as dependency libraries, simply open terminal and run command:

sudo apt remove --autoremove winehq-stable

Also, remove the Wine apt repository by removing the source file:

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

And remove the key file via:

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

Finally, remember to refresh package index via sudo apt update command.

Twitter

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 ubuntuhandbook1@gmail.com Buy me a coffee: https://ko-fi.com/ubuntuhandbook1 |

6 responses to Wine 8.0 Stable Released! How to Install in Ubuntu 22.04 | 20.04

  1. Personally I have had better luck with Play On Linux running Windows programs than just wine, although I realize Play On Linux uses Wine.

  2. thx mate

  3. This is not working here:
    The following packages have unmet dependencies:
    winehq-stable : Depends: wine-stable (= 8.0.0.0~jammy-1)
    E: Unable to correct problems, you have held broken packages.

  4. HI
    How do i install wine 8.3 struggling with dependencies on 22.04 ?

  5. Same problem as Marko, won’t install…
    sudo apt install winehq-stable
    Reading package lists… Done
    Building dependency tree… Done
    Reading state information… Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

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

  6. https://wiki.winehq.org/Building_Wine

    The link above has a helpful chart of some (old?) Wine dependencies which could be tactfully installed manually/optionally (via “sudo apt-get install”). Of course, apt will suggest/recommend additional items.

    Typically, I like to study the recommendations/suggestions, then cancel the operation before including some of the recommendations/suggestions and then ultimately doing the operation (install/reinstall) with the extra items copypasted in.

    I hope this is helpful.

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> 

*