How to Install Wine 5.12 in Ubuntu 20.04 / Linux Mint 20

Last updated: July 4, 2020

Wine Stable

Wine 5.12 was released a day ago as the latest development release of the compatibility layer allows to run Windows apps on Linux and Mac OS. The official apt repository has made the packages for all current Ubuntu releases.

Wine 5.12 release highlights include:

  • NTDLL converted to PE format.
  • Support for the WebSocket API.
  • Improved RawInput support.
  • Vulkan spec update.
  • Total of 48 bug fixes.

How to Install Wine 5.12 in Ubuntu:

Open terminal either by pressing Ctrl+Alt+T on keyboard, or by searching for ‘terminal’ from system application menu. When it opens, run following commands one by one.

1.) Run command to enable 32 bit architecture (if you haven’t already):

sudo dpkg --add-architecture i386

Type user password (no asterisk feedback) when it prompts and hit Enter to continue.

2.) Download and install the repository key via command:

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

3.) Add wine repository via command (for Ubuntu 20.04 and Linux Mint 20):

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

NOTE: You may replace focal in the code with:

  • bionic for Ubuntu 18.04 and Linux Mint 19.x
  • eoan for Ubuntu 19.10

4.) Add PPA for the required libfaudio0 library:

For Ubuntu 18.04 and Linux Mint 19.x only, libfaudio0 library is still required to install from a third-party repository by running command:

sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport

5.) Finally install Wine 5.12 via command:

sudo apt update && sudo apt install --install-recommends winehq-devel

NOTE: installing the latest development release will automatically remove the stable version (if installed).

And for the unmet dependencies issue installing 32-bit libraries, try running command:

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

(Optional) After successfully installed Wine 5.12, you may remove the PPAs by launching Software & Updates utility and navigating to Other Software tab.

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

23 responses to How to Install Wine 5.12 in Ubuntu 20.04 / Linux Mint 20

  1. Thank you – it worked like a dream for me, with a newly installed Linux Mint 20 Cinnamon, unlike the approach recommended in the Release Notes, which wouldn’t open ancient 32 bit Windows stuff unless I did weird stuff with WINE prefixes. (I’m not a techie and all that looks scary and convoluted.)
    It did ask to install a MONO and two GECKO packages, and recommended that I choose versions best suited to my Linux installation. I ignored that and went for the default packages, which worked just fine.

  2. Thanks a lot, that solved me after upgrade from 19.3 to 20, all already installed software works again without re-installation.

  3. Terimakasi mister. semoga hari-harimu senang.

  4. hi.
    i cant fish installation just like you said.. it keeps saying you have retain broken packages.
    any help please

  5. Hello,

    I did literally all your recommendations from the first instruction till the last one. At the end, nothing happened. Wine is not running in my PC.

    Is it possible some orientation from you?

    Cheers.

  6. Hi.
    Thanks for the how-to. After installing, when I tried to start Wine, the following message came up on Terminal. Running Linux Mint 20 Mate.

    0024:err:module:__wine_process_init L”C:\\windows\\system32\\program.exe” not found

    Any suggestions?

  7. thanks a lot.

  8. Perfect. Solved the issue for me. Thank you!

  9. Hi, I followed all of your instructions and in the end when I tried running wine (wine PROGRAM) it stated it could not find PROGRAM.EXE

    0024:err:module:process_init L”C:\\windows\\system32\\PROGRAM.exe” not found

    Please help. Thanks in advance, Scott

  10. Thanks Install perhaps I missed something how to you start wine. its been a number of years since my last successful install, think that was in the early days of 17….
    Any help would be welcome

  11. This didn’t work at all for me.

  12. i installed wine as u said. but when i try to install .exe file it gave me error saying
    **fatal error : cannot create temporory files **
    then i tried to run it as root user and again i received diferrent error saying:
    **failed to execute script main**.

  13. hello, i have installed wine through these simple steps
    but unfortunately, nothing happened. is there any problem ?
    i have Linux mint 20 cinnamon.

  14. Tried:
    And for the unmet dependencies issue installing 32-bit libraries, try running command:

    $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

    $sudo apt update && sudo apt install –install-recommends winehq-devel

    BUT:
    The following packages have unmet dependencies:
    winehq-devel : Depends: wine-devel (= 5.19~focal)

  15. Followed all your steps. At the very end I get the following error message in terminal:

    E: Could not configure ‘libc6:i386’.
    E: Could not perform immediate configuration on ‘libgcc-s1:i386’. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)

  16. I followed all steps until:

    Scott September 23, 2020 at 4:31 pm

    0024:err:module:process_init L”C:\\windows\\system32\\programm.exe” not found

    then stopped, because of

    >>> tFt November 27, 2020 at 6:04 pm

    Followed all your steps. At the very end I get the following error message in terminal:

    E: Could not configure ‘libc6:i386’.
    E: Could not perform immediate configuration on ‘libgcc-s1:i386’. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
    Reply
    >>>

    looks like nobody found the right solution to install a running wine in this post.
    How can I remove all the stuff I loaded from the tips of this side ?

  17. Step 1-4 work.
    At step 5 the computer says:

    Media change: please insert the disc labeled ‘Ubuntu 20.04.1 LTS _Focal Fossa_ – Release amd64 (20200731)’ in the drive ‘/cdrom/’ and press [Enter]

    I don’t have a disc, I installed via thumb drive.
    Any solution?

    Thanks in advance

  18. Jocelyn Chartrand December 10, 2020 at 10:44 pm

    could you make a ppa for ASTROLOG and OPENASTRO

  19. I followed all instructions with no problem. But nothing showed up when I tried to use it. I then went through all the procedures again, and each time was told that it had already been installed.
    But there seems to be no way to get it to work.

  20. Perfect! Many thanks! I have tried all sorts of guides to get Wine running on Mint20, yours is the first one that actually worked! Genius! Thanks again

  21. Thank you so much for making Wine available for Mint 20.
    I like to play an old WIN game ‘SHIII GWX’ that is so much worked through, that no-one would bother to make it today.