Wine 6.0 Released, How to Install it in Ubuntu 20.04, 20.10

Last updated: May 22, 2021

Wine Stable

Wine 6.0 stable was released 2 days ago as the new major release to run Windows applications in Linux, Mac OS, and BSD. Now you can install it in Ubuntu 18.04, Ubuntu 20.04, and Ubuntu 20.10 via the official apt repository.

Wine 6.0 features:

  • Core modules implemented in PE format.
  • An experimental Vulkan renderer for WineD3D
  • DirectShow and Media Foundation support.
  • Text console redesign.
  • An initial USB kernel driver
  • Various Vulkan support improvements
  • And more, see announcement.

How to install Wine 6.0 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 steps one by one.

1.) Run command to enable 32 bit architecture (if you don’t have it):

sudo dpkg --add-architecture i386

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

2.) Install the repository key by running 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 have to replace focal in the code with:

  • hirsute for Ubuntu 21.04.
  • groovy for Ubuntu 20.10.
  • bionic for Ubuntu 18.04 and Linux Mint 19.x

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

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

5.) Finally install Wine 6.0 via command:

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

Uninstall wine:

You may remove the PPA by launching Software & Updates utility and navigating to Other Software tab.

To remove wine 6.0, run command in terminal:

sudo apt remove --auto-remove winehq-stable

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

21 responses to Wine 6.0 Released, How to Install it in Ubuntu 20.04, 20.10

  1. Herbert Groot Jebbink January 17, 2021 at 5:11 am

    Hi, thanks for the blog, I get below error.

    I’m running Ubuntu 20.10 inside Crostini (the Linux VM from ChromeOS)

    herbert@penguin:~$ sudo apt install –install-recommends winehq-stable
    Reading package lists… Done
    Building dependency tree
    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 (= 6.0.0~groovy-1)
    E: Unable to correct problems, you have held broken packages.

    • same…
      Maybe cause i ve already wine 5.0 ?

      • It was successfully installed in my case in Groovy. Try installing the package via aptitude.

        First install aptitude package manager via command:

        sudo apt install aptitude

        Then install wine via aptitude, it will output the package conflict and print solutions

        sudo aptitude install winehq-stable

        • This worked for me, thank you!

        • Ghada NOUAIRIA March 29, 2021 at 5:08 pm

          I had the same problem with wine and this solution solved it. Thank you Ji!

        • Dont work for me. Neither with the “aptitude” =/

          I dont know what to do animore!

        • Thank you Ji, aptitude was new to me – is a wonderful program. The whole problem in my case is Libc6 (the version 2.31 is installed with Mint 20.10). It should be 2.32.

  2. Hi
    I am running linux mint 20.0
    I followed the instructions in your blog
    sudo apt update && sudo apt install –install-recommends winehq-stable

    This was my last of several attempts where I tried various options all of which gave the same error message at the end
    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 resolve the situation:

    The following packages have unmet dependencies:
    winehq-stable : Depends: wine-stable (= 6.0.0~focal-1)
    E: Unable to correct problems, you have held broken packages.
    user1@Mint-19-basement:~$ sudo apt-add-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main’
    [sudo] password for user1:
    user1@Mint-19-basement:~$ sudo apt update && sudo apt install –install-recommends winehq-stable


    Fetched 112 kB in 4s (27.2 kB/s)
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    9 packages can be upgraded. Run ‘apt list –upgradable’ to see them.
    Reading package lists… Done
    Building dependency tree
    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 resolve the situation:

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

    $ wine –version
    Command ‘wine’ not found, but can be installed with:
    sudo apt install wine-development
    sudo apt install wine-stable

    Sorry for the long message but I’m not sure what is unimportant

    • You’re running Linux Mint 20 (based on Ubuntu 20.04) but apt update outputs you were fetching package info from bionic (Ubuntu 18.04).

      A little confused! While running apt update in Linux mint 20, it should out some lines with focal, focal-updates, focal-security etc. And Linux Mint 19.x will output repository lines with bionic, bionic-updates. bionic-security, etc.

      1. First run command to tell your Linux Mint edition.

      cat /etc/issue

      2. Then open Software Sources and go to Additional Repositories tab.

      Click edit the Winehq repository and change from:

      deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main

      To: deb https://dl.winehq.org/wine-builds/ubuntu/ focal main for Linux Mint 20,

      or to deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main for Linux Mint 19.x.

      And finally update & install wine:

      sudo apt update
      sudo apt install winehq-stable
  3. Alexsandro Silva January 23, 2021 at 12:12 pm

    Great

  4. Use this code please:

    sudo apt-add-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -cs) main’

  5. broda from africa February 17, 2021 at 5:52 pm

    hello there i am running ubuntu 20.4
    after i run this command
    sudo apt update && sudo apt install –install-recommends winehq-stable
    i get
    nehq-stable
    Hit:1 http://tr.archive.ubuntu.com/ubuntu focal InRelease
    Hit:2 http://tr.archive.ubuntu.com/ubuntu focal-updates InRelease
    Hit:3 http://tr.archive.ubuntu.com/ubuntu focal-backports InRelease
    Hit:4 http://dl.google.com/linux/chrome/deb stable InRelease
    Hit:5 https://dl.winehq.org/wine-builds/ubuntu groovy InRelease
    Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease
    Hit:7 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    3 packages can be upgraded. Run ‘apt list –upgradable’ to see them.
    Reading package lists… Done
    Building dependency tree
    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 (= 6.0.0~groovy-1)
    E: Unable to correct problems, you have held broken packages.

    what can i do to fix this ? thank you

    • Open Software & Updates utility and navigate to Other Software tab. There select the one relevant to wine repository, click edit, and change the Distribution from groovy to focal.

    • I believe the install instructions state to change the copy and paste to your build.

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

      NOTE: You have to replace focal in the code with:

      hirsute for Ubuntu 21.04.
      groovy for Ubuntu 20.10.
      bionic for Ubuntu 18.04 and Linux Mint 19.x

      -That might be the issue.

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

  6. Thanks Ji m,
    Open “Open Software & Updates utility” worked!

  7. this information is wrong wget -O – https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add – should be wget qO

  8. I’m sorry to ask when so much people seem to have the same problem, and sorry that it is in french, but I translated what’s important below this paragraph, but it does not disappear after editing into anyone of the 3 ‘main’ (focal/groovy/bionic).

    syomini@gamingadv:~$ cat /etc/issue
    Ubuntu 18.04.2 LTS \n \l

    Atteint = hit
    Ign = ?
    Réception = Receipt/receiving
    The ending message does exactly mean what broda from africa wrote.

    syomini@gamingadv:~$ sudo apt install winehq-stable
    Lecture des listes de paquets… Fait
    Construction de l'arbre des dépendances
    Lecture des informations d'état… Fait
    Certains paquets ne peuvent être installés. Ceci peut signifier
    que vous avez demandé l'impossible, ou bien, si vous utilisez
    la distribution unstable, que certains paquets n'ont pas encore
    été créés ou ne sont pas sortis d'Incoming.
    L'information suivante devrait vous aider à résoudre la situation :

    Les paquets suivants contiennent des dépendances non satisfaites :
    winehq-stable : Dépend: wine-stable (= 6.0.0~bionic-1)
    E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».

    Thank you in advance for anyone who could help me.

    • Firstly make sure you have added the PPA for libfaudio dependency library.

      If still get the dependency issue, installing following libraries may help:

      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
  9. Hi. I tried your manual but get the following error message.

    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:
    dconf-gsettings-backend : Depends: dconf-service (>= 0.36.0-1)
    Depends: dconf-service (< 0.36.0-1.1~)
    winehq-stable : Depends: wine-stable (= 6.0.1~focal-1)
    E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

    Hope anyone can help to solve it.

  10. Some additional info to my post.

    I have tried aptitude already. This gives the following output:

    aptitude failed to find a solution to these dependencies. You can solve them yourself by hand or type ‘n’ to quit.
    The following packages have unmet dependencies:
    perl-base : Conflicts: perl-base:i386 but 5.30.0-9ubuntu0.2 is to be installed
    perl-base:i386 : Conflicts: perl-base but 5.30.0-9ubuntu0.2 is installed
    snmp : Conflicts: snmp:i386 but 5.8+dfsg-2ubuntu2.3 is to be installed
    snmp:i386 : Conflicts: snmp but 5.8+dfsg-2ubuntu2.3 is installed
    perl : Conflicts: perl:i386 but 5.30.0-9ubuntu0.2 is to be installed
    perl:i386 : Conflicts: perl but 5.30.0-9ubuntu0.2 is installed
    Resolve these dependencies by hand? [N/+/-/_/:/?] n

  11. You know I give up I will just uninstall Ubuntu and re install manjaro, why spend time trying to fix the impossible, I just need to find away to have manjaro work with my RX 6600 XT.
    I need wine 6.0 but am stuck at 5.0 this is the reason i went manjaro a few years a go. Ubuntu is so difficult with modern software only allowing very old out of date software to run.