Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Opensource»How to Install Wine 5.0 on Ubuntu 18.04 & 16.04 LTS

    How to Install Wine 5.0 on Ubuntu 18.04 & 16.04 LTS

    By RahulDecember 18, 20202 Mins Read

    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.

    Advertisement

    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.

    wine winehq
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How To Install Wine from Source Code on Debian-based System

    How to Install Git on Fedora Linux

    How To Install Git on Fedora Linux

    How to Install OpenCV on Ubuntu 20.04

    How to Install OpenCV on Ubuntu 20.04

    View 77 Comments

    77 Comments

    1. Jianfang on November 10, 2020 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

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

      Thanks for very good manual! It helped.

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

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

      Reply
      • Raudes on December 21, 2020 9:47 am

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

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

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

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

      thx a lot for your post!

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

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

      Reply
      • S on July 13, 2020 9:34 am

        So mature of you…

        Reply
        • Aaron on July 29, 2020 12:22 pm

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

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

      Thanx Dude for the help im still new in linux

      Reply
    8. Just a Dude on May 28, 2020 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?

      Reply
      • Slunk on July 17, 2020 11:07 pm

        Try running aptitude update

        Reply
    9. edwin carmell on May 9, 2020 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

      Reply
    10. abdul wahid on May 8, 2020 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

      Reply
      • kitori on May 18, 2020 2:51 pm

        try to install apptitude first

        Reply
    11. Marlowe on March 16, 2020 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.

      Reply
    12. Sneak on March 13, 2020 12:37 am

      Thank you.

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

      Thanks.

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

      wow, thanks a lot man. thank you for sharing

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

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

      Reply
    16. Roland Mösl on February 19, 2020 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).

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

      Downgraded from 4.0 to 3.6 instead on Ubuntu18.04.

      Reply
      • RK on February 9, 2020 11:21 pm

        Self solved. I chose wrong options. Thanks.

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

      Malformed input, repository not added.

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

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

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

      thanks bro

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

      This article was extremely helpful. Many thanks

      Reply
    22. ABELARDO LEON GONZALEZ on December 15, 2019 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

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

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

      Reply
    24. William on October 17, 2019 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.

      Reply
      • William on October 17, 2019 11:01 pm

        I use ubuntu 18.04.3 LTS

        Reply
        • Angelo on October 21, 2019 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.

          Reply
    25. Sean on October 15, 2019 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.

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

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

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

      AMAZING!!!!!!!!

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

      thanks you very much!

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

      awesome job bro

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

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

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

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

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

      God bless you

      Reply
    33. John on August 17, 2019 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

      Reply
      • John on August 17, 2019 5:54 pm

        Nevermind I got it working

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

      thanks for your article, step by step is clear,

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

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

      Reply
    36. Theyka on July 6, 2019 10:10 am

      Thanks man it working 🙂

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

      where can i fine the files downloaded

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

      Thank Youu 🙂

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

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

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

      thanks bro!!!

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

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

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

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

      Reply
      • reza on June 22, 2019 3:58 am

        why my rufus can’t detect my USB

        Reply
    43. wasit on June 10, 2019 7:10 pm

      thanks bro…

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

      Thanks a bunch !

      Reply
    45. Ibrag21 on May 14, 2019 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

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

      thanks this was usefull.

      Reply
    47. Faruk Rahman on May 6, 2019 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

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

      Thanks a lot !
      Emmanuel (France)

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

      how i can update my wine version??

      Reply
    50. prashant gautam on March 27, 2019 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.

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

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

      Reply
      • RIKtheGEEK on April 16, 2019 3:35 am

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

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

      Not working as of Feb 2019

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

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

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

      Thank You Mr. Rahul

      Reply
    55. Vern on May 26, 2018 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.

      Reply
    56. Sal on May 25, 2018 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

      Reply
    57. jp on April 5, 2018 5:30 pm

      Working, ty Rahul.

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

      Works like a charm! Thanks a million Rahul

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

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

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

      bro its not working…. please help me .

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

        Hi, What error are you getting?

        Reply
    61. Ron on July 10, 2017 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?

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

      Thank you.

      Reply
    63. maiemi on April 15, 2017 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 !

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

      didn’t work at all
      you guys suck

      Reply
    65. Jack Shankle on February 11, 2016 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]

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • tail Command in Linux with Examples
    • What is a Orphan Process in Unix/Linux
    • How To Display Warning Message to Unauthorized SSH Access
    • How to Set a Custom SSH Login Banner and MOTD
    • Understanding Reverse DNS: What it is and Why it Matters?
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.