How to Install Wine 5.0 Stable in Ubuntu 18.04, 19.10

January 23, 2020 — 42 Comments

Wine Stable

Wine 5.0 stable was released 2 days ago with a large number of improvements. Here’s how to install it in Ubuntu 18.04, Ubuntu 19.10 (fix dependenices).

Wine 5.0 is dedicated to the memory of Józef Kucia, who passed away in August 2019 at the young age of 30. Józef was a major contributor to Wine’s Direct3D implementation, and the lead developer of the vkd3d project. His skills and his kindness are sorely missed by all of us.

Wine 5.0 features:

  • Builtin modules in PE format.
  • Multi-monitor support.
  • XAudio2 reimplementation.
  • Vulkan 1.1 support.

How to Install Wine 5.0 in Ubuntu:

The official wine apt repository has made the packages for Ubuntu 16.04, Ubuntu 18.04, Ubuntu 19.04, and Ubuntu 19.10.


I’ve successfully installed Wine 5.0 in Ubuntu 19.10 via following steps without any dependency issue.

Ubuntu 18.04 however run into unmet dependencies issue even after purging graphics drivers PPA, kisak-mesa PPA, etc. And sudo aptitude install wine-stable command output hundreds of package conflicts with no workaround.

THANKS to lutris, I’ve finally got out of the Wine Dependency hell in Ubuntu 18.04 by 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

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

1.) Run command to enable 32 bit architecture:

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 -nc; sudo apt-key add winehq.key

3.) Add wine repository via command (for Ubuntu 19.10):

sudo apt-add-repository 'deb eoan main'

NOTE: You may replace eoan in the code with:

  • bionic for Ubuntu 18.04 and Linux Mint 19.x
  • xenial for Ubuntu 16.04 and Linux Mint 18.x

4.) Add PPA for the required libfaudio0 library:

For Ubuntu 18.04, Linux Mint 19.x, and Ubuntu 19.04 only, as higher Ubuntu releases already have libfaudio0 in the main repositories.

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

5.) Finally install Wine 5.0 stable via command:

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

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

I'm a freelance blogger who started using Ubuntu 5+ years ago and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me on Google Plus or email to

