• Home
  • Ubuntu 20.04
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 20.04
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

How to Install Wine 5.0 on Ubuntu 18.04 & 16.04 LTS

Written by Rahul, Updated on December 18, 2020

Wine 5.0 Stable Released. Wine team has announced the latest stable release 5.0 on Jan 21, 2020. Its source code is available for download from its official site. You may also use the package manager to install wine. Wine is an Open Source implementation of the Windows API and will always be free software. Approximately half of the source code is written by its volunteers, and remaining effort sponsored by commercial interests, especially CodeWeavers.

An official PPA is available to install Wine on Ubuntu systems. You just need to enable the PPA in your Ubuntu system and install latest Wine packages using apt-get.

winehq_logo_glass

This tutorial described you to how to install Wine on Ubuntu 18.04 LTS Linux systems.

Step 1 – Setup PPA

First of all, If you are running with a 64-bit system enable 32-bit architecture. Also, install the key which was used to sign packages of wine.

sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

Use one of the following commands to enable the Wine apt repository in your system based on your operating system and version.

### On Ubuntu 19.10 
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main'

### On Ubuntu 18.04 
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport

### On Ubuntu 16.04 
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'

Step 2 – Install Wine on Ubuntu

Use below commands to install Wine packages from the apt repository. The –install-recommends option will install all the recommended packages by winehq stable versions on your Ubuntu system.

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

If you face unmet dependencies error during installation, use the following commands to install winehq using aptitude.

sudo apt install aptitude
sudo aptitude install winehq-stable

Step 3 – Check Wine Version

Wine installation successfully completed. Use the following command to check the version of wine installed on your system.

wine --version

wine-5.0

How to Use Wine (Optional)?

To use wine we need to login to the GUI desktop of your Ubuntu system. After that Download a windows .exe file like PuTTY on your system and open it with Wine as below screenshot or use following command.

wine putty.exe

You can also launch by right click on the application and click Open With Wine Windows Program as shown in the below screenshot.

Install Wine Ubuntu

Conclusion

This tutorial helped you to install Wine on Ubuntu systems.

Share it!
Share on Facebook
Share on Twitter
Share on LinkedIn
Share on Reddit
Share on Tumblr
Share on Whatsapp
Rahul
Rahul
Connect on Facebook Connect on Twitter

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

