Wine Stable 7.0 Released! How to Install in Ubuntu 20.04 / Linux Mint 20

Last updated: January 20, 2022 — 9 Comments

After a year of development, Wine, the software for running Windows apps on Linux finally released new stable 7.0 version with over 9,100 individual changes.

What’s New in Wine 7.0:

In Wine 7.0, most modules have been converted to PE format (Portable Executable, the Windows binary format) instead of ELF. This helps various copy protection schemes that check that the on-disk and in-memory contents of system modules are identical.

This release also implemented 64-bit Windows-on-Windows (WoW64) architecture, enables ability to run a 32-bit Windows application inside a 64-bit Unix host process. Once all modules converted to PE format, it will be possible to run 32-bit applications without installing 32-bit Unix libraries.

All the builtin applications and common controls now support theming, as well as High DPI rendering. A “Light” theme is included, with the color variants “Blue” and “Classic Blue”.

The 7.0 release also introduced the new kernel side Win32u graphics library. The graphics drivers (e.g., winex11.drv and winemac.drv) will be migrated to this library in next releases.

Other changes in Wine 7.0 include:

  • Some initial support for Direct2D effects.
  • Multiple displays support for Direct3D apps.
  • More graphics cards recognized via Direct3D database:
    • AMD Radeon RX 5500M
    • AMD Radeon RX 6800/6800 XT/6900 XT
    • AMD Van Gogh
    • Intel UHD Graphics 630
    • NVIDIA GT 1030
  • Vastly improved HID stack and joystick support.
  • Update Mono to v7.0.0 with many improvements.
  • The ‘faudio’ now bundled in the source, which means Ubuntu 18.04 no longer needs adding separate PPA for the dependency (NOT tested as I don’t have 18.04 at hand).
  • See announcement for more details.

How to Install Wine 7.0 in Ubuntu & Linux Mint:

The official Wine repository provides the packages for Ubuntu 18.04, Ubuntu 20.04, Ubuntu 21.04, Ubuntu 21.10, Linux Mint 20, and their derivatives.

1. Enable 32 bit architecture

For modern 64-bit systems, you may first make sure the ability to install 32-bit app packages has been enabled.

To do so, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command:

sudo dpkg --add-architecture i386

2. Install the key:

To make your system trust the package from Wine repository, you have to download & install the key.

It’s can be done simply by running the command below in terminal:

wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

Though the apt-key command is deprecated, it’s still working and the most efficient so far.

NOTE: The command may stuck with blinking cursor after downloading the key, if you run this command in another window or a few minutes after the last. It’s waiting for you to type password for ‘sudo’ authentication. Just type your password (no visual feedback) in mind and hit Enter.

3. Add Wine Repository:

Now in terminal window, run command to add the Wine repository:

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'

NOTE: the command above is for ‘Ubuntu 20.04’ and ‘Linux Mint 20’ only!!! For other Ubuntu edition (check via lsb_release -a command), do change focal in the code with:

  • bionic for Ubuntu 18.04.
  • hirsute for Ubuntu 21.04.
  • impish for Ubuntu 21.10.

Say you’re running on Ubuntu 21.10, the command will be:

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ impish main'

4. Install Wine 7.0:

Finally, refresh system package cache by running command:

sudo apt update

And, install Wine 7.0 via:

sudo apt install --install-recommends winehq-stable

Unmet dependency is a common issue while installing Wine in Ubuntu. In my Ubuntu 20.04, I never had the issue after manually installing the following packages:

sudo apt-get install libgnutls30:i386 libldap-2.4-2:i386 libgpg-error0:i386 libxml2:i386 libasound2-plugins:i386 libsdl2-2.0-0:i386 libfreetype6:i386 libdbus-1-3:i386 libsqlite3-0:i386

Also, you may use aptitude (install it via sudo apt install aptitude) instead to print workarounds:

sudo aptitude install winehq-stable

Uninstall Wine 7.0:

To remove the wine packages, use command in terminal:

sudo apt remove --auto-remove winehq-stable

And remove the Wine repository using ‘Software & Updates‘ utility at Other Software tab.

That’s all. Enjoy!

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 remind me outdated tutorial! 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: https://ko-fi.com/ubuntuhandbook1

9 responses to Wine Stable 7.0 Released! How to Install in Ubuntu 20.04 / Linux Mint 20

  1. Thanks! Worked nicely.

  2. The easiest way to install Wine is via PlayOnLinux. In PlayOnLinux you can choose many versions of Wine and assign them to the appropriate application.

    • Careful: PlayOnLinux is a set of Windows configs to make Windows apps easier to install. You need Wine before you can run PlayOnLinux.

  3. I have tried this several time and I am wondering if it is because I have Ubuntu 22.04.

    Afterdoing all previous steps, I get the following

    [email protected]:~$ sudo apt-add-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ focal main’\
    >
    Repository: ‘deb https://dl.winehq.org/wine-builds/ubuntu/ focal main’
    Description:
    Archive for codename: focal components: main
    More info: https://dl.winehq.org/wine-builds/ubuntu/
    Adding repository.
    Press [ENTER] to continue or Ctrl-c to cancel.^[[A



    Fetched 636 kB in 1s (513 kB/s)
    Reading package lists… Done
    W: https://dl.winehq.org/wine-builds/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
    [email protected]:~$

    • Winehq repository does not support Ubuntu 22.04 at the moment. The command in step 3 should be (replace focal with jammy):

      sudo add-apt-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ jammy main’

      And, the Warning “Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg)…” is due to apt-key change, though it still work.

  4. Thank you! I followed your instructions and it worked perfectly. Your instructions are the only ones that I could find that actually work. Again, a big THANK YOU!

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

  6. I have the same issue.

    It work after I fixed the dependencies issue as below. Which is mentioned above

    sudo apt-get install libgnutls30:i386 libldap-2.4-2:i386 libgpg-error0:i386 libxml2:i386 libasound2-plugins:i386 libsdl2-2.0-0:i386 libfreetype6:i386 libdbus-1-3:i386 libsqlite3-0:i386

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> 

*

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