42 responses to How to Install Wine 5.0 Stable in Ubuntu 18.04, 19.10

  1. Hi Jim,
    I would like to run ubuntu more often but i don’t know the code and also some windows programs i still like.
    I ran your code to install wine 5.0 and it seemed to work but how do i find it on my system and run it.
    i am wanting to install MS Publisher and MS Money and a few other small programs.
    Thank you

  2. i am getting the following text when i run step 3 through terminal and can’t seem to install due to this:

    Get:5 ‘ bionic InRelease’ [15.4 kB]
    Err:5 ‘ bionic InRelease’
    The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 241FE6973B765FAE
    Get:10 ‘ bionic-backports InRelease’ [74.6 kB]
    Reading package lists… Done
    W: GPG error: ‘ bionic InRelease’: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 241FE6973B765FAE
    E: The repository ‘ bionic InRelease’ is not signed.
    N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.

    • Nothing to do with Wine repository, you may either remove ‘ bionic InRelease’ via Software & Updates -> Other Software, or manually install the repository key for the appgrid PPA.

  3. I Tried To Install The sdl2-backport Backport
    but it times out i can not install wine 5.0
    it says i have unmet dependencies
    please Jim If you could get back to me it would be much appreciated
    the winehq team said it has made a mistake
    with the libfaudio0 dependency and is working to fix it
    wine 5.0 may install fine in Eoan Ermine i,am sure it does but 18.04 Bionic Beaver it does not install
    because libfaudio0 is not available
    i install that package though and found it somewhere
    but still can not install wine

    • I did install Wine 5.0 successfully in Ubuntu 18.04. I got unmet dependencies too, however fixed after purging mesa PPA, graphics drive ppa, and 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

      And sdl2-backport Backport PPA is required. Just add the PPA (step 4.)) and leave it there. libfaudio0 will be installed automatically as dependency while installing winehq-stable.

  4. Graham Nicholls January 25, 2020 at 2:40 am

    fails at this step 2.)


    /$ wget -nc; sudo apt-key add winehq.key
    –2020-01-25 13:38:00–
    Resolving (…,,, …
    Connecting to (||:443… connected.
    HTTP request sent, awaiting response… 200 OK
    Length: 3220 (3.1K) [application/pgp-keys]
    winehq.key: Permission denied

    Cannot write to ‘winehq.key’ (Success).
    gpg: can’t open ‘winehq.key’: No such file or directory

    18.04 Ubuntu

  5. I’d like to give this a try but one question:

    Concerning step 4. “Add PPA for libfaudio0 library”, is this step necessary for Linux Mint 19.3 Cinnamon Kernel 5.3 ?

  6. dpkg: ошибка: неизвестный параметр –add-архітектура

    Такуое пишет терминал. У меня на компютере две операционки- Widows -Linux ubuntu 18.04 Windows10 64 Такое пишет терминал.Справка по установке и удалению пакетов доступна по команде dpkg –help [*];
    Программа «apt» или «aptitude» предоставляет дружественный интерфейс
    управления пакетами;
    Чтобы получить список значений флагов отладки dpkg, введите dpkg -Dhelp;
    Чтобы получить информацию об игнорировании проблем, введите dpkg –force-help;
    Чтобы получить справку по работе с файлами *.deb, введите dpkg-deb –help;
    Как исправить и установить на Linux?

    Команды, отмеченные [*], выводят большое количество информации.
    Объедините их в конвейер с программами «less» или «more»!

  7. Ricardo Alcantara January 27, 2020 at 9:01 pm

    Perfect, I tried to follow the wine instruction but was having a error:

    winehq-stable : Depends: wine-stable (= 5.0.0~bionic)

    and this line fixed it.

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

  8. Ребята, спасибо!
    Guys, thanks!

  9. Many thanks for this – have now been able to successfully upgrade in Xubuntu 18.04.

  10. just a young linux nigga January 31, 2020 at 7:58 am

    this got me out of wine dependency hell on 18.04 bionic. thx mate.

  11. Thanks, this solved a real frustration. had been looking through Synaptic to find ‘broken packages’ and got nowhere even after removing everything and trying re-installs. Much appreciated. Paul H

  12. Hi, In my case old package openjdk8 (with Gantt Project package) blocked instalation of wine…

  13. It works~~!!! Thank you.

  14. The sdl2-backports is needed to meet the libfaudio0 dependency on Ubuntu 19.10 too

  15. Thank you so much!!

  16. Great article.
    I was struggling with this.

  17. Good tutorial! Thanks installed with it.

  18. Worked like a charm in PoP! OS 19.10. Thank you very much for the information. :)

  19. You are a lifesaver; thank you. Yeah, I could’ve sworn something was up with Wine — and now I know what’s up.

  20. Hellooo!!! :DDD
    I am so happy this worked! I wanted to install Dual Boot again with Windows 7 after been using Ubuntu 18.4 for like 3-6 months now – been loving it, but I decided to play one game..
    I am still in progress trying to make it run, but at least now my WINE is working, thank you!
    But I was not able to make a partition to install my win 7 to make room on my Ubuntu OS, but I think I could have also done is another ubuntu installation – but a live try session..
    Anyways wish me luck now, I have already spent my whole Sunday on this -,-

  21. ok man, but the arch selection should be reverted back to normal after installing wine?

  22. TYVM I get a warm fuzzy fealing when I get solutions to problems like these from ppl.

  23. Thank you for getting me out of that hell.

  24. Hi.. Mr. J im.
    I already succes install wine 5.0 on Ubuntu 18.04 but still having the problem when I want to install an application by right click “Open With Wine Windows Program Loader” always get error message “File not Found”. Why and how to fix the problems. Thank You.

    • Ok.. Mr. Ji m and all visitor here… just reporting : “after reinstall Ubuntu 18.04 and following step by step – how to install wine 5.0 here, finally wine 5.0 working normally for me. So thank so much.

  25. Thank you very much, it works.
    Dam out of the wine hell installation. :)

  26. Hi
    Sorry I am a complete noob to ubuntu but I’m trying hard. I get the following error at stage 3, what am I doing wrong.
    sudo apt-add-repository ‘deb eoan main’
    E: Malformed entry 58 in list file /etc/apt/sources.list (Component)
    E: The list of sources could not be read.

    Thanks for any help

  27. OMG, it works!!! Thank you so much! Ubuntu 18.04

  28. Thank you for this post!

  29. Solved for Linux Mint 19.x with libfaudio0… Thank you.

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>