77 Comments

  1. Avatar Jianfang Reply
    November 10, 2020 at 3:18 am

    Hi Rahul,

    I installed wine 5 as you said. But when I run the code(wine –version), it comes out the message: it looks like wine32-development is missing, you should install it.
    as root, please execute “apt-get install wine32-development”
    wine-3.6 (Ubuntu 3.6-1)

    I don’t know how to fix it.

    Thank you for your time!

    Kind Regards,
    Jianfang

  2. Avatar Petr Reply
    November 7, 2020 at 4:00 pm

    Thanks for very good manual! It helped.

  3. Avatar Alex Reply
    September 19, 2020 at 10:55 pm

    It says sudo apt-add-repository command not found.

    • Avatar Raudes Reply
      December 21, 2020 at 9:47 am

      You need to install this package, from terminal:
      sudo apt-get install software-properties-common

  4. Avatar Sridhar Reply
    August 2, 2020 at 3:20 pm

    Good job. I enjoy Ubuntu. unlike the bulky Windows.

  5. Avatar guido Reply
    July 20, 2020 at 3:55 pm

    thx a lot for your post!

  6. Avatar Nicol Reply
    June 17, 2020 at 1:28 am

    linux worst operating system ever . downloading and installing Windows 10 right now

    • Avatar S Reply
      July 13, 2020 at 9:34 am

      So mature of you…

      • Avatar Aaron Reply
        July 29, 2020 at 12:22 pm

        i am pretty sure he is a minor or he doesnt know how to use linux

  7. Avatar ZionLion Reply
    June 15, 2020 at 11:30 am

    Thanx Dude for the help im still new in linux

  8. Avatar Just a Dude Reply
    May 28, 2020 at 11:04 pm

    When I try to install it says:

    Couldn’t find any package whose name or description matched “winehq-stable”
    Unable to apply some actions, aborting

    I am new to Ubuntu 18.04 LTS any idea on how I can fix this?

    • Avatar Slunk Reply
      July 17, 2020 at 11:07 pm

      Try running aptitude update

  9. Avatar edwin carmell Reply
    May 9, 2020 at 11:48 pm

    RAHUL……you’re the best
    thank you , you saved my peace of mind ! and God bless you, always
    I one through a turmoil until I encounter this tutorial

  10. Avatar abdul wahid Reply
    May 8, 2020 at 5:44 pm

    bruh when i enter last command (sudo aptitude install winehq-stable)
    the output is((( sudo: aptitude: command not found))
    now plzz tell what can i do

    • Avatar kitori Reply
      May 18, 2020 at 2:51 pm

      try to install apptitude first

  11. Avatar Marlowe Reply
    March 16, 2020 at 4:19 am

    Thank you so much! Every other guide I used to try and install Wine ended in a lot of broken dependencies messages.

  12. Avatar Sneak Reply
    March 13, 2020 at 12:37 am

    Thank you.

  13. Avatar Prasad Reply
    March 11, 2020 at 3:57 pm

    Thanks.

  14. Avatar yogi Reply
    March 3, 2020 at 12:00 pm

    wow, thanks a lot man. thank you for sharing

  15. Avatar Vijay Reply
    March 3, 2020 at 4:16 am

    Thanks for this man. I was not able to do with the article on the official site.

  16. Avatar Roland Mösl Reply
    February 19, 2020 at 11:07 pm

    I tried it, but I got:
    sudo apt install –install-recommends winehq-stable
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    winehq-stable is already the newest version (3.0.4~xenial).

  17. Avatar RK Reply
    February 9, 2020 at 10:28 pm

    Downgraded from 4.0 to 3.6 instead on Ubuntu18.04.

    • Avatar RK Reply
      February 9, 2020 at 11:21 pm

      Self solved. I chose wrong options. Thanks.

  18. Avatar Luigi Provencher Reply
    January 22, 2020 at 1:58 am

    Malformed input, repository not added.

  19. Avatar richardlc Reply
    January 13, 2020 at 4:48 am

    Thank you for very clear instructions: installed stright away and look forward to trying it.

  20. Avatar zangess Reply
    January 12, 2020 at 6:57 pm

    thanks bro

  21. Avatar Deborah Reply
    December 31, 2019 at 4:33 pm

    This article was extremely helpful. Many thanks

  22. Avatar ABELARDO LEON GONZALEZ Reply
    December 15, 2019 at 12:18 pm

    Ubuntu 18.04.3 LTS

    wget -qO – https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add –
    gpg: no se han encontrados datos OpenPGP válidos

    (English translation): valid OpenPGP data were not found

  23. Avatar shashikant Reply
    October 28, 2019 at 9:49 am

    while installation I get this issue:
    wine: cannot find L”C:\\windows\\system32\\putty.exe”

  24. Avatar William Reply
    October 17, 2019 at 10:59 pm

    no matter what i do it keeps saying this:

    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.
    wine-stable : Depends: wine-stable-amd64 (= 4.0.2~disco) but it is not going to be installed
    Depends: wine-stable-i386 (= 4.0.2~disco)
    E: Unable to correct problems, you have held broken packages.

    • Avatar William Reply
      October 17, 2019 at 11:01 pm

      I use ubuntu 18.04.3 LTS

      • Avatar Angelo Reply
        October 21, 2019 at 2:23 am

        You may have used the wrong repository based on the line
        Depends: wine-stable-i386 (= 4.0.2~disco)
        I had the same problem before and I used a different repository.

  25. Avatar Sean Reply
    October 15, 2019 at 1:52 pm

    Installed fine! But, I am prompted to go through the “First startup wizard” and asked to input “Console application settings” fields of “Binary” and Argument.” I have no idea what to enter in these fields – any help would be greatly appreciated! Running Ubuntu 18.04 on a fresh install.

  26. Avatar Manglada Tech Reply
    October 14, 2019 at 6:38 am

    thanks for tutorial install wine, i try in Ubuntu 18.04 🙂

  27. Avatar zeko Reply
    October 12, 2019 at 11:00 am

    AMAZING!!!!!!!!

  28. Avatar Khoa Reply
    October 10, 2019 at 6:34 am

    thanks you very much!

  29. Avatar aarnar Reply
    September 26, 2019 at 7:35 pm

    awesome job bro

  30. Avatar RedZal Reply
    September 18, 2019 at 2:55 am

    thank you. easy to setup.. good job bro..

  31. Avatar Loren Reply
    September 16, 2019 at 9:30 pm

    Thanks for the easy instructions…it went smooothly! You ROCK!

  32. Avatar Egghead Reply
    August 21, 2019 at 2:35 am

    God bless you

  33. Avatar John Reply
    August 17, 2019 at 5:44 pm

    When installing the Repository I get an error on hit 12. and it says error 404 not found and then it does a bunch of random stuff. Here is the consoles log:https://pastebin.com/mf1WULsL

    • Avatar John Reply
      August 17, 2019 at 5:54 pm

      Nevermind I got it working

  34. Avatar jeff Reply
    August 10, 2019 at 3:50 am

    thanks for your article, step by step is clear,

  35. Avatar jean carlos oliveira Reply
    July 26, 2019 at 1:24 am

    muito bom cara, resolveu os meus problemas, outros tutoriais sempre davam erros, o seu funciona perfeitamente no 18.04LTS

  36. Avatar Theyka Reply
    July 6, 2019 at 10:10 am

    Thanks man it working 🙂

  37. Avatar chris Reply
    July 6, 2019 at 3:15 am

    where can i fine the files downloaded

  38. Avatar Adem Reply
    July 5, 2019 at 11:57 am

    Thank Youu 🙂

  39. Avatar Skalibur Reply
    July 2, 2019 at 12:23 pm

    bro that was much needed help, you gave . Thanks a lot man

  40. Avatar sugonjakas Reply
    June 24, 2019 at 5:21 pm

    thanks bro!!!

  41. Avatar john Reply
    June 16, 2019 at 6:05 pm

    this tutorial just made my life so much easier. thank you

  42. Avatar Akbar Reply
    June 16, 2019 at 5:18 am

    thanks bro, i used it to run “rufus” and reinstall windows

    • Avatar reza Reply
      June 22, 2019 at 3:58 am

      why my rufus can’t detect my USB

  43. Avatar wasit Reply
    June 10, 2019 at 7:10 pm

    thanks bro…

  44. Avatar Human Reply
    May 27, 2019 at 10:23 am

    Thanks a bunch !

  45. Avatar Ibrag21 Reply
    May 14, 2019 at 6:28 pm

    Second statement:

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

    should be

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

  46. Avatar f3nyx Reply
    May 11, 2019 at 6:14 am

    thanks this was usefull.

  47. Avatar Faruk Rahman Reply
    May 6, 2019 at 11:00 am

    Hi Rahul,
    Thanks for your tech post, I am newbie for ubuntu and trying to install WineHQ in my Ubuntu desktop and finally success to read your post. thanks

  48. Avatar Emmanuel Reply
    May 2, 2019 at 6:31 am

    Thanks a lot !
    Emmanuel (France)

  49. Avatar rakesh Reply
    April 26, 2019 at 8:31 am

    how i can update my wine version??

  50. Avatar prashant gautam Reply
    March 27, 2019 at 6:43 pm

    wine PangoBright.exe
    Command ‘wine’ not found, but can be installed with:

    sudo apt install wine-development
    sudo apt install wine-stable

    sudo apt install wine-stable
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    wine-stable is already the newest version (4.0~bionic).
    0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.

  51. Avatar xBlackZero Reply
    March 25, 2019 at 6:47 pm

    This sh*t doesn’t work at all in ubuntu 16.04

    • Avatar RIKtheGEEK Reply
      April 16, 2019 at 3:35 am

      Worked for me. I’m 60 years old and just learning Linux!

  52. Avatar Rob Reply
    February 3, 2019 at 7:41 pm

    Not working as of Feb 2019

  53. Avatar Tony Reply
    January 1, 2019 at 2:28 pm

    I was having instalation issues too…
    The following link worked for me
    https://wiki.winehq.org/Ubuntu

  54. Avatar mohamad Reply
    December 26, 2018 at 9:48 am

    Thank You Mr. Rahul

  55. Avatar Vern Reply
    May 26, 2018 at 3:06 am

    Hi Rahul:

    Apparently winehq doesn’t like my computer.
    https://dl.winehq.org/wine-builds/Release.key is blocked to me.File ‘Release.key’ already there; not retrieving.
    sudo apt-get update
    E: Malformed entry 1 in list file /etc/apt/sources.list.d/additional-repositories.list (Component)
    E: The list of sources could not be read.

    Apparently something has changed with Winehq.

    But thanks for the tip.

  56. Avatar Sal Reply
    May 25, 2018 at 1:44 pm

    Hi Rahul,

    I went through the steps you explained,

    wine –version
    wine-3.0.1

    then

    wine putty.exe

    [email protected]:~$ wine putty.exe

    I got 2 wine windows one of them asking me to install another software, then a second wine window asking me to install geco, which I did

    I got
    wine: configuration in ‘/home/USER/.wine’ has been updated.

    after that it was waiting too long then hit ^C

    wine: configuration in ‘/home/USER/.wine’ has been updated.
    ^C

    tried
    wine putty.exe

    got

    wine: cannot find L”C:\\windows\\system32\\putty.exe”

    Regards,
    Sal

  57. Avatar jp Reply
    April 5, 2018 at 5:30 pm

    Working, ty Rahul.

  58. Avatar bi5on Reply
    April 2, 2018 at 11:02 am

    Works like a charm! Thanks a million Rahul

  59. Avatar Zer00CooL Reply
    February 21, 2018 at 6:52 pm

    The same, for World of Warcraft with Debian 9 Stretch stable ?

  60. Avatar tirthdeo Reply
    February 14, 2018 at 6:10 am

    bro its not working…. please help me .

    • Rahul Rahul K. Reply
      February 15, 2018 at 12:02 pm

      Hi, What error are you getting?

  61. Avatar Ron Reply
    July 10, 2017 at 2:48 am

    Did not work for me. Got to the Make Install and it said:
    $ sudo make install
    make: *** No rule to make target ‘install’. Stop.

    What am I suppose to add to this command?

  62. Avatar Mark Reply
    May 9, 2017 at 11:51 am

    Thank you.

  63. Avatar maiemi Reply
    April 15, 2017 at 7:56 pm

    Hi Rahul, on search for a howto for installing Wine 2.0 (or above), I found Your article. Thank You very much for this article, It works great !

  64. Avatar ric mic Reply
    February 21, 2016 at 7:30 pm

    didn’t work at all
    you guys suck

  65. Avatar Jack Shankle Reply
    February 11, 2016 at 7:17 pm

    Hi Rahul,
    Running Linux Mint 17.3 Rosa xfce 64-bit
    Windows 7 pro 64-bit in a dual boot

    I downloaded wine-1.8.1.tar.Bz2.si in folder winebld.
    The terminal is telling me it can’t find the wine download.
    sudo apt-get install wine1.8.1-amd64

    I am very green using Linux Mint so please understand.
    Old Windows user trying to dump windows and having a
    hard time of it.
    Regards,
    Jack Shankle
    [email protected]

Leave a Reply Cancel reply

Popular Posts

  • How to View or List Cron Jobs in Linux
  • How to Install PHP 8 on Ubuntu 20.04
  • How to Set Up SSH Tunnel with PuTTY
  • How to Install MySQL 8.0 on Ubuntu 20.04
  • Issue with phpMyAdmin and PHP: Warning in ./libraries/sql.lib.php#613 count(): Parameter must be an array or an object that implements Countable”
  • How to Install Tor Browser on Ubuntu 20.04
  • How to Allow Remote Connections to MySQL
  • How To Install VNC Server on Debian 10
© 2013-2021 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy